Skip to content

Conversation

@github-actions
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tanstack/angular-db@0.1.33

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/db@0.5.7

Patch Changes

  • Fix change tracking for array items accessed via iteration methods (find, forEach, for...of, etc.) (#910)

    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:

    collection.update(id, (draft) => {
      const item = draft.items.find((x) => x.id === targetId)
      if (item) {
        item.value = newValue // This change was not tracked!
      }
    })

    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.

    Also refactors proxy.ts for improved readability by extracting helper functions and hoisting constants to module scope.

@tanstack/electric-db-collection@0.2.7

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/powersync-db-collection@0.1.11

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/react-db@0.1.51

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/rxdb-db-collection@0.1.39

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/solid-db@0.1.50

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/svelte-db@0.1.50

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/trailbase-db-collection@0.1.51

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/vue-db@0.0.83

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7

@tanstack/db-collection-e2e@0.0.9

Patch Changes

  • Updated dependencies [295cb45]:
    • @tanstack/db@0.5.7
    • @tanstack/electric-db-collection@0.2.7
    • @tanstack/query-db-collection@1.0.5

@KyleAMathews KyleAMathews merged commit 0e436f0 into main Nov 26, 2025
@KyleAMathews KyleAMathews deleted the changeset-release/main branch November 26, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants