Skip to content

Releases: mswjs/data

v0.3.0

26 Apr 22:23
Compare
Choose a tag to compare

Breaking changes

  • Specifying relational values is no longer mandatory when creating entities (#79).
  • The library no longer exposes its internal properties (i.e. __type, __primaryKey) on the returned entities (#57, #67).
  • The return type of calling .findFirst() with a query that has no matching entity now returns null (#76, #67).

Bug fixes

  • Fixes an issue that resulted in relational properties not being enumerable (#78, #67, #84).

v0.2.1

19 Apr 15:33
Compare
Choose a tag to compare

Bug fixes

  • Fixes an issue when db[model].getAll() didn't infer the returned model type (#74, #75).

v0.2.0

17 Apr 11:15
Compare
Choose a tag to compare

Breaking changes

  • Renames which to where in queries (#68):
db.user.findMany({
-  which: {
+  where: {
    id: { equals: "abc-123" }
  }
})

Features

  • Adds client-side synchronization between multiple open tabs (#66).