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
- @retorquere made their first contribution in #30
Full Changelog: v0.13.3...v0.14.0