diff --git a/.changeset/yellow-lobsters-promise.md b/.changeset/yellow-lobsters-promise.md deleted file mode 100644 index 0f17728ca..000000000 --- a/.changeset/yellow-lobsters-promise.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -"@evolu/common": minor ---- - -Indexes (or indices, we don't judge) - -This release brings SQLite indexes support to Evolu with two helpful options for `evolu.createQuery` functions. - -```ts -const indexes = [ - createIndex("indexTodoCreatedAt").on("todo").column("createdAt"), -]; - -const evolu = createEvolu(Database, { - // Try to remove/re-add indexes with `logExplainQueryPlan`. - indexes, -}); - -const allTodos = evolu.createQuery( - (db) => db.selectFrom("todo").orderBy("createdAt").selectAll(), - { - logExecutionTime: true, - // logExplainQueryPlan: false, - }, -); -``` - -Indexes are not necessary for development but are required for production. - -Before adding an index, use `logExecutionTime` and `logExplainQueryPlan` -createQuery options. - -SQLite has [a tool](https://sqlite.org/cli.html#index_recommendations_sqlite_expert_) for index recommendations. diff --git a/apps/native/CHANGELOG.md b/apps/native/CHANGELOG.md index 49271aee9..c5809162f 100644 --- a/apps/native/CHANGELOG.md +++ b/apps/native/CHANGELOG.md @@ -1,5 +1,14 @@ # native +## 1.0.29 + +### Patch Changes + +- Updated dependencies [8af071c] + - @evolu/common@4.1.0 + - @evolu/common-react@7.0.0 + - @evolu/react-native@8.0.0 + ## 1.0.28 ### Patch Changes diff --git a/apps/native/package.json b/apps/native/package.json index 4113b88bb..cef7466f2 100644 --- a/apps/native/package.json +++ b/apps/native/package.json @@ -1,6 +1,6 @@ { "name": "native", - "version": "1.0.28", + "version": "1.0.29", "private": true, "main": "index.js", "scripts": { diff --git a/apps/server/CHANGELOG.md b/apps/server/CHANGELOG.md index 7de0c0bcb..193a0ea55 100644 --- a/apps/server/CHANGELOG.md +++ b/apps/server/CHANGELOG.md @@ -1,5 +1,11 @@ # server +## 1.0.46 + +### Patch Changes + +- @evolu/server@6.0.0 + ## 1.0.45 ### Patch Changes diff --git a/apps/server/package.json b/apps/server/package.json index 77e21aba2..292b6a0f1 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -1,6 +1,6 @@ { "name": "server", - "version": "1.0.45", + "version": "1.0.46", "private": true, "type": "module", "scripts": { diff --git a/apps/web/CHANGELOG.md b/apps/web/CHANGELOG.md index eda0ae63d..907dbc40c 100644 --- a/apps/web/CHANGELOG.md +++ b/apps/web/CHANGELOG.md @@ -1,5 +1,13 @@ # web +## 1.0.46 + +### Patch Changes + +- Updated dependencies [8af071c] + - @evolu/common@4.1.0 + - @evolu/react@7.0.0 + ## 1.0.45 ### Patch Changes diff --git a/apps/web/package.json b/apps/web/package.json index d86ffb18c..85614c06f 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "1.0.45", + "version": "1.0.46", "private": true, "scripts": { "dev": "next dev", diff --git a/packages/evolu-common-react/CHANGELOG.md b/packages/evolu-common-react/CHANGELOG.md index 052e009e5..cd7cea1d9 100644 --- a/packages/evolu-common-react/CHANGELOG.md +++ b/packages/evolu-common-react/CHANGELOG.md @@ -1,5 +1,12 @@ # @evolu/common-react +## 7.0.0 + +### Patch Changes + +- Updated dependencies [8af071c] + - @evolu/common@4.1.0 + ## 6.0.3 ### Patch Changes diff --git a/packages/evolu-common-react/package.json b/packages/evolu-common-react/package.json index 19aee8d4c..e884897b2 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.3", + "version": "7.0.0", "description": "Common code for Evolu React libraries", "keywords": [ "evolu", @@ -49,7 +49,7 @@ "vitest": "^1.4.0" }, "peerDependencies": { - "@evolu/common": "^4.0.5", + "@evolu/common": "^4.1.0", "react": "^18.2.0" }, "publishConfig": { diff --git a/packages/evolu-common-web/CHANGELOG.md b/packages/evolu-common-web/CHANGELOG.md index 9b1853634..05b520c74 100644 --- a/packages/evolu-common-web/CHANGELOG.md +++ b/packages/evolu-common-web/CHANGELOG.md @@ -1,5 +1,12 @@ # @evolu/common-web +## 7.0.0 + +### Patch Changes + +- Updated dependencies [8af071c] + - @evolu/common@4.1.0 + ## 6.0.4 ### Patch Changes diff --git a/packages/evolu-common-web/package.json b/packages/evolu-common-web/package.json index 2a70aa778..1b95727c0 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.4", + "version": "7.0.0", "description": "Common code for Evolu libraries targeting web", "keywords": [ "evolu", @@ -46,7 +46,7 @@ "vitest": "^1.4.0" }, "peerDependencies": { - "@evolu/common": "^4.0.5", + "@evolu/common": "^4.1.0", "@sqlite.org/sqlite-wasm": "3.45.1-build1" }, "publishConfig": { diff --git a/packages/evolu-common/CHANGELOG.md b/packages/evolu-common/CHANGELOG.md index b82007e12..c378555e0 100644 --- a/packages/evolu-common/CHANGELOG.md +++ b/packages/evolu-common/CHANGELOG.md @@ -1,5 +1,39 @@ # @evolu/common +## 4.1.0 + +### Minor Changes + +- 8af071c: Indexes (or indices, we don't judge) + + This release brings SQLite indexes support to Evolu with two helpful options for `evolu.createQuery` functions. + + ```ts + const indexes = [ + createIndex("indexTodoCreatedAt").on("todo").column("createdAt"), + ]; + + const evolu = createEvolu(Database, { + // Try to remove/re-add indexes with `logExplainQueryPlan`. + indexes, + }); + + const allTodos = evolu.createQuery( + (db) => db.selectFrom("todo").orderBy("createdAt").selectAll(), + { + logExecutionTime: true, + // logExplainQueryPlan: false, + }, + ); + ``` + + Indexes are not necessary for development but are required for production. + + Before adding an index, use `logExecutionTime` and `logExplainQueryPlan` + createQuery options. + + SQLite has [a tool](https://sqlite.org/cli.html#index_recommendations_sqlite_expert_) for index recommendations. + ## 4.0.5 ### Patch Changes diff --git a/packages/evolu-common/package.json b/packages/evolu-common/package.json index 2a19cf3f9..228cc63f8 100644 --- a/packages/evolu-common/package.json +++ b/packages/evolu-common/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/common", - "version": "4.0.5", + "version": "4.1.0", "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 018847015..cd07a7032 100644 --- a/packages/evolu-react-native/CHANGELOG.md +++ b/packages/evolu-react-native/CHANGELOG.md @@ -1,5 +1,11 @@ # @evolu/react-native +## 8.0.0 + +### Patch Changes + +- @evolu/common-react@7.0.0 + ## 7.1.1 ### Patch Changes diff --git a/packages/evolu-react-native/package.json b/packages/evolu-react-native/package.json index a899d30a5..67e55b4b8 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.1.1", + "version": "8.0.0", "description": "Evolu for React Native", "keywords": [ "evolu", @@ -53,7 +53,7 @@ "vitest": "^1.4.0" }, "peerDependencies": { - "@evolu/common-react": "^6.0.3", + "@evolu/common-react": "^7.0.0", "expo": "^50.0.14", "expo-sqlite": "~13.4.0", "react-native": "0.73.6" diff --git a/packages/evolu-react/CHANGELOG.md b/packages/evolu-react/CHANGELOG.md index 14b49ad04..68bf9e5a5 100644 --- a/packages/evolu-react/CHANGELOG.md +++ b/packages/evolu-react/CHANGELOG.md @@ -1,5 +1,14 @@ # @evolu/react +## 7.0.0 + +### Patch Changes + +- Updated dependencies [8af071c] + - @evolu/common@4.1.0 + - @evolu/common-react@7.0.0 + - @evolu/common-web@7.0.0 + ## 6.0.2 ### Patch Changes diff --git a/packages/evolu-react/package.json b/packages/evolu-react/package.json index 096a4c99c..c5da3aff0 100644 --- a/packages/evolu-react/package.json +++ b/packages/evolu-react/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/react", - "version": "6.0.2", + "version": "7.0.0", "description": "Evolu for React", "keywords": [ "evolu", @@ -48,9 +48,9 @@ "vitest": "^1.4.0" }, "peerDependencies": { - "@evolu/common": "^4.0.5", - "@evolu/common-react": "^6.0.3", - "@evolu/common-web": "^6.0.4", + "@evolu/common": "^4.1.0", + "@evolu/common-react": "^7.0.0", + "@evolu/common-web": "^7.0.0", "react-dom": "^18.2.0" }, "publishConfig": { diff --git a/packages/evolu-server/CHANGELOG.md b/packages/evolu-server/CHANGELOG.md index cf872da2c..0273ad7dc 100644 --- a/packages/evolu-server/CHANGELOG.md +++ b/packages/evolu-server/CHANGELOG.md @@ -1,5 +1,12 @@ # @evolu/server +## 6.0.0 + +### Patch Changes + +- Updated dependencies [8af071c] + - @evolu/common@4.1.0 + ## 5.0.5 ### Patch Changes diff --git a/packages/evolu-server/package.json b/packages/evolu-server/package.json index 032db3d81..9fb55b7af 100644 --- a/packages/evolu-server/package.json +++ b/packages/evolu-server/package.json @@ -1,6 +1,6 @@ { "name": "@evolu/server", - "version": "5.0.5", + "version": "6.0.0", "description": "Node.js server for Evolu", "author": "Daniel Steigerwald ", "license": "MIT", @@ -48,7 +48,7 @@ "vitest": "^1.4.0" }, "peerDependencies": { - "@evolu/common": "^4.0.5", + "@evolu/common": "^4.1.0", "effect": "2.4.9" }, "publishConfig": {