diff --git a/.changeset/add-cached-cursor-pagination.md b/.changeset/add-cached-cursor-pagination.md deleted file mode 100644 index 0b300bd6eb..0000000000 --- a/.changeset/add-cached-cursor-pagination.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@tanstack/query-db-collection': patch ---- - -Add `createCursorPager` to fulfill offset/limit requests from endpoints with opaque continuation tokens. Reuse fresh backend pages through the existing QueryClient, with Query-managed expiry, invalidation and garbage collection, while retaining the existing UI peek-ahead behavior. - -Keep manual raw-row writes from overwriting other cache formats or marking them fresh. Preserve wrapped-response writes and seeding of empty row caches. diff --git a/.changeset/clear-oracle-models.md b/.changeset/clear-oracle-models.md deleted file mode 100644 index 8ff00ea0e7..0000000000 --- a/.changeset/clear-oracle-models.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Document oracle tests as executable subsystem models, align their vocabulary with production code, and make deterministic failures easier to replay. diff --git a/.changeset/deprecate-handler-return-values.md b/.changeset/deprecate-handler-return-values.md deleted file mode 100644 index f2d2312c91..0000000000 --- a/.changeset/deprecate-handler-return-values.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -'@tanstack/db': minor -'@tanstack/electric-db-collection': minor -'@tanstack/query-db-collection': minor ---- - -**Deprecation**: Mutation handler return values and QueryCollection auto-refetch behavior. - -**What's changed:** - -- Handler return values remain type-compatible during the deprecation window -- **Deprecation warnings** are logged when deprecated patterns are used - -**QueryCollection changes:** - -- Auto-refetch after handlers is **deprecated** and will be removed in v1.0 -- To skip auto-refetch now, return `{ refetch: false }` from your handler -- To migrate to explicit refetch now, await `collection.utils.refetch()` and return `{ refetch: false }` to prevent a second fetch; remove the return in v1.0 -- In v1.0, call `await collection.utils.refetch()` explicitly when needed, or omit it to skip - -**ElectricCollection changes:** - -- Returning `{ txid }` is deprecated - use `await collection.utils.awaitTxId(txid)` instead -- The default `awaitTxId` and `awaitMatch` timeouts increase to 15 seconds - -**Migration guide:** - -```typescript -// QueryCollection - skip refetch (current) -onInsert: async ({ transaction }) => { - await api.create(transaction.mutations[0].modified) - return { refetch: false } // Opt out of auto-refetch -} - -// QueryCollection - migrate to explicit refetch now -onInsert: async ({ transaction, collection }) => { - await api.create(transaction.mutations[0].modified) - await collection.utils.refetch() // Explicit refetch - return { refetch: false } // Prevent a second pre-1.0 refetch; remove in v1.0 -} - -// ElectricCollection - before -onInsert: async ({ transaction }) => { - const result = await api.create(transaction.mutations[0].modified) - return { txid: result.txid } // Deprecated -} - -// ElectricCollection - after -onInsert: async ({ transaction, collection }) => { - const result = await api.create(transaction.mutations[0].modified) - await collection.utils.awaitTxId(result.txid) // Explicit -} -``` diff --git a/.changeset/fix-aggregate-value-types.md b/.changeset/fix-aggregate-value-types.md deleted file mode 100644 index 24ca57fd59..0000000000 --- a/.changeset/fix-aggregate-value-types.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Restrict built-in aggregate helpers to their supported value domains so numeric aggregates and min/max no longer advertise impossible runtime result types. diff --git a/.changeset/fix-collation-config.md b/.changeset/fix-collation-config.md deleted file mode 100644 index a47e259384..0000000000 --- a/.changeset/fix-collation-config.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Preserve explicit locale settings when locale sorting is selected by default and omit unset locale fields from collection comparison options. diff --git a/.changeset/fix-collection-update-key-types.md b/.changeset/fix-collection-update-key-types.md deleted file mode 100644 index f69c652fc5..0000000000 --- a/.changeset/fix-collection-update-key-types.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@tanstack/db': minor ---- - -Require `Collection.update` keys to match the collection's declared key type. -Calls that pass possibly undefined keys (including unchecked indexed access) or -plain strings to branded-key collections must narrow or assert those values to -the declared key type before calling `update`. diff --git a/.changeset/fix-electric-sql-semantics.md b/.changeset/fix-electric-sql-semantics.md deleted file mode 100644 index da0ed45971..0000000000 --- a/.changeset/fix-electric-sql-semantics.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@tanstack/electric-db-collection': patch ---- - -Preserve PostgreSQL semantics for boolean comparisons and array membership, -including nullable values, compatible reference-to-array types, and non-text -array elements. Reject nullish membership operands and literal-array left -operands, and escape quotes in mapped column names. diff --git a/.changeset/fix-framework-live-query-result-types.md b/.changeset/fix-framework-live-query-result-types.md deleted file mode 100644 index 95ccaac5a2..0000000000 --- a/.changeset/fix-framework-live-query-result-types.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@tanstack/angular-db': patch -'@tanstack/react-db': patch -'@tanstack/solid-db': patch -'@tanstack/svelte-db': patch -'@tanstack/vue-db': patch ---- - -Preserve pre-created collection row, key, and utility types in React infinite -queries. Align conditional live-query result types with each framework's -disabled representation, including nullable collections, disabled statuses, -and empty single-result data in the empty-reactive bindings. diff --git a/.changeset/fix-mutation-reconciliation.md b/.changeset/fix-mutation-reconciliation.md deleted file mode 100644 index bdf150a598..0000000000 --- a/.changeset/fix-mutation-reconciliation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Fix same-key delete-then-insert reduction, preserve whole-row replacements through local adapters, and publish immutable previous values for live-object and replacement-object sync updates. Same-reference live rows still require an immutable provider `previousValue`; stale or partial values on that reused reference remain unsupported. diff --git a/.changeset/fix-offline-runtime-correctness.md b/.changeset/fix-offline-runtime-correctness.md deleted file mode 100644 index 22027a11ea..0000000000 --- a/.changeset/fix-offline-runtime-correctness.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@tanstack/offline-transactions': patch ---- - -Fix offline replay filtering so it preserves concurrently admitted and issued transactions, wait for React Native's subscribed connectivity snapshot before reporting online, and preserve Temporal scalar identity through storage and restart when the runtime provides `globalThis.Temporal`. Filtered replay work now settles and rolls back after each successful durable removal even when a sibling removal fails, while a failed filtered-work cleanup no longer aborts unrelated startup replay. Successful and permanently failed provider work settles its own caller even when durable cleanup also fails, retry scheduling remains live when a retry update or permanent-failure removal fails, and metadata keeps standard `toJSON(key)` replacement semantics. Recognized native scalars now fail before storage when the matching global constructor is unavailable. - -Offline storage compatibility: new records use `valueEncoding: 3`. Older clients cannot read these records, so do not run old and new clients against the same pending outbox or downgrade while new records remain pending. diff --git a/.changeset/fix-opfs-page-lifecycle.md b/.changeset/fix-opfs-page-lifecycle.md deleted file mode 100644 index 205135a494..0000000000 --- a/.changeset/fix-opfs-page-lifecycle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/browser-db-sqlite-persistence': patch ---- - -Terminate OPFS workers on pagehide, including during initialization, and reject pending requests with AbortError. Include available VFS error details in SQLite open failures. Connections must be recreated when restoring a document from the back/forward cache. diff --git a/.changeset/fix-optional-nullable-query-fields.md b/.changeset/fix-optional-nullable-query-fields.md deleted file mode 100644 index 9b9be21cda..0000000000 --- a/.changeset/fix-optional-nullable-query-fields.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Preserve `null` alongside `undefined` when nullable fields flow through query references, selected results, and branch unions. diff --git a/.changeset/fix-outbox-clear-removal-fence.md b/.changeset/fix-outbox-clear-removal-fence.md deleted file mode 100644 index c40a398eb8..0000000000 --- a/.changeset/fix-outbox-clear-removal-fence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/offline-transactions': patch ---- - -Fence each successful outbox clear deletion from overlapping reads, including when another deletion is still pending or fails. diff --git a/.changeset/fix-powersync-correctness.md b/.changeset/fix-powersync-correctness.md deleted file mode 100644 index 42442827a0..0000000000 --- a/.changeset/fix-powersync-correctness.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/powersync-db-collection': minor ---- - -Require PowerSync 2 and fix update conservation, declared-view rows, transformed-schema comparison, and portable inferred declarations. diff --git a/.changeset/fix-query-cache-scope-invalidation.md b/.changeset/fix-query-cache-scope-invalidation.md deleted file mode 100644 index 4b9a61ed68..0000000000 --- a/.changeset/fix-query-cache-scope-invalidation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/query-db-collection': patch ---- - -Keep on-demand Query cache ownership and post-write readiness isolated across collections, co-owners, deferred cleanup, errors, and custom query hashes. Active enabled scopes revalidate from post-write provider results, while inactive collection-owned entries are removed without disturbing unrelated or foreign-observed Queries. diff --git a/.changeset/fix-query-collection-lifecycle.md b/.changeset/fix-query-collection-lifecycle.md deleted file mode 100644 index e7c5cd4ab3..0000000000 --- a/.changeset/fix-query-collection-lifecycle.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@tanstack/db': patch -'@tanstack/query-db-collection': patch ---- - -Start idle collections only after locally decidable mutation validation succeeds, and publish authoritative Query Collection refetch results without stale intermediate snapshots. diff --git a/.changeset/fix-query-join-equality.md b/.changeset/fix-query-join-equality.md deleted file mode 100644 index 384407cf3d..0000000000 --- a/.changeset/fix-query-join-equality.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Align live-query join keys with established predicate equality for binary, temporal, Date, and opaque values, including on-demand collection loading, and prevent nullish operands from matching in full and correlated joins. diff --git a/.changeset/fix-query-ref-algebra.md b/.changeset/fix-query-ref-algebra.md deleted file mode 100644 index c89a76c3aa..0000000000 --- a/.changeset/fix-query-ref-algebra.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Preserve whole-object nullability through supported join and `unionAll` projections, retain intrinsic nullish fields when right/full joins follow branch unions, and preserve constrained generic fields through supported join and `unionAll` query chains. diff --git a/.changeset/fix-query-schema-select-output.md b/.changeset/fix-query-schema-select-output.md deleted file mode 100644 index 3a8d9d6051..0000000000 --- a/.changeset/fix-query-schema-select-output.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/query-db-collection': patch ---- - -Fix `queryCollectionOptions` to accept selectors that materialize transforming schema outputs from wrapped responses while preserving schema input types for mutations. diff --git a/.changeset/fix-retention-and-stale-replay.md b/.changeset/fix-retention-and-stale-replay.md deleted file mode 100644 index 42a539518e..0000000000 --- a/.changeset/fix-retention-and-stale-replay.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@tanstack/db': patch -'@tanstack/db-ivm': patch -'@tanstack/offline-transactions': patch ---- - -Preserve only captured accepted local inserts across a truncate. Preserve sparse-array length and RegExp state through ordered-query hashing, including hosts without a global File constructor. Prevent delayed replay reads from rerunning any transaction removed while the read was in flight, without rescanning the outbox. diff --git a/.changeset/fix-single-row-optional-ref-proxy.md b/.changeset/fix-single-row-optional-ref-proxy.md deleted file mode 100644 index e8911f6375..0000000000 --- a/.changeset/fix-single-row-optional-ref-proxy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/db': patch ---- - -Allow collection index and change-filter callbacks to traverse optional or nullable nested plain objects with optional chaining while preserving built-in values and functions as query leaves. diff --git a/.changeset/fix-solid-custom-key-reconciliation.md b/.changeset/fix-solid-custom-key-reconciliation.md deleted file mode 100644 index 89e81d55c5..0000000000 --- a/.changeset/fix-solid-custom-key-reconciliation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@tanstack/solid-db': patch ---- - -Keep Solid live-query rows tied to their result identities when custom-key rows -reorder or multiple results share the same public `$key`. diff --git a/.changeset/fix-sqlite-persistence-type-contracts.md b/.changeset/fix-sqlite-persistence-type-contracts.md deleted file mode 100644 index 3266f71d72..0000000000 --- a/.changeset/fix-sqlite-persistence-type-contracts.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@tanstack/db-sqlite-persistence-core': patch -'@tanstack/expo-db-sqlite-persistence': patch ---- - -Preserve schema input and output inference when persisted collection options are passed to `createCollection`. Accept Expo's native SQLite database type and preserve transaction callback results while validating bind values against Expo's supported domain. diff --git a/.changeset/fix-virtual-row-field-types.md b/.changeset/fix-virtual-row-field-types.md deleted file mode 100644 index 58f9a4a38c..0000000000 --- a/.changeset/fix-virtual-row-field-types.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@tanstack/db': minor ---- - -Keep virtual row fields on inferred collection and query row roots without -exposing them on nested user objects or projected child values. -Default `Ref` and `SingleRowRefProxy` annotations now support reusable -helpers for both root and nested refs; helpers that require row metadata should -set their third generic parameter to `true`. Preserve discriminated unions when -removing virtual row fields. diff --git a/.changeset/tighten-transaction-handler-types.md b/.changeset/tighten-transaction-handler-types.md deleted file mode 100644 index 8e1a8050ca..0000000000 --- a/.changeset/tighten-transaction-handler-types.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@tanstack/db': minor -'@tanstack/electric-db-collection': minor -'@tanstack/query-db-collection': minor ---- - -Preserve collection key and adapter utility types throughout mutation handlers and nested transaction mutations. Mutation keys now use the collection's declared key type instead of `any`; collections that use the default key type expose `string | number`. Prevent Query and Electric collections from exposing nonexistent cross-adapter utilities. diff --git a/examples/angular/todos/CHANGELOG.md b/examples/angular/todos/CHANGELOG.md index 57d7c75652..6427fd46ed 100644 --- a/examples/angular/todos/CHANGELOG.md +++ b/examples/angular/todos/CHANGELOG.md @@ -1,5 +1,13 @@ # todos +## 0.0.22 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/angular-db@0.1.92 + ## 0.0.21 ### Patch Changes diff --git a/examples/angular/todos/package.json b/examples/angular/todos/package.json index 9ecc9cff69..2b4eb8aefa 100644 --- a/examples/angular/todos/package.json +++ b/examples/angular/todos/package.json @@ -1,6 +1,6 @@ { "name": "todos", - "version": "0.0.21", + "version": "0.0.22", "scripts": { "ng": "ng", "start": "ng serve", @@ -28,8 +28,8 @@ "@angular/forms": "^20.3.16", "@angular/platform-browser": "^20.3.16", "@angular/router": "^20.3.16", - "@tanstack/angular-db": "^0.1.91", - "@tanstack/db": "^0.9.2", + "@tanstack/angular-db": "^0.1.92", + "@tanstack/db": "^0.10.0", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "~0.15.0" diff --git a/examples/electron/offline-first/package.json b/examples/electron/offline-first/package.json index e4bac8acc7..2d1b7d23af 100644 --- a/examples/electron/offline-first/package.json +++ b/examples/electron/offline-first/package.json @@ -13,11 +13,11 @@ "postinstall": "prebuild-install --runtime electron --target 40.2.1 --arch arm64 || echo 'prebuild-install failed, try: npx @electron/rebuild'" }, "dependencies": { - "@tanstack/electron-db-sqlite-persistence": "^0.1.35", - "@tanstack/node-db-sqlite-persistence": "^0.2.23", - "@tanstack/offline-transactions": "^1.0.56", - "@tanstack/query-db-collection": "^1.2.15", - "@tanstack/react-db": "^0.4.1", + "@tanstack/electron-db-sqlite-persistence": "^0.1.36", + "@tanstack/node-db-sqlite-persistence": "^0.2.24", + "@tanstack/offline-transactions": "^1.0.57", + "@tanstack/query-db-collection": "^1.3.0", + "@tanstack/react-db": "^0.4.2", "@tanstack/react-query": "^5.90.20", "better-sqlite3": "^12.6.2", "react": "^19.2.4", diff --git a/examples/react-native/offline-transactions/CHANGELOG.md b/examples/react-native/offline-transactions/CHANGELOG.md index 70d5fdc93e..9908975f93 100644 --- a/examples/react-native/offline-transactions/CHANGELOG.md +++ b/examples/react-native/offline-transactions/CHANGELOG.md @@ -1,5 +1,16 @@ # offline-transactions-react-native +## 1.0.9 + +### Patch Changes + +- Updated dependencies [[`179d003`](https://github.com/TanStack/db/commit/179d003a14a13ddf48ffacd22b15c25087f7c5f4), [`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`b73bfd3`](https://github.com/TanStack/db/commit/b73bfd3cd7ec400ac778f764b467dc40a5da3a33), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`09776a8`](https://github.com/TanStack/db/commit/09776a892c73f4abd593d1eda4914cdbc20451b3), [`fdcb078`](https://github.com/TanStack/db/commit/fdcb078a083b9c12327e8b1f68bd49e3429fb89e), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`47004bd`](https://github.com/TanStack/db/commit/47004bdda57abcfb63cb03ec6ce6397779012db5), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/query-db-collection@1.3.0 + - @tanstack/db@0.10.0 + - @tanstack/react-db@0.4.2 + - @tanstack/offline-transactions@1.0.57 + - @tanstack/react-native-db-sqlite-persistence@0.2.24 + ## 1.0.8 ### Patch Changes diff --git a/examples/react-native/offline-transactions/package.json b/examples/react-native/offline-transactions/package.json index 4a67b780eb..a3048f4659 100644 --- a/examples/react-native/offline-transactions/package.json +++ b/examples/react-native/offline-transactions/package.json @@ -1,6 +1,6 @@ { "name": "offline-transactions-react-native", - "version": "1.0.8", + "version": "1.0.9", "private": true, "main": "expo-router/entry", "scripts": { @@ -15,11 +15,11 @@ "@op-engineering/op-sqlite": "^15.2.5", "@react-native-async-storage/async-storage": "2.1.2", "@react-native-community/netinfo": "11.4.1", - "@tanstack/db": "^0.9.2", - "@tanstack/offline-transactions": "^1.0.56", - "@tanstack/query-db-collection": "^1.2.15", - "@tanstack/react-db": "^0.4.1", - "@tanstack/react-native-db-sqlite-persistence": "^0.2.23", + "@tanstack/db": "^0.10.0", + "@tanstack/offline-transactions": "^1.0.57", + "@tanstack/query-db-collection": "^1.3.0", + "@tanstack/react-db": "^0.4.2", + "@tanstack/react-native-db-sqlite-persistence": "^0.2.24", "@tanstack/react-query": "^5.90.20", "expo": "~53.0.26", "expo-constants": "~17.1.0", diff --git a/examples/react-native/shopping-list/CHANGELOG.md b/examples/react-native/shopping-list/CHANGELOG.md index 5adbb4eada..7412d6e76c 100644 --- a/examples/react-native/shopping-list/CHANGELOG.md +++ b/examples/react-native/shopping-list/CHANGELOG.md @@ -1,5 +1,16 @@ # shopping-list-react-native +## 1.0.9 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`b4494fd`](https://github.com/TanStack/db/commit/b4494fd34ac58c1b0fd102a41b097dbf4dd97b80), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`b73bfd3`](https://github.com/TanStack/db/commit/b73bfd3cd7ec400ac778f764b467dc40a5da3a33), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`09776a8`](https://github.com/TanStack/db/commit/09776a892c73f4abd593d1eda4914cdbc20451b3), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/electric-db-collection@0.5.0 + - @tanstack/react-db@0.4.2 + - @tanstack/offline-transactions@1.0.57 + - @tanstack/react-native-db-sqlite-persistence@0.2.24 + ## 1.0.8 ### Patch Changes diff --git a/examples/react-native/shopping-list/package.json b/examples/react-native/shopping-list/package.json index 53a1955caf..749b78888f 100644 --- a/examples/react-native/shopping-list/package.json +++ b/examples/react-native/shopping-list/package.json @@ -1,6 +1,6 @@ { "name": "shopping-list-react-native", - "version": "1.0.8", + "version": "1.0.9", "private": true, "main": "expo-router/entry", "scripts": { @@ -18,11 +18,11 @@ "@op-engineering/op-sqlite": "^15.2.5", "@react-native-async-storage/async-storage": "2.1.2", "@react-native-community/netinfo": "11.4.1", - "@tanstack/db": "^0.9.2", - "@tanstack/electric-db-collection": "^0.4.10", - "@tanstack/offline-transactions": "^1.0.56", - "@tanstack/react-db": "^0.4.1", - "@tanstack/react-native-db-sqlite-persistence": "^0.2.23", + "@tanstack/db": "^0.10.0", + "@tanstack/electric-db-collection": "^0.5.0", + "@tanstack/offline-transactions": "^1.0.57", + "@tanstack/react-db": "^0.4.2", + "@tanstack/react-native-db-sqlite-persistence": "^0.2.24", "@tanstack/react-query": "^5.90.20", "expo": "~53.0.26", "expo-constants": "~17.1.0", diff --git a/examples/react/next-ssr-e2e/CHANGELOG.md b/examples/react/next-ssr-e2e/CHANGELOG.md index ccf30b2622..2c724d128e 100644 --- a/examples/react/next-ssr-e2e/CHANGELOG.md +++ b/examples/react/next-ssr-e2e/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/db-example-react-next-ssr-e2e +## 0.0.4 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/react-db@0.4.2 + ## 0.0.3 ### Patch Changes diff --git a/examples/react/next-ssr-e2e/package.json b/examples/react/next-ssr-e2e/package.json index 219b0a47e8..7f237872f1 100644 --- a/examples/react/next-ssr-e2e/package.json +++ b/examples/react/next-ssr-e2e/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/db-example-react-next-ssr-e2e", "private": true, - "version": "0.0.3", + "version": "0.0.4", "scripts": { "build": "next build", "dev": "next dev", @@ -9,8 +9,8 @@ "test:e2e": "pnpm --filter @tanstack/db build && pnpm --filter @tanstack/react-db build && playwright test" }, "dependencies": { - "@tanstack/db": "^0.9.2", - "@tanstack/react-db": "^0.4.1", + "@tanstack/db": "^0.10.0", + "@tanstack/react-db": "^0.4.2", "next": "^16.3.1", "react": "^19.2.4", "react-dom": "^19.2.4" diff --git a/examples/react/offline-transactions/package.json b/examples/react/offline-transactions/package.json index 3f40b95c0e..f789ec6af6 100644 --- a/examples/react/offline-transactions/package.json +++ b/examples/react/offline-transactions/package.json @@ -8,11 +8,11 @@ "build": "vite build && tsc --noEmit" }, "dependencies": { - "@tanstack/browser-db-sqlite-persistence": "^0.2.23", - "@tanstack/db": "^0.9.2", - "@tanstack/offline-transactions": "^1.0.56", - "@tanstack/query-db-collection": "^1.2.15", - "@tanstack/react-db": "^0.4.1", + "@tanstack/browser-db-sqlite-persistence": "^0.2.24", + "@tanstack/db": "^0.10.0", + "@tanstack/offline-transactions": "^1.0.57", + "@tanstack/query-db-collection": "^1.3.0", + "@tanstack/react-db": "^0.4.2", "@tanstack/react-query": "^5.90.20", "@tanstack/react-router": "^1.159.5", "@tanstack/react-router-devtools": "^1.159.5", diff --git a/examples/react/paced-mutations-demo/CHANGELOG.md b/examples/react/paced-mutations-demo/CHANGELOG.md index 02b14ad851..9693a47670 100644 --- a/examples/react/paced-mutations-demo/CHANGELOG.md +++ b/examples/react/paced-mutations-demo/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/db-example-paced-mutations-demo +## 0.0.14 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/react-db@0.4.2 + ## 0.0.13 ### Patch Changes diff --git a/examples/react/paced-mutations-demo/package.json b/examples/react/paced-mutations-demo/package.json index 9393669806..1f23eb091c 100644 --- a/examples/react/paced-mutations-demo/package.json +++ b/examples/react/paced-mutations-demo/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/db-example-paced-mutations-demo", - "version": "0.0.13", + "version": "0.0.14", "private": true, "type": "module", "scripts": { @@ -9,8 +9,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/db": "^0.9.2", - "@tanstack/react-db": "^0.4.1", + "@tanstack/db": "^0.10.0", + "@tanstack/react-db": "^0.4.2", "mitt": "^3.0.1", "react": "^19.2.4", "react-dom": "^19.2.4" diff --git a/examples/react/projects/package.json b/examples/react/projects/package.json index 74e11d0261..b631458c87 100644 --- a/examples/react/projects/package.json +++ b/examples/react/projects/package.json @@ -17,8 +17,8 @@ "dependencies": { "@tailwindcss/vite": "^4.1.18", "@tanstack/query-core": "^5.90.20", - "@tanstack/query-db-collection": "^1.2.15", - "@tanstack/react-db": "^0.4.1", + "@tanstack/query-db-collection": "^1.3.0", + "@tanstack/react-db": "^0.4.2", "@tanstack/react-router": "^1.159.5", "@tanstack/react-router-devtools": "^1.159.5", "@tanstack/react-router-with-query": "^1.130.17", diff --git a/examples/react/start-ssr-e2e/package.json b/examples/react/start-ssr-e2e/package.json index bb1dcf2194..5cff404336 100644 --- a/examples/react/start-ssr-e2e/package.json +++ b/examples/react/start-ssr-e2e/package.json @@ -10,7 +10,7 @@ "test:e2e:hosted": "playwright test" }, "dependencies": { - "@tanstack/react-db": "^0.4.1", + "@tanstack/react-db": "^0.4.2", "@tanstack/react-router": "^1.159.5", "@tanstack/react-router-with-db": "^0.1.0", "@tanstack/react-start": "^1.159.5", diff --git a/examples/react/todo/CHANGELOG.md b/examples/react/todo/CHANGELOG.md index 7a8c9fc64f..8d47c58f82 100644 --- a/examples/react/todo/CHANGELOG.md +++ b/examples/react/todo/CHANGELOG.md @@ -1,5 +1,15 @@ # examples/react/todo +## 0.1.29 + +### Patch Changes + +- Updated dependencies [[`179d003`](https://github.com/TanStack/db/commit/179d003a14a13ddf48ffacd22b15c25087f7c5f4), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`b4494fd`](https://github.com/TanStack/db/commit/b4494fd34ac58c1b0fd102a41b097dbf4dd97b80), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`fdcb078`](https://github.com/TanStack/db/commit/fdcb078a083b9c12327e8b1f68bd49e3429fb89e), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`47004bd`](https://github.com/TanStack/db/commit/47004bdda57abcfb63cb03ec6ce6397779012db5), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/query-db-collection@1.3.0 + - @tanstack/electric-db-collection@0.5.0 + - @tanstack/react-db@0.4.2 + - @tanstack/trailbase-db-collection@0.1.110 + ## 0.1.28 ### Patch Changes diff --git a/examples/react/todo/package.json b/examples/react/todo/package.json index 5dd1c9417b..7920e5eb7b 100644 --- a/examples/react/todo/package.json +++ b/examples/react/todo/package.json @@ -1,15 +1,15 @@ { "name": "@tanstack/db-example-react-todo", "private": true, - "version": "0.1.28", + "version": "0.1.29", "dependencies": { - "@tanstack/electric-db-collection": "^0.4.10", + "@tanstack/electric-db-collection": "^0.5.0", "@tanstack/query-core": "^5.90.20", - "@tanstack/query-db-collection": "^1.2.15", - "@tanstack/react-db": "^0.4.1", + "@tanstack/query-db-collection": "^1.3.0", + "@tanstack/react-db": "^0.4.2", "@tanstack/react-router": "^1.159.5", "@tanstack/react-start": "^1.159.5", - "@tanstack/trailbase-db-collection": "^0.1.109", + "@tanstack/trailbase-db-collection": "^0.1.110", "cors": "^2.8.6", "drizzle-orm": "^0.45.1", "drizzle-zod": "^0.8.3", diff --git a/examples/solid/todo/CHANGELOG.md b/examples/solid/todo/CHANGELOG.md index 1995734e18..440648c6c0 100644 --- a/examples/solid/todo/CHANGELOG.md +++ b/examples/solid/todo/CHANGELOG.md @@ -1,5 +1,15 @@ # examples/react/todo +## 0.0.37 + +### Patch Changes + +- Updated dependencies [[`179d003`](https://github.com/TanStack/db/commit/179d003a14a13ddf48ffacd22b15c25087f7c5f4), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`b4494fd`](https://github.com/TanStack/db/commit/b4494fd34ac58c1b0fd102a41b097dbf4dd97b80), [`8ca04e7`](https://github.com/TanStack/db/commit/8ca04e747fde178bae76d21bc16ae057c9714a17), [`fdcb078`](https://github.com/TanStack/db/commit/fdcb078a083b9c12327e8b1f68bd49e3429fb89e), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`47004bd`](https://github.com/TanStack/db/commit/47004bdda57abcfb63cb03ec6ce6397779012db5), [`1db0729`](https://github.com/TanStack/db/commit/1db0729573857b9e82a32828b53c1b0681c9670c), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/query-db-collection@1.3.0 + - @tanstack/electric-db-collection@0.5.0 + - @tanstack/solid-db@0.2.46 + - @tanstack/trailbase-db-collection@0.1.110 + ## 0.0.36 ### Patch Changes diff --git a/examples/solid/todo/package.json b/examples/solid/todo/package.json index ee3a1d443b..e18ea1e106 100644 --- a/examples/solid/todo/package.json +++ b/examples/solid/todo/package.json @@ -1,15 +1,15 @@ { "name": "@tanstack/db-example-solid-todo", "private": true, - "version": "0.0.36", + "version": "0.0.37", "dependencies": { - "@tanstack/electric-db-collection": "^0.4.10", + "@tanstack/electric-db-collection": "^0.5.0", "@tanstack/query-core": "^5.90.20", - "@tanstack/query-db-collection": "^1.2.15", - "@tanstack/solid-db": "^0.2.45", + "@tanstack/query-db-collection": "^1.3.0", + "@tanstack/solid-db": "^0.2.46", "@tanstack/solid-router": "^1.159.5", "@tanstack/solid-start": "^1.159.5", - "@tanstack/trailbase-db-collection": "^0.1.109", + "@tanstack/trailbase-db-collection": "^0.1.110", "cors": "^2.8.6", "drizzle-orm": "^0.45.1", "drizzle-zod": "^0.8.3", diff --git a/packages/angular-db/CHANGELOG.md b/packages/angular-db/CHANGELOG.md index e6f8b07716..e259d36a26 100644 --- a/packages/angular-db/CHANGELOG.md +++ b/packages/angular-db/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/angular-db +## 0.1.92 + +### Patch Changes + +- Preserve pre-created collection row, key, and utility types in React infinite ([#1864](https://github.com/TanStack/db/pull/1864)) + queries. Align conditional live-query result types with each framework's + disabled representation, including nullable collections, disabled statuses, + and empty single-result data in the empty-reactive bindings. +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.1.91 ### Patch Changes diff --git a/packages/angular-db/package.json b/packages/angular-db/package.json index 90ab218339..eec0207eaa 100644 --- a/packages/angular-db/package.json +++ b/packages/angular-db/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-db", - "version": "0.1.91", + "version": "0.1.92", "description": "Angular integration for @tanstack/db", "author": "Ethan McDaniel", "license": "MIT", diff --git a/packages/browser-db-sqlite-persistence/CHANGELOG.md b/packages/browser-db-sqlite-persistence/CHANGELOG.md index 8ea81bdbdc..9181da265f 100644 --- a/packages/browser-db-sqlite-persistence/CHANGELOG.md +++ b/packages/browser-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/browser-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Terminate OPFS workers on pagehide, including during initialization, and reject pending requests with AbortError. Include available VFS error details in SQLite open failures. Connections must be recreated when restoring a document from the back/forward cache. ([#1844](https://github.com/TanStack/db/pull/1844)) + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/browser-db-sqlite-persistence/package.json b/packages/browser-db-sqlite-persistence/package.json index 9bae7bb83c..5eefe8d1d8 100644 --- a/packages/browser-db-sqlite-persistence/package.json +++ b/packages/browser-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/browser-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "Browser wa-sqlite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/capacitor-db-sqlite-persistence/CHANGELOG.md b/packages/capacitor-db-sqlite-persistence/CHANGELOG.md index 3712eab796..9649d47cac 100644 --- a/packages/capacitor-db-sqlite-persistence/CHANGELOG.md +++ b/packages/capacitor-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/capacitor-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/capacitor-db-sqlite-persistence/e2e/app/CHANGELOG.md b/packages/capacitor-db-sqlite-persistence/e2e/app/CHANGELOG.md index 6b2a6b0617..97983ee893 100644 --- a/packages/capacitor-db-sqlite-persistence/e2e/app/CHANGELOG.md +++ b/packages/capacitor-db-sqlite-persistence/e2e/app/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/capacitor-db-sqlite-persistence-e2e-app +## 0.0.36 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/capacitor-db-sqlite-persistence@0.2.24 + ## 0.0.35 ### Patch Changes diff --git a/packages/capacitor-db-sqlite-persistence/e2e/app/package.json b/packages/capacitor-db-sqlite-persistence/e2e/app/package.json index e619758cdd..200179d63e 100644 --- a/packages/capacitor-db-sqlite-persistence/e2e/app/package.json +++ b/packages/capacitor-db-sqlite-persistence/e2e/app/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/capacitor-db-sqlite-persistence-e2e-app", "private": true, - "version": "0.0.35", + "version": "0.0.36", "type": "module", "scripts": { "build": "vite build", diff --git a/packages/capacitor-db-sqlite-persistence/package.json b/packages/capacitor-db-sqlite-persistence/package.json index 1054967235..063144abcf 100644 --- a/packages/capacitor-db-sqlite-persistence/package.json +++ b/packages/capacitor-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/capacitor-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "Capacitor SQLite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/cloudflare-durable-objects-db-sqlite-persistence/CHANGELOG.md b/packages/cloudflare-durable-objects-db-sqlite-persistence/CHANGELOG.md index 06170f225b..02770480d9 100644 --- a/packages/cloudflare-durable-objects-db-sqlite-persistence/CHANGELOG.md +++ b/packages/cloudflare-durable-objects-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/cloudflare-durable-objects-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json b/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json index dd8934dd27..581f449414 100644 --- a/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json +++ b/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/cloudflare-durable-objects-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "Cloudflare Durable Object SQLite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/db-ivm/CHANGELOG.md b/packages/db-ivm/CHANGELOG.md index 7ab1ab0af7..d9b853aba3 100644 --- a/packages/db-ivm/CHANGELOG.md +++ b/packages/db-ivm/CHANGELOG.md @@ -1,5 +1,11 @@ # @tanstack/db-ivm +## 0.1.23 + +### Patch Changes + +- Preserve only captured accepted local inserts across a truncate. Preserve sparse-array length and RegExp state through ordered-query hashing, including hosts without a global File constructor. Prevent delayed replay reads from rerunning any transaction removed while the read was in flight, without rescanning the outbox. ([#1822](https://github.com/TanStack/db/pull/1822)) + ## 0.1.22 ### Patch Changes diff --git a/packages/db-ivm/package.json b/packages/db-ivm/package.json index 036fb75d11..c5ebf54098 100644 --- a/packages/db-ivm/package.json +++ b/packages/db-ivm/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/db-ivm", - "version": "0.1.22", + "version": "0.1.23", "description": "Incremental View Maintenance for TanStack DB based on Differential Dataflow", "author": "Sam Willis", "license": "MIT", diff --git a/packages/db-sqlite-persistence-core/CHANGELOG.md b/packages/db-sqlite-persistence-core/CHANGELOG.md index d4933b3fce..7bc4f64a09 100644 --- a/packages/db-sqlite-persistence-core/CHANGELOG.md +++ b/packages/db-sqlite-persistence-core/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/db-sqlite-persistence-core +## 0.2.24 + +### Patch Changes + +- Preserve schema input and output inference when persisted collection options are passed to `createCollection`. Accept Expo's native SQLite database type and preserve transaction callback results while validating bind values against Expo's supported domain. ([#1866](https://github.com/TanStack/db/pull/1866)) + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.2.23 ### Patch Changes diff --git a/packages/db-sqlite-persistence-core/package.json b/packages/db-sqlite-persistence-core/package.json index fb731bf1e4..d43e7939b6 100644 --- a/packages/db-sqlite-persistence-core/package.json +++ b/packages/db-sqlite-persistence-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/db-sqlite-persistence-core", - "version": "0.2.23", + "version": "0.2.24", "description": "SQLite persisted collection core for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md index 084cae05ae..d9890c7eaa 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,93 @@ # @tanstack/db +## 0.10.0 + +### Minor Changes + +- **Deprecation**: Mutation handler return values and QueryCollection auto-refetch behavior. ([#843](https://github.com/TanStack/db/pull/843)) + + **What's changed:** + - Handler return values remain type-compatible during the deprecation window + - **Deprecation warnings** are logged when deprecated patterns are used + + **QueryCollection changes:** + - Auto-refetch after handlers is **deprecated** and will be removed in v1.0 + - To skip auto-refetch now, return `{ refetch: false }` from your handler + - To migrate to explicit refetch now, await `collection.utils.refetch()` and return `{ refetch: false }` to prevent a second fetch; remove the return in v1.0 + - In v1.0, call `await collection.utils.refetch()` explicitly when needed, or omit it to skip + + **ElectricCollection changes:** + - Returning `{ txid }` is deprecated - use `await collection.utils.awaitTxId(txid)` instead + - The default `awaitTxId` and `awaitMatch` timeouts increase to 15 seconds + + **Migration guide:** + + ```typescript + // QueryCollection - skip refetch (current) + onInsert: async ({ transaction }) => { + await api.create(transaction.mutations[0].modified) + return { refetch: false } // Opt out of auto-refetch + } + + // QueryCollection - migrate to explicit refetch now + onInsert: async ({ transaction, collection }) => { + await api.create(transaction.mutations[0].modified) + await collection.utils.refetch() // Explicit refetch + return { refetch: false } // Prevent a second pre-1.0 refetch; remove in v1.0 + } + + // ElectricCollection - before + onInsert: async ({ transaction }) => { + const result = await api.create(transaction.mutations[0].modified) + return { txid: result.txid } // Deprecated + } + + // ElectricCollection - after + onInsert: async ({ transaction, collection }) => { + const result = await api.create(transaction.mutations[0].modified) + await collection.utils.awaitTxId(result.txid) // Explicit + } + ``` + +- Require `Collection.update` keys to match the collection's declared key type. ([#1851](https://github.com/TanStack/db/pull/1851)) + Calls that pass possibly undefined keys (including unchecked indexed access) or + plain strings to branded-key collections must narrow or assert those values to + the declared key type before calling `update`. + +- Keep virtual row fields on inferred collection and query row roots without ([#1865](https://github.com/TanStack/db/pull/1865)) + exposing them on nested user objects or projected child values. + Default `Ref` and `SingleRowRefProxy` annotations now support reusable + helpers for both root and nested refs; helpers that require row metadata should + set their third generic parameter to `true`. Preserve discriminated unions when + removing virtual row fields. + +- Preserve collection key and adapter utility types throughout mutation handlers and nested transaction mutations. Mutation keys now use the collection's declared key type instead of `any`; collections that use the default key type expose `string | number`. Prevent Query and Electric collections from exposing nonexistent cross-adapter utilities. ([#1849](https://github.com/TanStack/db/pull/1849)) + +### Patch Changes + +- Document oracle tests as executable subsystem models, align their vocabulary with production code, and make deterministic failures easier to replay. ([#1870](https://github.com/TanStack/db/pull/1870)) + +- Restrict built-in aggregate helpers to their supported value domains so numeric aggregates and min/max no longer advertise impossible runtime result types. ([#1862](https://github.com/TanStack/db/pull/1862)) + +- Preserve explicit locale settings when locale sorting is selected by default and omit unset locale fields from collection comparison options. ([#1833](https://github.com/TanStack/db/pull/1833)) + +- Fix same-key delete-then-insert reduction, preserve whole-row replacements through local adapters, and publish immutable previous values for live-object and replacement-object sync updates. Same-reference live rows still require an immutable provider `previousValue`; stale or partial values on that reused reference remain unsupported. ([#1835](https://github.com/TanStack/db/pull/1835)) + +- Preserve `null` alongside `undefined` when nullable fields flow through query references, selected results, and branch unions. ([#1852](https://github.com/TanStack/db/pull/1852)) + +- Start idle collections only after locally decidable mutation validation succeeds, and publish authoritative Query Collection refetch results without stale intermediate snapshots. ([#1840](https://github.com/TanStack/db/pull/1840)) + +- Align live-query join keys with established predicate equality for binary, temporal, Date, and opaque values, including on-demand collection loading, and prevent nullish operands from matching in full and correlated joins. ([#1834](https://github.com/TanStack/db/pull/1834)) + +- Preserve whole-object nullability through supported join and `unionAll` projections, retain intrinsic nullish fields when right/full joins follow branch unions, and preserve constrained generic fields through supported join and `unionAll` query chains. ([#1843](https://github.com/TanStack/db/pull/1843)) + +- Preserve only captured accepted local inserts across a truncate. Preserve sparse-array length and RegExp state through ordered-query hashing, including hosts without a global File constructor. Prevent delayed replay reads from rerunning any transaction removed while the read was in flight, without rescanning the outbox. ([#1822](https://github.com/TanStack/db/pull/1822)) + +- Allow collection index and change-filter callbacks to traverse optional or nullable nested plain objects with optional chaining while preserving built-in values and functions as query leaves. ([#1850](https://github.com/TanStack/db/pull/1850)) + +- Updated dependencies [[`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868)]: + - @tanstack/db-ivm@0.1.23 + ## 0.9.2 ### Patch Changes diff --git a/packages/db/package.json b/packages/db/package.json index 7eaa106426..b61eaf614b 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/db", - "version": "0.9.2", + "version": "0.10.0", "description": "A reactive client store for building super fast apps on sync", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/electric-db-collection/CHANGELOG.md b/packages/electric-db-collection/CHANGELOG.md index 857b97f4bb..1a3c634ca5 100644 --- a/packages/electric-db-collection/CHANGELOG.md +++ b/packages/electric-db-collection/CHANGELOG.md @@ -1,5 +1,65 @@ # @tanstack/electric-db-collection +## 0.5.0 + +### Minor Changes + +- **Deprecation**: Mutation handler return values and QueryCollection auto-refetch behavior. ([#843](https://github.com/TanStack/db/pull/843)) + + **What's changed:** + - Handler return values remain type-compatible during the deprecation window + - **Deprecation warnings** are logged when deprecated patterns are used + + **QueryCollection changes:** + - Auto-refetch after handlers is **deprecated** and will be removed in v1.0 + - To skip auto-refetch now, return `{ refetch: false }` from your handler + - To migrate to explicit refetch now, await `collection.utils.refetch()` and return `{ refetch: false }` to prevent a second fetch; remove the return in v1.0 + - In v1.0, call `await collection.utils.refetch()` explicitly when needed, or omit it to skip + + **ElectricCollection changes:** + - Returning `{ txid }` is deprecated - use `await collection.utils.awaitTxId(txid)` instead + - The default `awaitTxId` and `awaitMatch` timeouts increase to 15 seconds + + **Migration guide:** + + ```typescript + // QueryCollection - skip refetch (current) + onInsert: async ({ transaction }) => { + await api.create(transaction.mutations[0].modified) + return { refetch: false } // Opt out of auto-refetch + } + + // QueryCollection - migrate to explicit refetch now + onInsert: async ({ transaction, collection }) => { + await api.create(transaction.mutations[0].modified) + await collection.utils.refetch() // Explicit refetch + return { refetch: false } // Prevent a second pre-1.0 refetch; remove in v1.0 + } + + // ElectricCollection - before + onInsert: async ({ transaction }) => { + const result = await api.create(transaction.mutations[0].modified) + return { txid: result.txid } // Deprecated + } + + // ElectricCollection - after + onInsert: async ({ transaction, collection }) => { + const result = await api.create(transaction.mutations[0].modified) + await collection.utils.awaitTxId(result.txid) // Explicit + } + ``` + +- Preserve collection key and adapter utility types throughout mutation handlers and nested transaction mutations. Mutation keys now use the collection's declared key type instead of `any`; collections that use the default key type expose `string | number`. Prevent Query and Electric collections from exposing nonexistent cross-adapter utilities. ([#1849](https://github.com/TanStack/db/pull/1849)) + +### Patch Changes + +- Preserve PostgreSQL semantics for boolean comparisons and array membership, ([#1832](https://github.com/TanStack/db/pull/1832)) + including nullable values, compatible reference-to-array types, and non-text + array elements. Reject nullish membership operands and literal-array left + operands, and escape quotes in mapped column names. +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.4.10 ### Patch Changes diff --git a/packages/electric-db-collection/package.json b/packages/electric-db-collection/package.json index 6152105e80..0c3cb61503 100644 --- a/packages/electric-db-collection/package.json +++ b/packages/electric-db-collection/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/electric-db-collection", - "version": "0.4.10", + "version": "0.5.0", "description": "ElectricSQL collection for TanStack DB", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/electron-db-sqlite-persistence/CHANGELOG.md b/packages/electron-db-sqlite-persistence/CHANGELOG.md index 0f099f6888..d539548164 100644 --- a/packages/electron-db-sqlite-persistence/CHANGELOG.md +++ b/packages/electron-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/electron-db-sqlite-persistence +## 0.1.36 + +### Patch Changes + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.1.35 ### Patch Changes diff --git a/packages/electron-db-sqlite-persistence/package.json b/packages/electron-db-sqlite-persistence/package.json index 6684fa5e32..e6e5d8679b 100644 --- a/packages/electron-db-sqlite-persistence/package.json +++ b/packages/electron-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/electron-db-sqlite-persistence", - "version": "0.1.35", + "version": "0.1.36", "description": "Electron SQLite persisted collection bridge for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/expo-db-sqlite-persistence/CHANGELOG.md b/packages/expo-db-sqlite-persistence/CHANGELOG.md index 3bde3c7d94..240a7f9e6d 100644 --- a/packages/expo-db-sqlite-persistence/CHANGELOG.md +++ b/packages/expo-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/expo-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Preserve schema input and output inference when persisted collection options are passed to `createCollection`. Accept Expo's native SQLite database type and preserve transaction callback results while validating bind values against Expo's supported domain. ([#1866](https://github.com/TanStack/db/pull/1866)) + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/CHANGELOG.md b/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/CHANGELOG.md index 953c48448c..be54a44783 100644 --- a/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/CHANGELOG.md +++ b/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/expo-db-sqlite-persistence-e2e-app +## 0.0.36 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/expo-db-sqlite-persistence@0.2.24 + ## 0.0.35 ### Patch Changes diff --git a/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/package.json b/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/package.json index 0f36500011..17ba23e2f7 100644 --- a/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/package.json +++ b/packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/expo-db-sqlite-persistence-e2e-app", "private": true, - "version": "0.0.35", + "version": "0.0.36", "main": "index.js", "scripts": { "start": "expo start", diff --git a/packages/expo-db-sqlite-persistence/package.json b/packages/expo-db-sqlite-persistence/package.json index 19b8a61854..798a6c3719 100644 --- a/packages/expo-db-sqlite-persistence/package.json +++ b/packages/expo-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/expo-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "Expo SQLite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/node-db-sqlite-persistence/CHANGELOG.md b/packages/node-db-sqlite-persistence/CHANGELOG.md index 8775e63f11..4482a9e5c5 100644 --- a/packages/node-db-sqlite-persistence/CHANGELOG.md +++ b/packages/node-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/node-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/node-db-sqlite-persistence/package.json b/packages/node-db-sqlite-persistence/package.json index 83c4fddc1e..1f404912d3 100644 --- a/packages/node-db-sqlite-persistence/package.json +++ b/packages/node-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/node-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "Node SQLite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/offline-transactions/CHANGELOG.md b/packages/offline-transactions/CHANGELOG.md index 14ea36b4d3..168fc17ab1 100644 --- a/packages/offline-transactions/CHANGELOG.md +++ b/packages/offline-transactions/CHANGELOG.md @@ -1,5 +1,20 @@ # @tanstack/offline-transactions +## 1.0.57 + +### Patch Changes + +- Fix offline replay filtering so it preserves concurrently admitted and issued transactions, wait for React Native's subscribed connectivity snapshot before reporting online, and preserve Temporal scalar identity through storage and restart when the runtime provides `globalThis.Temporal`. Filtered replay work now settles and rolls back after each successful durable removal even when a sibling removal fails, while a failed filtered-work cleanup no longer aborts unrelated startup replay. Successful and permanently failed provider work settles its own caller even when durable cleanup also fails, retry scheduling remains live when a retry update or permanent-failure removal fails, and metadata keeps standard `toJSON(key)` replacement semantics. Recognized native scalars now fail before storage when the matching global constructor is unavailable. ([#1837](https://github.com/TanStack/db/pull/1837)) + + Offline storage compatibility: new records use `valueEncoding: 3`. Older clients cannot read these records, so do not run old and new clients against the same pending outbox or downgrade while new records remain pending. + +- Fence each successful outbox clear deletion from overlapping reads, including when another deletion is still pending or fails. ([#1836](https://github.com/TanStack/db/pull/1836)) + +- Preserve only captured accepted local inserts across a truncate. Preserve sparse-array length and RegExp state through ordered-query hashing, including hosts without a global File constructor. Prevent delayed replay reads from rerunning any transaction removed while the read was in flight, without rescanning the outbox. ([#1822](https://github.com/TanStack/db/pull/1822)) + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 1.0.56 ### Patch Changes diff --git a/packages/offline-transactions/package.json b/packages/offline-transactions/package.json index bac5595889..ddfa455a24 100644 --- a/packages/offline-transactions/package.json +++ b/packages/offline-transactions/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/offline-transactions", - "version": "1.0.56", + "version": "1.0.57", "description": "Offline-first transaction capabilities for TanStack DB", "author": "TanStack", "license": "MIT", diff --git a/packages/powersync-db-collection/CHANGELOG.md b/packages/powersync-db-collection/CHANGELOG.md index 5e691a0c22..7e86ba2700 100644 --- a/packages/powersync-db-collection/CHANGELOG.md +++ b/packages/powersync-db-collection/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/powersync-db-collection +## 0.2.0 + +### Minor Changes + +- Require PowerSync 2 and fix update conservation, declared-view rows, transformed-schema comparison, and portable inferred declarations. ([#1831](https://github.com/TanStack/db/pull/1831)) + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.1.69 ### Patch Changes diff --git a/packages/powersync-db-collection/package.json b/packages/powersync-db-collection/package.json index e74c1a95a0..7bc345cdb8 100644 --- a/packages/powersync-db-collection/package.json +++ b/packages/powersync-db-collection/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/powersync-db-collection", - "version": "0.1.69", + "version": "0.2.0", "description": "PowerSync collection for TanStack DB", "author": "POWERSYNC", "license": "MIT", diff --git a/packages/query-db-collection/CHANGELOG.md b/packages/query-db-collection/CHANGELOG.md index 1529fa36b6..fee238d1da 100644 --- a/packages/query-db-collection/CHANGELOG.md +++ b/packages/query-db-collection/CHANGELOG.md @@ -1,5 +1,71 @@ # @tanstack/query-db-collection +## 1.3.0 + +### Minor Changes + +- **Deprecation**: Mutation handler return values and QueryCollection auto-refetch behavior. ([#843](https://github.com/TanStack/db/pull/843)) + + **What's changed:** + - Handler return values remain type-compatible during the deprecation window + - **Deprecation warnings** are logged when deprecated patterns are used + + **QueryCollection changes:** + - Auto-refetch after handlers is **deprecated** and will be removed in v1.0 + - To skip auto-refetch now, return `{ refetch: false }` from your handler + - To migrate to explicit refetch now, await `collection.utils.refetch()` and return `{ refetch: false }` to prevent a second fetch; remove the return in v1.0 + - In v1.0, call `await collection.utils.refetch()` explicitly when needed, or omit it to skip + + **ElectricCollection changes:** + - Returning `{ txid }` is deprecated - use `await collection.utils.awaitTxId(txid)` instead + - The default `awaitTxId` and `awaitMatch` timeouts increase to 15 seconds + + **Migration guide:** + + ```typescript + // QueryCollection - skip refetch (current) + onInsert: async ({ transaction }) => { + await api.create(transaction.mutations[0].modified) + return { refetch: false } // Opt out of auto-refetch + } + + // QueryCollection - migrate to explicit refetch now + onInsert: async ({ transaction, collection }) => { + await api.create(transaction.mutations[0].modified) + await collection.utils.refetch() // Explicit refetch + return { refetch: false } // Prevent a second pre-1.0 refetch; remove in v1.0 + } + + // ElectricCollection - before + onInsert: async ({ transaction }) => { + const result = await api.create(transaction.mutations[0].modified) + return { txid: result.txid } // Deprecated + } + + // ElectricCollection - after + onInsert: async ({ transaction, collection }) => { + const result = await api.create(transaction.mutations[0].modified) + await collection.utils.awaitTxId(result.txid) // Explicit + } + ``` + +- Preserve collection key and adapter utility types throughout mutation handlers and nested transaction mutations. Mutation keys now use the collection's declared key type instead of `any`; collections that use the default key type expose `string | number`. Prevent Query and Electric collections from exposing nonexistent cross-adapter utilities. ([#1849](https://github.com/TanStack/db/pull/1849)) + +### Patch Changes + +- Add `createCursorPager` to fulfill offset/limit requests from endpoints with opaque continuation tokens. Reuse fresh backend pages through the existing QueryClient, with Query-managed expiry, invalidation and garbage collection, while retaining the existing UI peek-ahead behavior. ([#1824](https://github.com/TanStack/db/pull/1824)) + + Keep manual raw-row writes from overwriting other cache formats or marking them fresh. Preserve wrapped-response writes and seeding of empty row caches. + +- Keep on-demand Query cache ownership and post-write readiness isolated across collections, co-owners, deferred cleanup, errors, and custom query hashes. Active enabled scopes revalidate from post-write provider results, while inactive collection-owned entries are removed without disturbing unrelated or foreign-observed Queries. ([#1826](https://github.com/TanStack/db/pull/1826)) + +- Start idle collections only after locally decidable mutation validation succeeds, and publish authoritative Query Collection refetch results without stale intermediate snapshots. ([#1840](https://github.com/TanStack/db/pull/1840)) + +- Fix `queryCollectionOptions` to accept selectors that materialize transforming schema outputs from wrapped responses while preserving schema input types for mutations. ([#1861](https://github.com/TanStack/db/pull/1861)) + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 1.2.15 ### Patch Changes diff --git a/packages/query-db-collection/package.json b/packages/query-db-collection/package.json index 350717aec3..ae8cb09d69 100644 --- a/packages/query-db-collection/package.json +++ b/packages/query-db-collection/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-db-collection", - "version": "1.2.15", + "version": "1.3.0", "description": "TanStack Query collection for TanStack DB", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/react-db/CHANGELOG.md b/packages/react-db/CHANGELOG.md index d33dff1ffd..446e1babf1 100644 --- a/packages/react-db/CHANGELOG.md +++ b/packages/react-db/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/react-db +## 0.4.2 + +### Patch Changes + +- Preserve pre-created collection row, key, and utility types in React infinite ([#1864](https://github.com/TanStack/db/pull/1864)) + queries. Align conditional live-query result types with each framework's + disabled representation, including nullable collections, disabled statuses, + and empty single-result data in the empty-reactive bindings. +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.4.1 ### Patch Changes diff --git a/packages/react-db/package.json b/packages/react-db/package.json index 6fc3109fe7..92c6b89edd 100644 --- a/packages/react-db/package.json +++ b/packages/react-db/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-db", - "version": "0.4.1", + "version": "0.4.2", "description": "React integration for @tanstack/db", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/react-native-db-sqlite-persistence/CHANGELOG.md b/packages/react-native-db-sqlite-persistence/CHANGELOG.md index 40d84c3706..9d1117c59c 100644 --- a/packages/react-native-db-sqlite-persistence/CHANGELOG.md +++ b/packages/react-native-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/react-native-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/react-native-db-sqlite-persistence/package.json b/packages/react-native-db-sqlite-persistence/package.json index 5a6685ebe5..260f709dd8 100644 --- a/packages/react-native-db-sqlite-persistence/package.json +++ b/packages/react-native-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-native-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "React Native and Expo SQLite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/rxdb-db-collection/CHANGELOG.md b/packages/rxdb-db-collection/CHANGELOG.md index f2dcf820fc..13cd8320d8 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.98 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.1.97 ### Patch Changes diff --git a/packages/rxdb-db-collection/package.json b/packages/rxdb-db-collection/package.json index 74381cc7e7..7ae0062026 100644 --- a/packages/rxdb-db-collection/package.json +++ b/packages/rxdb-db-collection/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/rxdb-db-collection", - "version": "0.1.97", + "version": "0.1.98", "description": "Reactive, Offline-First adapter for TanStack DB using RxDB. Sync, Replication and Local-First support.", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/solid-db/CHANGELOG.md b/packages/solid-db/CHANGELOG.md index 786c9b1a78..469b760ce1 100644 --- a/packages/solid-db/CHANGELOG.md +++ b/packages/solid-db/CHANGELOG.md @@ -1,5 +1,19 @@ # @tanstack/react-db +## 0.2.46 + +### Patch Changes + +- Preserve pre-created collection row, key, and utility types in React infinite ([#1864](https://github.com/TanStack/db/pull/1864)) + queries. Align conditional live-query result types with each framework's + disabled representation, including nullable collections, disabled statuses, + and empty single-result data in the empty-reactive bindings. + +- Keep Solid live-query rows tied to their result identities when custom-key rows ([#1825](https://github.com/TanStack/db/pull/1825)) + reorder or multiple results share the same public `$key`. +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.2.45 ### Patch Changes diff --git a/packages/solid-db/package.json b/packages/solid-db/package.json index f255cba746..cd0aa9ebd0 100644 --- a/packages/solid-db/package.json +++ b/packages/solid-db/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-db", - "version": "0.2.45", + "version": "0.2.46", "description": "Solid integration for @tanstack/db", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/svelte-db/CHANGELOG.md b/packages/svelte-db/CHANGELOG.md index 554670de32..6c6916237b 100644 --- a/packages/svelte-db/CHANGELOG.md +++ b/packages/svelte-db/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/svelte-db +## 0.4.2 + +### Patch Changes + +- Preserve pre-created collection row, key, and utility types in React infinite ([#1864](https://github.com/TanStack/db/pull/1864)) + queries. Align conditional live-query result types with each framework's + disabled representation, including nullable collections, disabled statuses, + and empty single-result data in the empty-reactive bindings. +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.4.1 ### Patch Changes diff --git a/packages/svelte-db/package.json b/packages/svelte-db/package.json index 4ff5f2a596..af295984e8 100644 --- a/packages/svelte-db/package.json +++ b/packages/svelte-db/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-db", - "version": "0.4.1", + "version": "0.4.2", "description": "Svelte integration for @tanstack/db", "author": "Kyle Mathews", "license": "MIT", diff --git a/packages/tauri-db-sqlite-persistence/CHANGELOG.md b/packages/tauri-db-sqlite-persistence/CHANGELOG.md index 13a0bd5cb8..af6d6bc02a 100644 --- a/packages/tauri-db-sqlite-persistence/CHANGELOG.md +++ b/packages/tauri-db-sqlite-persistence/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/tauri-db-sqlite-persistence +## 0.2.24 + +### Patch Changes + +- Updated dependencies [[`3d96614`](https://github.com/TanStack/db/commit/3d96614547cca8b085e89d628c7aa585ac7ddc88)]: + - @tanstack/db-sqlite-persistence-core@0.2.24 + ## 0.2.23 ### Patch Changes diff --git a/packages/tauri-db-sqlite-persistence/e2e/app/CHANGELOG.md b/packages/tauri-db-sqlite-persistence/e2e/app/CHANGELOG.md index 624e61170a..fb5f9155f7 100644 --- a/packages/tauri-db-sqlite-persistence/e2e/app/CHANGELOG.md +++ b/packages/tauri-db-sqlite-persistence/e2e/app/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/tauri-db-sqlite-persistence-e2e-app +## 0.0.36 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + - @tanstack/tauri-db-sqlite-persistence@0.2.24 + ## 0.0.35 ### Patch Changes diff --git a/packages/tauri-db-sqlite-persistence/e2e/app/package.json b/packages/tauri-db-sqlite-persistence/e2e/app/package.json index a196501041..c75278c069 100644 --- a/packages/tauri-db-sqlite-persistence/e2e/app/package.json +++ b/packages/tauri-db-sqlite-persistence/e2e/app/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/tauri-db-sqlite-persistence-e2e-app", "private": true, - "version": "0.0.35", + "version": "0.0.36", "type": "module", "scripts": { "build": "vite build", diff --git a/packages/tauri-db-sqlite-persistence/package.json b/packages/tauri-db-sqlite-persistence/package.json index 256bf9cd62..012d56cb2f 100644 --- a/packages/tauri-db-sqlite-persistence/package.json +++ b/packages/tauri-db-sqlite-persistence/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/tauri-db-sqlite-persistence", - "version": "0.2.23", + "version": "0.2.24", "description": "Tauri SQLite persisted collection adapter for TanStack DB", "author": "TanStack Team", "license": "MIT", diff --git a/packages/trailbase-db-collection/CHANGELOG.md b/packages/trailbase-db-collection/CHANGELOG.md index df0488d926..4f676aaabd 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.110 + +### Patch Changes + +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.1.109 ### Patch Changes diff --git a/packages/trailbase-db-collection/package.json b/packages/trailbase-db-collection/package.json index cb02b10a74..40f755f3b5 100644 --- a/packages/trailbase-db-collection/package.json +++ b/packages/trailbase-db-collection/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/trailbase-db-collection", - "version": "0.1.109", + "version": "0.1.110", "description": "TrailBase collection for TanStack DB", "author": "Sebastian Jeltsch", "license": "MIT", diff --git a/packages/vue-db/CHANGELOG.md b/packages/vue-db/CHANGELOG.md index 922545b96d..728cacd2e5 100644 --- a/packages/vue-db/CHANGELOG.md +++ b/packages/vue-db/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/vue-db +## 0.2.2 + +### Patch Changes + +- Preserve pre-created collection row, key, and utility types in React infinite ([#1864](https://github.com/TanStack/db/pull/1864)) + queries. Align conditional live-query result types with each framework's + disabled representation, including nullable collections, disabled statuses, + and empty single-result data in the empty-reactive bindings. +- Updated dependencies [[`b528a61`](https://github.com/TanStack/db/commit/b528a610533a083ec909aeca354ff826d76e37e0), [`84fc44b`](https://github.com/TanStack/db/commit/84fc44b559c94139f28b3cec526ebfe05290b95e), [`2775082`](https://github.com/TanStack/db/commit/27750825e94acaf221c5a3e7a4ed4a735499e9fa), [`1ab1cd3`](https://github.com/TanStack/db/commit/1ab1cd35d0549735a864e1cd9260f5b1374d8191), [`e5fe2ea`](https://github.com/TanStack/db/commit/e5fe2ea3597faa257d2c5f8cde6f5d17b8893f0f), [`7f6b643`](https://github.com/TanStack/db/commit/7f6b6438cd3a5b2cfc54ea1d8ad8a2102ea9d699), [`c479fdc`](https://github.com/TanStack/db/commit/c479fdc1c2e09d979842210148a08378fb5d71d7), [`76d766e`](https://github.com/TanStack/db/commit/76d766e84afbfcde2900a661233dd59e1decd5c2), [`1e54c6a`](https://github.com/TanStack/db/commit/1e54c6a2820ef5f1a87c6f4236311259c041fc24), [`d698b90`](https://github.com/TanStack/db/commit/d698b90579fd5ce3a4bf122ddd30fd4fe9f8d2b6), [`3ad64a4`](https://github.com/TanStack/db/commit/3ad64a42a0088e1272176fb33c953526fed9b868), [`fc1adde`](https://github.com/TanStack/db/commit/fc1adde85be0ed3570912688712ccc15875be906), [`9cbc885`](https://github.com/TanStack/db/commit/9cbc885e826695c5a33c4684f454ce176ad17d2d), [`71ad428`](https://github.com/TanStack/db/commit/71ad4284922c2355eb723fc5a00f26c72296aef9)]: + - @tanstack/db@0.10.0 + ## 0.2.1 ### Patch Changes diff --git a/packages/vue-db/package.json b/packages/vue-db/package.json index 24e367a81a..7386f86d97 100644 --- a/packages/vue-db/package.json +++ b/packages/vue-db/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-db", - "version": "0.2.1", + "version": "0.2.2", "description": "Vue integration for @tanstack/db", "author": "Kyle Mathews", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 328d4fe5ad..5a8db69470 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -148,10 +148,10 @@ importers: specifier: ^20.3.16 version: 20.3.16(@angular/common@20.3.16(@angular/core@20.3.17(@angular/compiler@20.3.16)(rxjs@7.8.2)(zone.js@0.15.1))(rxjs@7.8.2))(@angular/core@20.3.17(@angular/compiler@20.3.16)(rxjs@7.8.2)(zone.js@0.15.1))(@angular/platform-browser@20.3.16(@angular/common@20.3.16(@angular/core@20.3.17(@angular/compiler@20.3.16)(rxjs@7.8.2)(zone.js@0.15.1))(rxjs@7.8.2))(@angular/core@20.3.17(@angular/compiler@20.3.16)(rxjs@7.8.2)(zone.js@0.15.1)))(rxjs@7.8.2) '@tanstack/angular-db': - specifier: ^0.1.91 + specifier: ^0.1.92 version: link:../../../packages/angular-db '@tanstack/db': - specifier: ^0.9.2 + specifier: ^0.10.0 version: link:../../../packages/db rxjs: specifier: ^7.8.2 @@ -209,19 +209,19 @@ importers: examples/electron/offline-first: dependencies: '@tanstack/electron-db-sqlite-persistence': - specifier: ^0.1.35 + specifier: ^0.1.36 version: link:../../../packages/electron-db-sqlite-persistence '@tanstack/node-db-sqlite-persistence': - specifier: ^0.2.23 + specifier: ^0.2.24 version: link:../../../packages/node-db-sqlite-persistence '@tanstack/offline-transactions': - specifier: ^1.0.56 + specifier: ^1.0.57 version: link:../../../packages/offline-transactions '@tanstack/query-db-collection': - specifier: ^1.2.15 + specifier: ^1.3.0 version: link:../../../packages/query-db-collection '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-query': specifier: ^5.90.20 @@ -300,19 +300,19 @@ importers: specifier: 11.4.1 version: 11.4.1(react-native@0.79.6(@babel/core@7.29.0)(@types/react@19.2.13)(react@19.0.0)) '@tanstack/db': - specifier: ^0.9.2 + specifier: ^0.10.0 version: link:../../../packages/db '@tanstack/offline-transactions': - specifier: ^1.0.56 + specifier: ^1.0.57 version: link:../../../packages/offline-transactions '@tanstack/query-db-collection': - specifier: ^1.2.15 + specifier: ^1.3.0 version: link:../../../packages/query-db-collection '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-native-db-sqlite-persistence': - specifier: ^0.2.23 + specifier: ^0.2.24 version: link:../../../packages/react-native-db-sqlite-persistence '@tanstack/react-query': specifier: ^5.90.20 @@ -397,19 +397,19 @@ importers: specifier: 11.4.1 version: 11.4.1(react-native@0.79.6(@babel/core@7.29.0)(@types/react@19.2.13)(react@19.0.0)) '@tanstack/db': - specifier: ^0.9.2 + specifier: ^0.10.0 version: link:../../../packages/db '@tanstack/electric-db-collection': - specifier: ^0.4.10 + specifier: ^0.5.0 version: link:../../../packages/electric-db-collection '@tanstack/offline-transactions': - specifier: ^1.0.56 + specifier: ^1.0.57 version: link:../../../packages/offline-transactions '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-native-db-sqlite-persistence': - specifier: ^0.2.23 + specifier: ^0.2.24 version: link:../../../packages/react-native-db-sqlite-persistence '@tanstack/react-query': specifier: ^5.90.20 @@ -482,10 +482,10 @@ importers: examples/react/next-ssr-e2e: dependencies: '@tanstack/db': - specifier: ^0.9.2 + specifier: ^0.10.0 version: link:../../../packages/db '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db next: specifier: ^16.3.1 @@ -516,19 +516,19 @@ importers: examples/react/offline-transactions: dependencies: '@tanstack/browser-db-sqlite-persistence': - specifier: ^0.2.23 + specifier: ^0.2.24 version: link:../../../packages/browser-db-sqlite-persistence '@tanstack/db': - specifier: ^0.9.2 + specifier: ^0.10.0 version: link:../../../packages/db '@tanstack/offline-transactions': - specifier: ^1.0.56 + specifier: ^1.0.57 version: link:../../../packages/offline-transactions '@tanstack/query-db-collection': - specifier: ^1.2.15 + specifier: ^1.3.0 version: link:../../../packages/query-db-collection '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-query': specifier: ^5.90.20 @@ -586,10 +586,10 @@ importers: examples/react/paced-mutations-demo: dependencies: '@tanstack/db': - specifier: ^0.9.2 + specifier: ^0.10.0 version: link:../../../packages/db '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db mitt: specifier: ^3.0.1 @@ -626,10 +626,10 @@ importers: specifier: ^5.90.20 version: 5.90.20 '@tanstack/query-db-collection': - specifier: ^1.2.15 + specifier: ^1.3.0 version: link:../../../packages/query-db-collection '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-router': specifier: ^1.159.5 @@ -759,7 +759,7 @@ importers: examples/react/start-ssr-e2e: dependencies: '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-router': specifier: ^1.159.5 @@ -805,16 +805,16 @@ importers: examples/react/todo: dependencies: '@tanstack/electric-db-collection': - specifier: ^0.4.10 + specifier: ^0.5.0 version: link:../../../packages/electric-db-collection '@tanstack/query-core': specifier: ^5.90.20 version: 5.90.20 '@tanstack/query-db-collection': - specifier: ^1.2.15 + specifier: ^1.3.0 version: link:../../../packages/query-db-collection '@tanstack/react-db': - specifier: ^0.4.1 + specifier: ^0.4.2 version: link:../../../packages/react-db '@tanstack/react-router': specifier: ^1.159.5 @@ -823,7 +823,7 @@ importers: specifier: ^1.159.5 version: 1.159.5(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite-plugin-solid@2.11.10(@testing-library/jest-dom@6.9.1)(solid-js@1.9.11)(vite@7.3.2(@types/node@25.2.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.90.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.1)))(vite@7.3.2(@types/node@25.2.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.90.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.1)) '@tanstack/trailbase-db-collection': - specifier: ^0.1.109 + specifier: ^0.1.110 version: link:../../../packages/trailbase-db-collection cors: specifier: ^2.8.6 @@ -926,16 +926,16 @@ importers: examples/solid/todo: dependencies: '@tanstack/electric-db-collection': - specifier: ^0.4.10 + specifier: ^0.5.0 version: link:../../../packages/electric-db-collection '@tanstack/query-core': specifier: ^5.90.20 version: 5.90.20 '@tanstack/query-db-collection': - specifier: ^1.2.15 + specifier: ^1.3.0 version: link:../../../packages/query-db-collection '@tanstack/solid-db': - specifier: ^0.2.45 + specifier: ^0.2.46 version: link:../../../packages/solid-db '@tanstack/solid-router': specifier: ^1.159.5 @@ -944,7 +944,7 @@ importers: specifier: ^1.159.5 version: 1.159.5(@tanstack/react-router@1.159.5(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(solid-js@1.9.11)(vite-plugin-solid@2.11.10(@testing-library/jest-dom@6.9.1)(solid-js@1.9.11)(vite@7.3.2(@types/node@25.2.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.90.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.1)))(vite@7.3.2(@types/node@25.2.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.90.0)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.1)) '@tanstack/trailbase-db-collection': - specifier: ^0.1.109 + specifier: ^0.1.110 version: link:../../../packages/trailbase-db-collection cors: specifier: ^2.8.6