Skip to content

ci: Version Packages#764

Merged
KyleAMathews merged 1 commit intomainfrom
changeset-release/main
Nov 5, 2025
Merged

ci: Version Packages#764
KyleAMathews merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 5, 2025

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.24

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/db@0.4.19

Patch Changes

  • Significantly improve localStorage collection performance during rapid mutations (#760)

    Optimizes localStorage collections to eliminate redundant storage reads, providing dramatic performance improvements for use cases with rapid mutations (e.g., text input with live query rendering).

    Performance Improvements:

    • 67% reduction in localStorage I/O operations - from 3 reads + 1 write per mutation down to just 1 write
    • Eliminated 2 JSON parse operations per mutation
    • Eliminated 1 full collection diff operation per mutation
    • Leverages in-memory cache (lastKnownData) instead of reading from storage on every mutation

    What Changed:

    1. Mutation handlers now use in-memory cache instead of loading from storage before mutations
    2. Post-mutation sync eliminated - no longer triggers redundant storage reads after local mutations
    3. Manual transactions (acceptMutations) optimized to use in-memory cache

    Before: Each mutation performed 3 I/O operations:

    • loadFromStorage() - read + JSON parse
    • Modify data
    • saveToStorage() - JSON stringify + write
    • processStorageChanges() - another read + parse + diff

    After: Each mutation performs 1 I/O operation:

    • Modify in-memory data ✨ No I/O!
    • saveToStorage() - JSON stringify + write

    Safety:

    • Cross-tab synchronization still works correctly via storage event listeners
    • All 50 tests pass including 8 new tests specifically for rapid mutations and edge cases
    • 92.3% code coverage on local-storage.ts
    • lastKnownData cache kept in sync with storage through initial load, mutations, and cross-tab events

    This optimization is particularly impactful for applications with:

    • Real-time text input with live query rendering
    • Frequent mutations to localStorage-backed collections
    • Multiple rapid sequential mutations

@tanstack/electric-db-collection@0.1.43

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/offline-transactions@0.1.2

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/powersync-db-collection@0.1.2

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/query-db-collection@0.2.42

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/react-db@0.1.42

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/rxdb-db-collection@0.1.30

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/solid-db@0.1.41

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/svelte-db@0.1.41

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/trailbase-db-collection@0.1.41

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/vue-db@0.0.74

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19

@tanstack/db-example-paced-mutations-demo@0.0.6

Patch Changes

  • Updated dependencies [75470a8]:
    • @tanstack/db@0.4.19
    • @tanstack/react-db@0.1.42

@tanstack/db-example-react-todo@0.1.22

Patch Changes

  • Updated dependencies []:
    • @tanstack/electric-db-collection@0.1.43
    • @tanstack/query-db-collection@0.2.42
    • @tanstack/react-db@0.1.42
    • @tanstack/trailbase-db-collection@0.1.41

@KyleAMathews KyleAMathews merged commit 3ee1d7e into main Nov 5, 2025
@KyleAMathews KyleAMathews deleted the changeset-release/main branch November 5, 2025 14:19
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.

1 participant