Skip to content

v1.5.1

Latest
Compare
Choose a tag to compare
@pemrouz pemrouz released this 29 Dec 01:50
· 7 commits to master since this release
  • fero now has a new commit guarantee. This allows you to make a change and wait for that change to committed. This works from any client or server node.
await cache.update('foo', 'bar').on('reply')
cache.foo === 'bar' // true
  • You can also now use .add to insert records with an auto-incrementing ID similar to traditional SQL INSERT.
// this returns the id of the newly added record as well as setting it on the record:
const id = (await users.add({ firstname, lastname }).on('reply')).value
users[id] === { firstname, lastname, id }
  • fero has a new connect utility. This allows restoring initial state from some persistent storage as well as replaying actions on to it to keep it in sync. See the docs for more details.