- 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.