Skip to content

Commit 6cbaad3

Browse files
authored
Merge pull request evoluhq#633 from evoluhq/changeset-release/main
Version Packages (preview)
2 parents 8f0c0d3 + c20678c commit 6cbaad3

12 files changed

Lines changed: 36 additions & 9 deletions

File tree

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"brown-houses-study",
2828
"busy-planets-joke",
2929
"chilly-peaches-call",
30+
"clear-mails-float",
3031
"common-ads-serve",
3132
"cool-hoops-give",
3233
"cuddly-needles-juggle",

apps/relay/CHANGELOG.md

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

3+
## 1.1.2-preview.16
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [8f0c0d3]
8+
- @evolu/common@6.0.1-preview.34
9+
- @evolu/nodejs@1.0.1-preview.12
10+
311
## 1.1.2-preview.15
412

513
### 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": "1.1.2-preview.15",
3+
"version": "1.1.2-preview.16",
44
"private": true,
55
"type": "module",
66
"scripts": {

packages/common/CHANGELOG.md

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

3+
## 6.0.1-preview.34
4+
5+
### Patch Changes
6+
7+
- 8f0c0d3: Refined system (formerly "default") createdAt column handling
8+
9+
### Summary
10+
- `createdAt` is now derived exclusively from the CRDT `Timestamp`. It is injected automatically only on first insert. You can no longer provide `createdAt` in `upsert` mutation – doing so was an anti‑pattern and is now validated against.
11+
- Introduced `isInsert` flag to `DbChange` to distinguish initial row creation from subsequent updates; this drives automatic `createdAt` population.
12+
- Added `ValidDbChangeValues` type to reject system columns (`createdAt`, `updatedAt`, `id`) while allowing `isDeleted`.
13+
- Clock storage changed from sortable string (`TimestampString`) to compact binary (`blob`) representation for space efficiency and fewer conversions.
14+
- Removed `timestampToTimestampString` / `timestampStringToTimestamp`; added `timestampToDateIso` for converting CRDT timestamps to ISO dates.
15+
- Schema validation wording updated: "default column" -> "system column" for clarity.
16+
- Internal protocol encoding updated (tests reflect new binary clock and flag ordering); snapshots adjusted accordingly.
17+
18+
### Notes
19+
- This change reduces payload size (e.g. from 113 to 97).
20+
321
## 6.0.1-preview.33
422

523
### 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": "6.0.1-preview.33",
3+
"version": "6.0.1-preview.34",
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": "^6.0.1-preview.33"
43+
"@evolu/common": "^6.0.1-preview.34"
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": "^6.0.1-preview.33",
90+
"@evolu/common": "^6.0.1-preview.34",
9191
"@evolu/react": "^9.0.1-preview.6",
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": "^6.0.1-preview.33",
52+
"@evolu/common": "^6.0.1-preview.34",
5353
"@evolu/web": "^1.0.1-preview.7",
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": "^6.0.1-preview.33",
49+
"@evolu/common": "^6.0.1-preview.34",
5050
"react": ">=19"
5151
},
5252
"publishConfig": {

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"typescript": "^5.9.2"
4949
},
5050
"peerDependencies": {
51-
"@evolu/common": "^6.0.1-preview.33",
51+
"@evolu/common": "^6.0.1-preview.34",
5252
"@evolu/web": "^1.0.1-preview.7",
5353
"svelte": ">=5"
5454
},

0 commit comments

Comments
 (0)