diff --git a/.changeset/automatic-meta-type-safety.md b/.changeset/automatic-meta-type-safety.md deleted file mode 100644 index 18b7632ad..000000000 --- a/.changeset/automatic-meta-type-safety.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@tanstack/query-db-collection": patch ---- - -fix: ensure ctx.meta.loadSubsetOptions type-safety works automatically - -The module augmentation for ctx.meta.loadSubsetOptions is now guaranteed to load automatically when importing from @tanstack/query-db-collection. Previously, users needed to explicitly import QueryCollectionMeta or use @ts-ignore to pass ctx.meta?.loadSubsetOptions to parseLoadSubsetOptions. - -Additionally, QueryCollectionMeta is now an interface (instead of a type alias), enabling users to safely extend meta with custom properties via declaration merging: - -```typescript -declare module "@tanstack/query-db-collection" { - interface QueryCollectionMeta { - myCustomProperty: string - } -} -``` diff --git a/.changeset/soft-lazy-deps.md b/.changeset/soft-lazy-deps.md deleted file mode 100644 index 94b1e667c..000000000 --- a/.changeset/soft-lazy-deps.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tanstack/db": patch ---- - -Fix scheduler handling of lazy left-join/live-query dependencies: treat non-enqueued lazy deps as satisfied to avoid unresolved-dependency deadlocks, and block only when a dep actually has pending work. diff --git a/examples/react/offline-transactions/package.json b/examples/react/offline-transactions/package.json index c10f07966..4695b2cd9 100644 --- a/examples/react/offline-transactions/package.json +++ b/examples/react/offline-transactions/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/offline-transactions": ">=1.0.0", - "@tanstack/query-db-collection": ">=1.0.4", - "@tanstack/react-db": ">=0.1.49", + "@tanstack/query-db-collection": ">=1.0.5", + "@tanstack/react-db": ">=0.1.50", "@tanstack/react-query": "^5.90.10", "@tanstack/react-router": "^1.139.3", "@tanstack/react-router-devtools": "^1.139.3", diff --git a/examples/react/projects/package.json b/examples/react/projects/package.json index c2909123a..f5b9e47a5 100644 --- a/examples/react/projects/package.json +++ b/examples/react/projects/package.json @@ -17,8 +17,8 @@ "dependencies": { "@tailwindcss/vite": "^4.1.17", "@tanstack/query-core": "^5.90.10", - "@tanstack/query-db-collection": ">=1.0.4", - "@tanstack/react-db": ">=0.1.49", + "@tanstack/query-db-collection": ">=1.0.5", + "@tanstack/react-db": ">=0.1.50", "@tanstack/react-router": "^1.139.3", "@tanstack/react-router-devtools": "^1.139.3", "@tanstack/react-router-with-query": "^1.130.17", diff --git a/packages/angular-db/CHANGELOG.md b/packages/angular-db/CHANGELOG.md index b2e09d0a4..3a9982c49 100644 --- a/packages/angular-db/CHANGELOG.md +++ b/packages/angular-db/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/angular-db +## 0.1.32 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.31 ### Patch Changes diff --git a/packages/angular-db/package.json b/packages/angular-db/package.json index cf86bdf38..f66bd7064 100644 --- a/packages/angular-db/package.json +++ b/packages/angular-db/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/angular-db", "description": "Angular integration for @tanstack/db", - "version": "0.1.31", + "version": "0.1.32", "author": "Ethan McDaniel", "license": "MIT", "repository": { diff --git a/packages/db-collection-e2e/CHANGELOG.md b/packages/db-collection-e2e/CHANGELOG.md index 0f4ddd1f2..857ffca89 100644 --- a/packages/db-collection-e2e/CHANGELOG.md +++ b/packages/db-collection-e2e/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/db-collection-e2e +## 0.0.8 + +### Patch Changes + +- Updated dependencies [[`a540d7c`](https://github.com/TanStack/db/commit/a540d7c34042d69cf1f81d1219df5f3f3d57e200), [`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/query-db-collection@1.0.5 + - @tanstack/db@0.5.6 + - @tanstack/electric-db-collection@0.2.6 + ## 0.0.7 ### Patch Changes diff --git a/packages/db-collection-e2e/package.json b/packages/db-collection-e2e/package.json index ef48f91ac..936679975 100644 --- a/packages/db-collection-e2e/package.json +++ b/packages/db-collection-e2e/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/db-collection-e2e", - "version": "0.0.7", + "version": "0.0.8", "private": true, "description": "End-to-end test suite for TanStack DB collections", "type": "module", diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md index fd2909f57..6b69db4b9 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,11 @@ # @tanstack/db +## 0.5.6 + +### Patch Changes + +- Fix scheduler handling of lazy left-join/live-query dependencies: treat non-enqueued lazy deps as satisfied to avoid unresolved-dependency deadlocks, and block only when a dep actually has pending work. ([#898](https://github.com/TanStack/db/pull/898)) + ## 0.5.5 ### Patch Changes diff --git a/packages/db/package.json b/packages/db/package.json index 47d102aef..d145c5b46 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/db", "description": "A reactive client store for building super fast apps on sync", - "version": "0.5.5", + "version": "0.5.6", "dependencies": { "@standard-schema/spec": "^1.0.0", "@tanstack/db-ivm": "workspace:*", diff --git a/packages/electric-db-collection/CHANGELOG.md b/packages/electric-db-collection/CHANGELOG.md index a017d292a..a2b0b12c8 100644 --- a/packages/electric-db-collection/CHANGELOG.md +++ b/packages/electric-db-collection/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/electric-db-collection +## 0.2.6 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.2.5 ### Patch Changes diff --git a/packages/electric-db-collection/package.json b/packages/electric-db-collection/package.json index cf23b010b..ed9727b34 100644 --- a/packages/electric-db-collection/package.json +++ b/packages/electric-db-collection/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/electric-db-collection", "description": "ElectricSQL collection for TanStack DB", - "version": "0.2.5", + "version": "0.2.6", "dependencies": { "@electric-sql/client": "^1.1.5", "@standard-schema/spec": "^1.0.0", diff --git a/packages/powersync-db-collection/CHANGELOG.md b/packages/powersync-db-collection/CHANGELOG.md index 4e24deb79..a0e61c739 100644 --- a/packages/powersync-db-collection/CHANGELOG.md +++ b/packages/powersync-db-collection/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/powersync-db-collection +## 0.1.10 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.9 ### Patch Changes diff --git a/packages/powersync-db-collection/package.json b/packages/powersync-db-collection/package.json index da199308b..2dac0ddc8 100644 --- a/packages/powersync-db-collection/package.json +++ b/packages/powersync-db-collection/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/powersync-db-collection", "description": "PowerSync collection for TanStack DB", - "version": "0.1.9", + "version": "0.1.10", "dependencies": { "@standard-schema/spec": "^1.0.0", "@tanstack/db": "workspace:*", diff --git a/packages/query-db-collection/CHANGELOG.md b/packages/query-db-collection/CHANGELOG.md index a0711b919..c5f50f8f1 100644 --- a/packages/query-db-collection/CHANGELOG.md +++ b/packages/query-db-collection/CHANGELOG.md @@ -1,5 +1,26 @@ # @tanstack/query-db-collection +## 1.0.5 + +### Patch Changes + +- fix: ensure ctx.meta.loadSubsetOptions type-safety works automatically ([#869](https://github.com/TanStack/db/pull/869)) + + The module augmentation for ctx.meta.loadSubsetOptions is now guaranteed to load automatically when importing from @tanstack/query-db-collection. Previously, users needed to explicitly import QueryCollectionMeta or use @ts-ignore to pass ctx.meta?.loadSubsetOptions to parseLoadSubsetOptions. + + Additionally, QueryCollectionMeta is now an interface (instead of a type alias), enabling users to safely extend meta with custom properties via declaration merging: + + ```typescript + declare module "@tanstack/query-db-collection" { + interface QueryCollectionMeta { + myCustomProperty: string + } + } + ``` + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 1.0.4 ### Patch Changes diff --git a/packages/query-db-collection/package.json b/packages/query-db-collection/package.json index f54d8296b..908d37ffb 100644 --- a/packages/query-db-collection/package.json +++ b/packages/query-db-collection/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/query-db-collection", "description": "TanStack Query collection for TanStack DB", - "version": "1.0.4", + "version": "1.0.5", "dependencies": { "@standard-schema/spec": "^1.0.0" }, diff --git a/packages/react-db/CHANGELOG.md b/packages/react-db/CHANGELOG.md index feeea5506..80b87433b 100644 --- a/packages/react-db/CHANGELOG.md +++ b/packages/react-db/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/react-db +## 0.1.50 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.49 ### Patch Changes diff --git a/packages/react-db/package.json b/packages/react-db/package.json index 7101ad5a7..ea8885997 100644 --- a/packages/react-db/package.json +++ b/packages/react-db/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/react-db", "description": "React integration for @tanstack/db", - "version": "0.1.49", + "version": "0.1.50", "author": "Kyle Mathews", "license": "MIT", "repository": { diff --git a/packages/rxdb-db-collection/CHANGELOG.md b/packages/rxdb-db-collection/CHANGELOG.md index 6c579e8a3..968d5f89f 100644 --- a/packages/rxdb-db-collection/CHANGELOG.md +++ b/packages/rxdb-db-collection/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/rxdb-db-collection +## 0.1.38 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.37 ### Patch Changes diff --git a/packages/rxdb-db-collection/package.json b/packages/rxdb-db-collection/package.json index 1b92aa9f9..7f28f97ef 100644 --- a/packages/rxdb-db-collection/package.json +++ b/packages/rxdb-db-collection/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/rxdb-db-collection", "description": "RxDB collection for TanStack DB", - "version": "0.1.37", + "version": "0.1.38", "dependencies": { "rxdb": "16.20.0", "@standard-schema/spec": "^1.0.0", diff --git a/packages/solid-db/CHANGELOG.md b/packages/solid-db/CHANGELOG.md index f281cdc75..22e8654b6 100644 --- a/packages/solid-db/CHANGELOG.md +++ b/packages/solid-db/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/react-db +## 0.1.49 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.48 ### Patch Changes diff --git a/packages/solid-db/package.json b/packages/solid-db/package.json index 3268953ea..17d6c369e 100644 --- a/packages/solid-db/package.json +++ b/packages/solid-db/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/solid-db", "description": "Solid integration for @tanstack/db", - "version": "0.1.48", + "version": "0.1.49", "author": "Kyle Mathews", "license": "MIT", "repository": { diff --git a/packages/svelte-db/CHANGELOG.md b/packages/svelte-db/CHANGELOG.md index 54617d2e8..ad92e4c64 100644 --- a/packages/svelte-db/CHANGELOG.md +++ b/packages/svelte-db/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/svelte-db +## 0.1.49 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.48 ### Patch Changes diff --git a/packages/svelte-db/package.json b/packages/svelte-db/package.json index 9ff101ebd..b825904ee 100644 --- a/packages/svelte-db/package.json +++ b/packages/svelte-db/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/svelte-db", "description": "Svelte integration for @tanstack/db", - "version": "0.1.48", + "version": "0.1.49", "dependencies": { "@tanstack/db": "workspace:*" }, diff --git a/packages/trailbase-db-collection/CHANGELOG.md b/packages/trailbase-db-collection/CHANGELOG.md index ff173dcfc..9236230e5 100644 --- a/packages/trailbase-db-collection/CHANGELOG.md +++ b/packages/trailbase-db-collection/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/trailbase-db-collection +## 0.1.50 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.1.49 ### Patch Changes diff --git a/packages/trailbase-db-collection/package.json b/packages/trailbase-db-collection/package.json index c693924d3..912d8fc0a 100644 --- a/packages/trailbase-db-collection/package.json +++ b/packages/trailbase-db-collection/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/trailbase-db-collection", "description": "TrailBase collection for TanStack DB", - "version": "0.1.49", + "version": "0.1.50", "dependencies": { "@standard-schema/spec": "^1.0.0", "@tanstack/db": "workspace:*", diff --git a/packages/vue-db/CHANGELOG.md b/packages/vue-db/CHANGELOG.md index d4ca4022f..9e0f876ed 100644 --- a/packages/vue-db/CHANGELOG.md +++ b/packages/vue-db/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/vue-db +## 0.0.82 + +### Patch Changes + +- Updated dependencies [[`c8a2c16`](https://github.com/TanStack/db/commit/c8a2c16aa528427d5ddd55cda4ee59a5cb369b5f)]: + - @tanstack/db@0.5.6 + ## 0.0.81 ### Patch Changes diff --git a/packages/vue-db/package.json b/packages/vue-db/package.json index 9bcc9e1bd..c7bb57d75 100644 --- a/packages/vue-db/package.json +++ b/packages/vue-db/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/vue-db", "description": "Vue integration for @tanstack/db", - "version": "0.0.81", + "version": "0.0.82", "author": "Kyle Mathews", "license": "MIT", "repository": {