dexie/Dexie.js (dexie)
### [`v4.0.7`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.7): Dexie v4.0.7
[Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.5...v4.0.7)
- Tighten non-idempotent CRDT operations (PR [#2000](https://togithub.com/dexie/Dexie.js/issues/2000))
- Align dexie and dexie-cloud-addon versions: 4.0.7
### [`v4.0.5`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.5): Dexie v4.0.5
[Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.4...v4.0.5)
### Features
#### New CRDT operations: add() and remove() ([#1936](https://togithub.com/dexie/Dexie.js/issues/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":
```ts
import { add } from "dexie";
db.friends.update(friend.id, {
hobbies: add([
"skating",
"football"
])
});
```
##### Remove from set
```ts
import { remove } from "dexie";
db.friends.update(friend.id, {
hobbies: remove([
"curling"
])
});
```
##### Mathematical addition and subtraction (number)
```ts
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)
```ts
import { add, remove } from "dexie";
await db.transaction('rw', db.accounts, () => {
db.accounts.update(accountId1, { balance: remove(100n) });
db.accounts.update(accountId2, { balance: add(100n) });
});
```
### Typings
- [#1998](https://togithub.com/dexie/Dexie.js/issues/1998) TInsertType in table methods on Dexie and Transaction
### Bug fixes
- export ./dist/dexie.mjs ([#1997](https://togithub.com/dexie/Dexie.js/issues/1997))
- Fix missing idbtrans in transaction ([#1985](https://togithub.com/dexie/Dexie.js/issues/1985))
### dexie-cloud-addon@4.0.6
- [Fail when trying to upgrade a synced table in an .upgrade()](https://togithub.com/dexie/Dexie.js/commit/7795c816ff2709653875ac9cddb18e44a7fcf486)
### [`v4.0.4`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.4): Dexie v4.0.4
[Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.3...v4.0.4)
Fixes [#1955](https://togithub.com/dexie/Dexie.js/issues/1955) for real this time (the fix in [4.0.2](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.2) wasn't correct enough for npm)
### [`v4.0.3`](https://togithub.com/dexie/Dexie.js/compare/v4.0.2...v4.0.3)
[Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.2...v4.0.3)
### [`v4.0.2`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.2): Dexie v4.0.2
[Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.1...v4.0.2)
### Patch Release
#### dexie@4.0.2
- Fixes issue [#1946](https://togithub.com/dexie/Dexie.js/issues/1946) - liveQueries of compound index involving auto-incremented primary key as part failed to update.
- \~~Fixes issue [#1955](https://togithub.com/dexie/Dexie.js/issues/1955) - tsconfig.json in root referering to nonexisting tsconfig in non-bundled src directory.~~ Fixed for real in [4.0.4](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.4).
#### dexie-cloud-addon@4.0.2
- Allow logging in with demo account in default login GUI and customized login GUI. User can write an imported [@demo](https://togithub.com/demo).local address in the email dialog and can skip the OTP step.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
4.0.1
->4.0.7
Release Notes
dexie/Dexie.js (dexie)
### [`v4.0.7`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.7): Dexie v4.0.7 [Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.5...v4.0.7) - Tighten non-idempotent CRDT operations (PR [#2000](https://togithub.com/dexie/Dexie.js/issues/2000)) - Align dexie and dexie-cloud-addon versions: 4.0.7 ### [`v4.0.5`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.5): Dexie v4.0.5 [Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.4...v4.0.5) ### Features #### New CRDT operations: add() and remove() ([#1936](https://togithub.com/dexie/Dexie.js/issues/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": ```ts import { add } from "dexie"; db.friends.update(friend.id, { hobbies: add([ "skating", "football" ]) }); ``` ##### Remove from set ```ts import { remove } from "dexie"; db.friends.update(friend.id, { hobbies: remove([ "curling" ]) }); ``` ##### Mathematical addition and subtraction (number) ```ts 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) ```ts import { add, remove } from "dexie"; await db.transaction('rw', db.accounts, () => { db.accounts.update(accountId1, { balance: remove(100n) }); db.accounts.update(accountId2, { balance: add(100n) }); }); ``` ### Typings - [#1998](https://togithub.com/dexie/Dexie.js/issues/1998) TInsertType in table methods on Dexie and Transaction ### Bug fixes - export ./dist/dexie.mjs ([#1997](https://togithub.com/dexie/Dexie.js/issues/1997)) - Fix missing idbtrans in transaction ([#1985](https://togithub.com/dexie/Dexie.js/issues/1985)) ### dexie-cloud-addon@4.0.6 - [Fail when trying to upgrade a synced table in an .upgrade()](https://togithub.com/dexie/Dexie.js/commit/7795c816ff2709653875ac9cddb18e44a7fcf486) ### [`v4.0.4`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.4): Dexie v4.0.4 [Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.3...v4.0.4) Fixes [#1955](https://togithub.com/dexie/Dexie.js/issues/1955) for real this time (the fix in [4.0.2](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.2) wasn't correct enough for npm) ### [`v4.0.3`](https://togithub.com/dexie/Dexie.js/compare/v4.0.2...v4.0.3) [Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.2...v4.0.3) ### [`v4.0.2`](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.2): Dexie v4.0.2 [Compare Source](https://togithub.com/dexie/Dexie.js/compare/v4.0.1...v4.0.2) ### Patch Release #### dexie@4.0.2 - Fixes issue [#1946](https://togithub.com/dexie/Dexie.js/issues/1946) - liveQueries of compound index involving auto-incremented primary key as part failed to update. - \~~Fixes issue [#1955](https://togithub.com/dexie/Dexie.js/issues/1955) - tsconfig.json in root referering to nonexisting tsconfig in non-bundled src directory.~~ Fixed for real in [4.0.4](https://togithub.com/dexie/Dexie.js/releases/tag/v4.0.4). #### dexie-cloud-addon@4.0.2 - Allow logging in with demo account in default login GUI and customized login GUI. User can write an imported [@demo](https://togithub.com/demo).local address in the email dialog and can skip the OTP step.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.