Skip to content

Commit 45d5d8a

Browse files
committed
Merge branch 'main' of https://github.com/evoluhq/evolu
2 parents fcbe681 + 485cdfc commit 45d5d8a

13 files changed

Lines changed: 35 additions & 29 deletions

File tree

.changeset/cold-nails-wink.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/vast-bats-kick.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/relay/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @evolu/relay
22

3+
## 2.0.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [adfd6af]
8+
- Updated dependencies [7e7a191]
9+
- @evolu/common@7.2.3
10+
- @evolu/nodejs@2.2.1
11+
312
## 2.0.4
413

514
### Patch Changes

apps/relay/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@evolu/relay",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"private": true,
55
"type": "module",
66
"scripts": {

packages/common/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @evolu/common
22

3+
## 7.2.3
4+
5+
### Patch Changes
6+
7+
- adfd6af: Add a typed helper `createRecord` for safely creating prototype-less
8+
`Record<K, V>` instances (via `Object.create(null)`). This prevents
9+
prototype pollution and accidental key collisions for object keys that come
10+
from external sources, like database column names.
11+
- 7e7a191: Fix handling of empty-update mutations and readDbChange
12+
13+
This patch fixes a bug where a mutation that contains only an `id` (no values) could result in an empty set of `evolu_history` rows for the corresponding timestamp. That caused `readDbChange` to fail when trying to build a CRDT change for syncing. The fix ensures `evolu_history` includes system columns so the storage and sync code always have at least one column to work with.
14+
15+
Manually tested and snapshots updated.
16+
17+
Manual verification steps: call `update("todo", { id })` and then invoke
18+
`readDbChange` via the sync with an empty relay.
19+
320
## 7.2.2
421

522
### Patch Changes

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@evolu/common",
3-
"version": "7.2.2",
3+
"version": "7.2.3",
44
"description": "TypeScript library and local-first platform",
55
"keywords": [
66
"evolu",

packages/nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"vitest": "^4.0.4"
4141
},
4242
"peerDependencies": {
43-
"@evolu/common": "^7.2.2"
43+
"@evolu/common": "^7.2.3"
4444
},
4545
"engines": {
4646
"node": ">=22.0.0"

packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"vitest": "^4.0.4"
8888
},
8989
"peerDependencies": {
90-
"@evolu/common": "^7.2.2",
90+
"@evolu/common": "^7.2.3",
9191
"@evolu/react": "^10.2.1",
9292
"@op-engineering/op-sqlite": ">=12",
9393
"expo": ">=54",

packages/react-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"vitest": "^4.0.4"
5050
},
5151
"peerDependencies": {
52-
"@evolu/common": "^7.2.2",
52+
"@evolu/common": "^7.2.3",
5353
"@evolu/web": "^2.2.1",
5454
"react": ">=19",
5555
"react-dom": ">=19"

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"vitest": "^4.0.4"
4747
},
4848
"peerDependencies": {
49-
"@evolu/common": "^7.2.2",
49+
"@evolu/common": "^7.2.3",
5050
"react": ">=19"
5151
},
5252
"publishConfig": {

0 commit comments

Comments
 (0)