Skip to content

Commit 0e436f0

Browse files
ci: Version Packages (#915)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 295cb45 commit 0e436f0

File tree

25 files changed

+106
-33
lines changed

25 files changed

+106
-33
lines changed

.changeset/fix-array-iteration-proxy.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/react/offline-transactions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@tanstack/offline-transactions": ">=1.0.0",
1313
"@tanstack/query-db-collection": ">=1.0.5",
14-
"@tanstack/react-db": ">=0.1.50",
14+
"@tanstack/react-db": ">=0.1.51",
1515
"@tanstack/react-query": "^5.90.10",
1616
"@tanstack/react-router": "^1.139.3",
1717
"@tanstack/react-router-devtools": "^1.139.3",

examples/react/projects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@tailwindcss/vite": "^4.1.17",
1919
"@tanstack/query-core": "^5.90.10",
2020
"@tanstack/query-db-collection": ">=1.0.5",
21-
"@tanstack/react-db": ">=0.1.50",
21+
"@tanstack/react-db": ">=0.1.51",
2222
"@tanstack/react-router": "^1.139.3",
2323
"@tanstack/react-router-devtools": "^1.139.3",
2424
"@tanstack/react-router-with-query": "^1.130.17",

packages/angular-db/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @tanstack/angular-db
22

3+
## 0.1.33
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`295cb45`](https://github.com/TanStack/db/commit/295cb45797572b232650eddd3d62ffa937fa2fd7)]:
8+
- @tanstack/db@0.5.7
9+
310
## 0.1.32
411

512
### Patch Changes

packages/angular-db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tanstack/angular-db",
33
"description": "Angular integration for @tanstack/db",
4-
"version": "0.1.32",
4+
"version": "0.1.33",
55
"author": "Ethan McDaniel",
66
"license": "MIT",
77
"repository": {

packages/db-collection-e2e/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @tanstack/db-collection-e2e
22

3+
## 0.0.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`295cb45`](https://github.com/TanStack/db/commit/295cb45797572b232650eddd3d62ffa937fa2fd7)]:
8+
- @tanstack/db@0.5.7
9+
- @tanstack/electric-db-collection@0.2.7
10+
- @tanstack/query-db-collection@1.0.5
11+
312
## 0.0.8
413

514
### Patch Changes

packages/db-collection-e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/db-collection-e2e",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"private": true,
55
"description": "End-to-end test suite for TanStack DB collections",
66
"type": "module",

packages/db/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @tanstack/db
22

3+
## 0.5.7
4+
5+
### Patch Changes
6+
7+
- Fix change tracking for array items accessed via iteration methods (find, forEach, for...of, etc.) ([#910](https://github.com/TanStack/db/pull/910))
8+
9+
Previously, modifications to array items retrieved via iteration methods were not tracked by the change proxy because these methods returned raw array elements instead of proxied versions. This caused `getChanges()` to return an empty object, which in turn caused `createOptimisticAction`'s `mutationFn` to never be called when using patterns like:
10+
11+
```ts
12+
collection.update(id, (draft) => {
13+
const item = draft.items.find((x) => x.id === targetId)
14+
if (item) {
15+
item.value = newValue // This change was not tracked!
16+
}
17+
})
18+
```
19+
20+
The fix adds proxy handling for array iteration methods similar to how Map/Set iteration is already handled, ensuring that callbacks receive proxied elements and returned elements are properly proxied.
21+
22+
Also refactors proxy.ts for improved readability by extracting helper functions and hoisting constants to module scope.
23+
324
## 0.5.6
425

526
### Patch Changes

packages/db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tanstack/db",
33
"description": "A reactive client store for building super fast apps on sync",
4-
"version": "0.5.6",
4+
"version": "0.5.7",
55
"dependencies": {
66
"@standard-schema/spec": "^1.0.0",
77
"@tanstack/db-ivm": "workspace:*",

packages/electric-db-collection/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @tanstack/electric-db-collection
22

3+
## 0.2.7
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`295cb45`](https://github.com/TanStack/db/commit/295cb45797572b232650eddd3d62ffa937fa2fd7)]:
8+
- @tanstack/db@0.5.7
9+
310
## 0.2.6
411

512
### Patch Changes

0 commit comments

Comments
 (0)