Skip to content

docs: add checked sharing for decoded query values - #160

Merged
ueberBrot merged 5 commits into
mainfrom
t3/query-rich-value-sharing
Nov 4, 2026
Merged

ueberBrot merged 5 commits into
mainfrom
t3/query-rich-value-sharing

Conversation

@ueberBrot

@ueberBrot ueberBrot commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

incoming decoded snapshot
  Schema.toEquivalence → reuse equivalent records by position
  replaceEqualDeep → share surrounding plain containers
  native structuralSharing / configureUtils

Provide a checked opt-in recipe using existing Effect and Query interfaces.

Evidence

  • Before: Native-only sharing replaces equivalent decoded Date, collection and Schema-class records.
    After: The recipe preserves equivalent records, keeps changed instances intact, uses explicit reference semantics for custom fields and preserves metadata freezing. Focused runtime/docs checks, both public compilers and negative controls pass.

  • Eighteen equal/changed-value workloads complete; no rendering or application speedup is claimed. Final combined validation passes 790 tests.

  • Branch validation passes vp run quality, including all four Fallow audits, both public compilers, runtime tests, and framework consumers. Intent maintenance reports zero pending items.

  • One patch changeset records the documentation and shipped skill guidance. CI and test-only process markers are omitted.

Merge Danger

Door: two-way

Blast Radius: Caching

The recipe assumes immutable decoded values and positional record matching. Shared planning and Intent snapshots may need refresh after another focused PR merges.

@changeset-bot

changeset-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: edc25d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ueberbrot/effect-api-query Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ueberBrot
ueberBrot force-pushed the t3/query-rich-value-sharing branch from 96dbf57 to edc25d1 Compare November 4, 2026 17:58
@ueberBrot
ueberBrot merged commit 10075f5 into main Nov 4, 2026
12 checks passed
@ueberBrot
ueberBrot deleted the t3/query-rich-value-sharing branch November 4, 2026 18:10
@github-actions github-actions Bot mentioned this pull request Nov 4, 2026
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