Skip to content

v0.14.0 & v0.0.3@react

Latest
Compare
Choose a tag to compare
@maradotwebp maradotwebp released this 19 Oct 19:46
· 3 commits to main since this release

BREAKING CHANGES

removeMany now returns the number of items deleted, not a boolean that states whether all items have been deleted.

If you still need to check whether all entities you provided have been deleted, you can rewrite your removeMany calls.

Before:

const allEntitiesDeleted = await removeMany(table, [{ id: "0" }, { id: "1" }]);

After:

const items = [{ id: "0" }, { id: "1" }];
const numDeleted = await removeMany(table, items);
const allEntitiesDeleted = numDeleted === items.length;

What's Changed

  • missing keys in removeWhere is no-op by @retorquere in #30
  • Changed removeMany to return number of items deleted

New Contributors

Full Changelog: v0.13.3...v0.14.0