diff --git a/.changeset/weak-kangaroos-punch.md b/.changeset/weak-kangaroos-punch.md deleted file mode 100644 index 116caff5b..000000000 --- a/.changeset/weak-kangaroos-punch.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"evolu": minor ---- - -Replace rfc6902 and immutable-json-patch with custom and much faster algorithm. - -For now, we detect only a change in the whole result and in-place edits. In the future, we will add more heuristics. We will probably not implement the Myers diff algorithm because it's faster to rerender all than to compute many detailed patches. We will only implement a logic a developer would implement manually, if necessary. diff --git a/apps/server/CHANGELOG.md b/apps/server/CHANGELOG.md index 00d4e6e7b..dfdb78364 100644 --- a/apps/server/CHANGELOG.md +++ b/apps/server/CHANGELOG.md @@ -1,5 +1,12 @@ # server +## 0.0.20 + +### Patch Changes + +- Updated dependencies [e193754] + - evolu@0.6.0 + ## 0.0.19 ### Patch Changes diff --git a/apps/server/package.json b/apps/server/package.json index 7939814d6..b7867e793 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -1,6 +1,6 @@ { "name": "server", - "version": "0.0.19", + "version": "0.0.20", "private": true, "type": "module", "scripts": { @@ -14,7 +14,7 @@ "better-sqlite3": "^8.0.1", "body-parser": "^1.20.1", "cors": "^2.8.5", - "evolu": "workspace:0.5.1", + "evolu": "workspace:0.6.0", "express": "^4.18.2", "fp-ts": "^2.13.1" }, diff --git a/apps/web/CHANGELOG.md b/apps/web/CHANGELOG.md index 6969d121c..cbd82cc3a 100644 --- a/apps/web/CHANGELOG.md +++ b/apps/web/CHANGELOG.md @@ -1,5 +1,12 @@ # web +## 0.0.20 + +### Patch Changes + +- Updated dependencies [e193754] + - evolu@0.6.0 + ## 0.0.19 ### Patch Changes diff --git a/apps/web/package.json b/apps/web/package.json index 62f590642..e23d9cb20 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "0.0.19", + "version": "0.0.20", "private": true, "scripts": { "dev": "next dev", @@ -13,7 +13,7 @@ "dependencies": { "@next/bundle-analyzer": "^13.1.1", "cross-env": "^7.0.3", - "evolu": "workspace:0.5.1", + "evolu": "workspace:0.6.0", "next": "^13.1.1", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/packages/evolu/CHANGELOG.md b/packages/evolu/CHANGELOG.md index 151098ab5..594ae413a 100644 --- a/packages/evolu/CHANGELOG.md +++ b/packages/evolu/CHANGELOG.md @@ -1,5 +1,13 @@ # evolu +## 0.6.0 + +### Minor Changes + +- e193754: Replace rfc6902 and immutable-json-patch with custom and much faster algorithm. + + For now, we detect only a change in the whole result and in-place edits. In the future, we will add more heuristics. We will probably not implement the Myers diff algorithm because it's faster to rerender all than to compute many detailed patches. We will only implement a logic a developer would implement manually, if necessary. + ## 0.5.1 ### Patch Changes diff --git a/packages/evolu/package.json b/packages/evolu/package.json index 0a62188fd..f3b777c44 100644 --- a/packages/evolu/package.json +++ b/packages/evolu/package.json @@ -1,6 +1,6 @@ { "name": "evolu", - "version": "0.5.1", + "version": "0.6.0", "description": "React Hooks library for local-first software with end-to-end encrypted backup and sync using SQLite and CRDT.", "keywords": [ "evolu", diff --git a/packages/evolu/test/diff.test.ts b/packages/evolu/test/diff.test.ts index 51fb9600b..360d98a82 100644 --- a/packages/evolu/test/diff.test.ts +++ b/packages/evolu/test/diff.test.ts @@ -28,9 +28,8 @@ test("createPatches", () => { }, ] `); - expect( - createPatches([item, { b: 2 }], [item, { b: 3 }]) - ).toMatchInlineSnapshot(` + expect(createPatches([item, { b: 2 }], [item, { b: 3 }])) + .toMatchInlineSnapshot(` [ { "index": 1, @@ -41,9 +40,8 @@ test("createPatches", () => { }, ] `); - expect( - createPatches([{ a: 1 }, item, { c: 4 }], [{ a: 0 }, item, { c: 1 }]) - ).toMatchInlineSnapshot(` + expect(createPatches([{ a: 1 }, item, { c: 4 }], [{ a: 0 }, item, { c: 1 }])) + .toMatchInlineSnapshot(` [ { "index": 0, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d3689c56c..7002782a5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,7 +27,7 @@ importers: better-sqlite3: ^8.0.1 body-parser: ^1.20.1 cors: ^2.8.5 - evolu: workspace:0.5.1 + evolu: workspace:0.6.0 express: ^4.18.2 fp-ts: ^2.13.1 ts-node: ^10.9.1 @@ -59,7 +59,7 @@ importers: cross-env: ^7.0.3 eslint: ^8.30.0 eslint-config-evolu: workspace:0.0.2 - evolu: workspace:0.5.1 + evolu: workspace:0.6.0 next: ^13.1.1 react: ^18.2.0 react-dom: ^18.2.0