Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 8, 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/db@0.2.0

Minor Changes

  • Enhanced Ref System with Nested Optional Properties (#386)

    Comprehensive refactor of the ref system to properly support nested structures and optionality, aligning the type system with JavaScript's optional chaining behavior.

    ✨ New Features

    • Nested Optional Properties: Full support for deeply nested optional objects (employees.profile?.bio, orders.customer?.address?.street)
    • Enhanced Type Safety: Optional types now correctly typed as RefProxy<T> | undefined with optionality outside the ref
    • New Query Functions: Added isUndefined, isNull for proper null/undefined checks
    • Improved JOIN Handling: Fixed optionality in JOIN operations and multiple GROUP BY support

    ⚠️ Breaking Changes

    IMPORTANT: Code that previously ignored optionality now requires proper optional chaining syntax.

    // Before (worked but type-unsafe)
    employees.profile.bio // ❌ Now throws type error
    
    // After (correct and type-safe)
    employees.profile?.bio // ✅ Required syntax

    Migration

    Add ?. when accessing potentially undefined nested properties

Patch Changes

  • fix count aggregate function (evaluate only not null field values like SQL count) (#453)

  • fix a bug where distinct was not applied to queries using a join (#510)

  • Fix bug where too much data would be loaded when the lazy collection of a join contains an offset and/or limit clause. (#508)

  • Refactored select improving spread (...obj) support and enabling nested projection. (#389)

  • fix a bug that prevented chaining joins (joining collectionB to collectionA, then collectionC to collectionB) within one query without using a subquery (#511)

  • Updated dependencies [08303e6, 0f6fb37, 0be4e2c]:

    • @tanstack/db-ivm@0.1.3

@tanstack/db-ivm@0.1.3

Patch Changes

  • fix count aggregate function (evaluate only not null field values like SQL count) (#453)

  • Hybrid index implementation to track values and their multiplicities (#489)

  • Replace JSON.stringify based hash function by structural hashing function. (#491)

@tanstack/electric-db-collection@0.1.14

Patch Changes

@tanstack/query-db-collection@0.2.12

Patch Changes

@tanstack/react-db@0.1.13

Patch Changes

@tanstack/solid-db@0.1.13

Patch Changes

@tanstack/svelte-db@0.1.13

Patch Changes

@tanstack/trailbase-db-collection@0.1.13

Patch Changes

@tanstack/vue-db@0.0.46

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 5 times, most recently from 863431e to 155e3e5 Compare September 8, 2025 17:02
@github-actions github-actions bot force-pushed the changeset-release/main branch from 155e3e5 to bea03e3 Compare September 8, 2025 17:53
@samwillis samwillis merged commit 7d813be into main Sep 8, 2025
@samwillis samwillis deleted the changeset-release/main branch September 8, 2025 17:53
Uziniii pushed a commit to Uziniii/db that referenced this pull request Sep 19, 2025
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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