diff --git a/.changeset/metal-humans-judge.md b/.changeset/metal-humans-judge.md deleted file mode 100644 index fe6e59db1..000000000 --- a/.changeset/metal-humans-judge.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@evolu/common-react": patch -"@evolu/common-web": patch -"@evolu/common": patch ---- - -Fix SSR - -Evolu server-side rendering was surprisingly problematic because of the React Suspense error: "This Suspense boundary received an update before it finished hydrating." - -If you are curious why a local-first library needs to render something on the server where there is no data, the answer is that if we can render empty rows, we should. - -But because of the React Suspense error, Evolu apps had to be wrapped by the ClientOnly component, which wasn't ideal. Check article: - -https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store - -Internally, PlatformName has been replaced with useWasSSR React Hook. diff --git a/.changeset/unlucky-peaches-wonder.md b/.changeset/unlucky-peaches-wonder.md deleted file mode 100644 index 498cff778..000000000 --- a/.changeset/unlucky-peaches-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@evolu/react-native": minor ---- - -Update peer dependencies: expo, expo-sqlite diff --git a/apps/native/CHANGELOG.md b/apps/native/CHANGELOG.md index c39959cd8..cf935e0ff 100644 --- a/apps/native/CHANGELOG.md +++ b/apps/native/CHANGELOG.md @@ -1,5 +1,15 @@ # native +## 1.0.25 + +### Patch Changes + +- Updated dependencies [1f9168f] +- Updated dependencies [d3f1ac4] + - @evolu/common-react@6.0.2 + - @evolu/common@4.0.2 + - @evolu/react-native@7.1.0 + ## 1.0.24 ### Patch Changes diff --git a/apps/native/package.json b/apps/native/package.json index 334f3daea..e0ed055c6 100644 --- a/apps/native/package.json +++ b/apps/native/package.json @@ -1,6 +1,6 @@ { "name": "native", - "version": "1.0.24", + "version": "1.0.25", "private": true, "main": "index.js", "scripts": { diff --git a/apps/server/CHANGELOG.md b/apps/server/CHANGELOG.md index 9074c0b35..203fee0f2 100644 --- a/apps/server/CHANGELOG.md +++ b/apps/server/CHANGELOG.md @@ -1,5 +1,11 @@ # server +## 1.0.42 + +### Patch Changes + +- @evolu/server@5.0.2 + ## 1.0.41 ### Patch Changes diff --git a/apps/server/package.json b/apps/server/package.json index 962ff83fe..0d625b495 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -1,6 +1,6 @@ { "name": "server", - "version": "1.0.41", + "version": "1.0.42", "private": true, "type": "module", "scripts": { diff --git a/apps/web/CHANGELOG.md b/apps/web/CHANGELOG.md index b51a1abf2..f8e54f1b2 100644 --- a/apps/web/CHANGELOG.md +++ b/apps/web/CHANGELOG.md @@ -1,5 +1,13 @@ # web +## 1.0.42 + +### Patch Changes + +- Updated dependencies [1f9168f] + - @evolu/common@4.0.2 + - @evolu/react@6.0.1 + ## 1.0.41 ### Patch Changes diff --git a/apps/web/package.json b/apps/web/package.json index cc6ca9c13..8908c5bc5 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "1.0.41", + "version": "1.0.42", "private": true, "scripts": { "dev": "next dev", diff --git a/packages/evolu-common-react/CHANGELOG.md b/packages/evolu-common-react/CHANGELOG.md index 439557237..c21b23db5 100644 --- a/packages/evolu-common-react/CHANGELOG.md +++ b/packages/evolu-common-react/CHANGELOG.md @@ -1,5 +1,24 @@ # @evolu/common-react +## 6.0.2 + +### Patch Changes + +- 1f9168f: Fix SSR + + Evolu server-side rendering was surprisingly problematic because of the React Suspense error: "This Suspense boundary received an update before it finished hydrating." + + If you are curious why a local-first library needs to render something on the server where there is no data, the answer is that if we can render empty rows, we should. + + But because of the React Suspense error, Evolu apps had to be wrapped by the ClientOnly component, which wasn't ideal. Check article: + + https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store + + Internally, PlatformName has been replaced with useWasSSR React Hook. + +- Updated dependencies [1f9168f] + - @evolu/common@4.0.2 + ## 6.0.1 ### Patch Changes diff --git a/packages/evolu-common-react/package.json b/packages/evolu-common-react/package.json index e659c0c58..44febf553 100644 --- a/packages/evolu-common-react/package.json +++ b/packages/evolu-common-react/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/common-react", - "version": "6.0.1", + "version": "6.0.2", "description": "Common code for Evolu React libraries", "keywords": [ "evolu", @@ -49,7 +49,7 @@ "vitest": "^1.3.1" }, "peerDependencies": { - "@evolu/common": "^4.0.1", + "@evolu/common": "^4.0.2", "react": "^18.2.0" }, "publishConfig": { diff --git a/packages/evolu-common-web/CHANGELOG.md b/packages/evolu-common-web/CHANGELOG.md index 5f74fe13f..c3ec5b130 100644 --- a/packages/evolu-common-web/CHANGELOG.md +++ b/packages/evolu-common-web/CHANGELOG.md @@ -1,5 +1,24 @@ # @evolu/common-web +## 6.0.3 + +### Patch Changes + +- 1f9168f: Fix SSR + + Evolu server-side rendering was surprisingly problematic because of the React Suspense error: "This Suspense boundary received an update before it finished hydrating." + + If you are curious why a local-first library needs to render something on the server where there is no data, the answer is that if we can render empty rows, we should. + + But because of the React Suspense error, Evolu apps had to be wrapped by the ClientOnly component, which wasn't ideal. Check article: + + https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store + + Internally, PlatformName has been replaced with useWasSSR React Hook. + +- Updated dependencies [1f9168f] + - @evolu/common@4.0.2 + ## 6.0.2 ### Patch Changes diff --git a/packages/evolu-common-web/package.json b/packages/evolu-common-web/package.json index a578b066a..bbc419851 100644 --- a/packages/evolu-common-web/package.json +++ b/packages/evolu-common-web/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/common-web", - "version": "6.0.2", + "version": "6.0.3", "description": "Common code for Evolu libraries targeting web", "keywords": [ "evolu", @@ -46,7 +46,7 @@ "vitest": "^1.3.1" }, "peerDependencies": { - "@evolu/common": "^4.0.1", + "@evolu/common": "^4.0.2", "@sqlite.org/sqlite-wasm": "3.45.1-build1" }, "publishConfig": { diff --git a/packages/evolu-common/CHANGELOG.md b/packages/evolu-common/CHANGELOG.md index 05e9b0215..3b50139c8 100644 --- a/packages/evolu-common/CHANGELOG.md +++ b/packages/evolu-common/CHANGELOG.md @@ -1,5 +1,21 @@ # @evolu/common +## 4.0.2 + +### Patch Changes + +- 1f9168f: Fix SSR + + Evolu server-side rendering was surprisingly problematic because of the React Suspense error: "This Suspense boundary received an update before it finished hydrating." + + If you are curious why a local-first library needs to render something on the server where there is no data, the answer is that if we can render empty rows, we should. + + But because of the React Suspense error, Evolu apps had to be wrapped by the ClientOnly component, which wasn't ideal. Check article: + + https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store + + Internally, PlatformName has been replaced with useWasSSR React Hook. + ## 4.0.1 ### Patch Changes diff --git a/packages/evolu-common/package.json b/packages/evolu-common/package.json index 1c009db77..9e1d4993d 100644 --- a/packages/evolu-common/package.json +++ b/packages/evolu-common/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/common", - "version": "4.0.1", + "version": "4.0.2", "description": "Local-first platform designed for privacy, ease of use, and no vendor lock-in to sync and backup people's lifetime data", "keywords": [ "evolu", diff --git a/packages/evolu-react-native/CHANGELOG.md b/packages/evolu-react-native/CHANGELOG.md index b97a592a6..4fe446d66 100644 --- a/packages/evolu-react-native/CHANGELOG.md +++ b/packages/evolu-react-native/CHANGELOG.md @@ -1,5 +1,16 @@ # @evolu/react-native +## 7.1.0 + +### Minor Changes + +- d3f1ac4: Update peer dependencies: expo, expo-sqlite + +### Patch Changes + +- Updated dependencies [1f9168f] + - @evolu/common-react@6.0.2 + ## 7.0.1 ### Patch Changes diff --git a/packages/evolu-react-native/package.json b/packages/evolu-react-native/package.json index ec52ac7f4..646a43a2f 100644 --- a/packages/evolu-react-native/package.json +++ b/packages/evolu-react-native/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/react-native", - "version": "7.0.1", + "version": "7.1.0", "description": "Evolu for React Native", "keywords": [ "evolu", @@ -53,7 +53,7 @@ "vitest": "^1.3.1" }, "peerDependencies": { - "@evolu/common-react": "^6.0.1", + "@evolu/common-react": "^6.0.2", "expo": "^50.0.11", "expo-sqlite": "~13.3.0", "react-native": "0.73.4" diff --git a/packages/evolu-react/package.json b/packages/evolu-react/package.json index d99ed6d9a..97249089a 100644 --- a/packages/evolu-react/package.json +++ b/packages/evolu-react/package.json @@ -48,9 +48,9 @@ "vitest": "^1.3.1" }, "peerDependencies": { - "@evolu/common": "^4.0.1", - "@evolu/common-react": "^6.0.1", - "@evolu/common-web": "^6.0.2", + "@evolu/common": "^4.0.2", + "@evolu/common-react": "^6.0.2", + "@evolu/common-web": "^6.0.3", "react-dom": "^18.2.0" }, "publishConfig": { diff --git a/packages/evolu-server/CHANGELOG.md b/packages/evolu-server/CHANGELOG.md index e6c6985da..67ebcf720 100644 --- a/packages/evolu-server/CHANGELOG.md +++ b/packages/evolu-server/CHANGELOG.md @@ -1,5 +1,12 @@ # @evolu/server +## 5.0.2 + +### Patch Changes + +- Updated dependencies [1f9168f] + - @evolu/common@4.0.2 + ## 5.0.1 ### Patch Changes diff --git a/packages/evolu-server/package.json b/packages/evolu-server/package.json index 3cc4f33a6..85bda3b0d 100644 --- a/packages/evolu-server/package.json +++ b/packages/evolu-server/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/server", - "version": "5.0.1", + "version": "5.0.2", "description": "Node.js server for Evolu", "author": "Daniel Steigerwald ", "license": "MIT", @@ -48,7 +48,7 @@ "vitest": "^1.3.1" }, "peerDependencies": { - "@evolu/common": "^4.0.1", + "@evolu/common": "^4.0.2", "effect": "2.4.1" }, "publishConfig": {