Skip to content

feat: prepare 0.7.0 React and persistence release - #31

Merged
codeBelt merged 9 commits into
mainfrom
codex/react-sync-integration
Oct 21, 2026
Merged

codeBelt merged 9 commits into
mainfrom
codex/react-sync-integration

Conversation

@codeBelt

@codeBelt codeBelt commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Prepare @codebelt/classy-store@0.7.0 with synchronous React subscriptions, reliable selectors and auto-tracking under React Compiler, and prepared snapshots for streamed and delayed hydration. Add the server-safe React entry and production Next.js App Router coverage, improve large-form/list performance, release retained snapshots and detached children, and fix asynchronous persistence ordering and stale two-tab updates.

Upgrade notes

  • React hooks always notify synchronously. Remove their sync options and UseClassyStoreOptions imports; auto-tracked hooks no longer accept an options argument. Selector isEqual options remain available. Ordinary core subscriptions remain batched by default.
  • Auto-tracked React hooks require native WeakRef (ES2021). Explicit selector hooks do not require it.
  • Prepare matching server/client stores before rendering or persistence when updates can precede hydration. Use @codebelt/classy-store/react/server from Server Components; the hooks entry carries use client.
  • Persistence operations are ordered per handle. Stale reads/events are ignored, clear cancels pending auto-saves, and cleanup skips queued operations that have not started. The persisted data format is unchanged.

See the complete 0.7.0 upgrade guide and release notes. README, docs navigation, and machine-readable docs link to the guide. Reviewed all nine changesets and their rendered changelog text; the release plan resolves 0.6.0 to 0.7.0.

Validation

  • Latest full local validation: 496 core/React source/parser tests, 94 browser tests (8 existing clipboard skips), 93 React compatibility executions, 177 Compiler executions, 12 Next.js tests plus 14 boundary checks, 30 memory scenarios, and 16 render-count scenarios passed.
  • Packed ESM/CJS public typechecks, build, and library lint passed.
  • Release preparation: docs production build and tracked-file lint passed. Reproduced the fresh-checkout typecheck failure with no built declarations and verified build followed by typecheck passes. CI now builds before checking packed consumers.
  • GitHub checks run on this branch; their current status is shown below.

Release flow

This PR retains the pending changesets and the current package version. After it merges, the existing Changesets workflow creates the version/changelog release PR for 0.7.0. Merging that release PR triggers publishing. This PR does not publish the package.

@codeBelt codeBelt changed the title feat(react): make subscriptions synchronous and harden integrations feat: prepare 0.7.0 React and persistence release Oct 21, 2026
@codeBelt
codeBelt merged commit 1848a2d into main Oct 21, 2026
6 checks passed
@codeBelt
codeBelt deleted the codex/react-sync-integration branch October 21, 2026 04:28
@github-actions github-actions Bot mentioned this pull request Oct 21, 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