Bump dexie from 4.0.4 to 4.0.5
Bumps dexie from 4.0.4 to 4.0.5.
Release notes
Sourced from dexie's releases.
Dexie v4.0.5
Features
New CRDT operations: add() and remove() (#1936)
New operations that works consistently across sync: Mathematical addition/subtraction as well as adding or removing string or numbers from array properties.
Add to set
It is now possible to add items to an array property using a sync consistent operation "add":
import { add } from "dexie"; db.friends.update(friend.id, { hobbies: add([ "skating", "football" ]) });
Remove from set
import { remove } from "dexie"; db.friends.update(friend.id, { hobbies: remove([ "curling" ]) });
Mathematical addition and subtraction (number)
import { add, remove } from "dexie"; await db.transaction('rw', db.accounts, () => { db.accounts.update(accountId1, { balance: remove(100) }); db.accounts.update(accountId2, { balance: add(100) }); });
Mathematical addition and subtraction (bigint)
import { add, remove } from "dexie"; </tr></table>
... (truncated)
Commits
-
af1578e
Build output -
6ba015c
Merge remote-tracking branch 'origin/releases' -
fa41b3a
Releasing v4.0.5 -
bc99f83
Fix failing compilation in dexie-syncable -
eccc2e4
Bugfix for CRDT operation add/remove: Don't throw due to invalid type in data... -
06b9b91
TInsertType in table() methods on Dexie and Transaction (#1998) -
1430bd1
CRDT for add/remove (#1936) -
7795c81
Fail when trying to upgrade a synced table in an .upgrade() -
28b22e2
Modernized README -
c6f82b2
export ./dist/dexie.mjs (#1997) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts