Skip to content

1.0.0-canary.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ForsakenHarmony ForsakenHarmony released this 12 Apr 19:20

This is not final by any means

Major Changes

  • Potential 1.0 candidate, single object model: 4e1b1bd
const Person = model('Person', ({ firstname }) => ({
  firstname,
  lastname: 'Lennon',

  setFirstName(first: string) {
    this.firstname = first;
  },
  setLastName(last: string) {
    this.lastname = last;
  },

  get fullname() {
    return `${this.firstname} ${this.lastname}`;
  },
}));

const instance = Person({ firstname: 'John' });

Patches

  • Move emitter to separate file: 0851bbc