Repository navigation
feat(alien-signals): port react-alien-signals 0.4.0 over alien-signals 3.2.1 - #1860
Merged
Merged
Conversation
…s 3.2.1 Re-pin @octanejs/alien-signals from react-alien-signals 0.3.0 to 0.4.0 (tag v0.4.0, commit 2d85d8d063d79332ec7c7e99c07bda3a722f491a, named by the npm SLSA provenance attestation) and move the workspace to a single alien-signals 3.2.1. - Port the full 0.4.0 surface: batch, trigger, createComputed's previous value, useDeferredSignalValue, useSignalSelector, the passive/layout/ insertion signal effects, optional deps on useSignalEffect and useSignalScope, and the SignalSetter/SignalEffectCallback/ SignalEffectDependencies types. Readers of one signal share one core subscription. - Drop both recorded divergences: 0.4.0 declares the readable useSignalValue overload and starts scopes after commit, so the port now follows upstream exactly (stable stop handle, no-op before commit). - Re-vendor the pinned upstream tree and lock, regenerate inventories, and adapt all 36 upstream cases plus the accepted-call type inventory. - Teach the alien-signals parity libs about the 0.4.0 suite shape: named renderHook handles, argument-free nullish matchers, nested bun JUnit describes, a typecheck suite without @ts-expect-error groups, and formatter-only quote/comma differences. - Bump octane's alien-signals pin to 3.2.1; it imports only alien-signals/system, which is unchanged from 3.2.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 7, 2026 20:20
# Conflicts: # packages/alien-signals/audit/react-parity.json # packages/alien-signals/audit/runtime-transformation-ledger.json # packages/apollo-client/audit/react-parity.json # packages/aria/audit/react-parity.json # packages/base-ui-utils/audit/react-parity.json # packages/base-ui/audit/react-parity.json # packages/better-auth/audit/react-parity.json # packages/cmdk/audit/react-parity.json # packages/colorful/audit/react-parity.json # packages/day-picker/audit/react-parity.json # packages/dexie/audit/react-parity.json # packages/dnd-kit/audit/react-parity.json # packages/draggable/audit/react-parity.json # packages/drei/audit/react-parity.json # packages/dropzone/audit/react-parity.json # packages/email/audit/react-parity.json # packages/embla-carousel/audit/react-parity.json # packages/floating-ui/audit/react-parity.json # packages/formisch/audit/react-parity.json # packages/gsap/audit/react-parity.json # packages/hook-form/audit/react-parity.json # packages/i18next/audit/react-parity.json # packages/inertia/audit/react-parity.json # packages/ink/audit/react-parity.json # packages/input-otp/audit/react-parity.json # packages/intersection-observer/audit/react-parity.json # packages/jotai/audit/react-parity.json # packages/lexical/audit/react-parity.json # packages/livestore/audit/react-parity.json # packages/lucide/audit/react-parity.json # packages/mantine-hooks/audit/react-parity.json # packages/markdown/audit/react-parity.json # packages/mobx/audit/react-parity.json # packages/monaco-editor/audit/react-parity.json # packages/motion/audit/react-parity.json # packages/nuqs/audit/react-parity.json # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl # packages/octane-is/audit/react-parity.json # packages/opentui/audit/react-parity.json # packages/pdf/audit/react-parity.json # packages/phosphor-icons/audit/react-parity.json # packages/popper/audit/react-parity.json # packages/radix/audit/react-parity.json # packages/rainbowkit/audit/react-parity.json # packages/react-error-boundary/audit/react-parity.json # packages/react-map-gl/audit/react-parity.json # packages/recharts/audit/react-parity.json # packages/redux-toolkit/audit/react-parity.json # packages/redux/audit/react-parity.json # packages/remix-router/audit/react-parity.json # packages/resizable-panels/audit/react-parity.json # packages/rxjs/audit/react-parity.json # packages/select/audit/react-parity.json # packages/shadcn/audit/react-parity.json # packages/solana-kit/audit/react-parity.json # packages/sonner/audit/react-parity.json # packages/spring/audit/react-parity.json # packages/streamdown/audit/react-parity.json # packages/styled-components/audit/react-parity.json # packages/swr/audit/react-parity.json # packages/syntax-highlighter/audit/react-parity.json # packages/tanstack-ai/audit/react-parity.json # packages/tanstack-devtools/audit/react-parity.json # packages/tanstack-form/audit/react-parity.json # packages/tanstack-hotkeys/audit/react-parity.json # packages/tanstack-pacer/audit/react-parity.json # packages/tanstack-query/audit/react-parity.json # packages/tanstack-router-ssr-query/audit/react-parity.json # packages/tanstack-router/audit/react-parity.json # packages/tanstack-store/audit/react-parity.json # packages/tanstack-table/audit/react-parity.json # packages/tanstack-virtual/audit/react-parity.json # packages/testing-library/audit/react-parity.json # packages/textarea-autosize/audit/react-parity.json # packages/three/audit/react-parity.json # packages/tiptap/audit/react-parity.json # packages/transition-group/audit/react-parity.json # packages/usehooks-ts/audit/react-parity.json # packages/valtio/audit/react-parity.json # packages/vaul/audit/react-parity.json # packages/visx/audit/react-parity.json # packages/wagmi/audit/react-parity.json # packages/waypoint/audit/react-parity.json # packages/window/audit/react-parity.json # packages/xstate-store/audit/react-parity.json # packages/xstate/audit/react-parity.json # packages/xyflow/audit/react-parity.json # packages/zag/audit/react-parity.json # packages/zustand/audit/react-parity.json
Contributor
Benchmark report
Compares js-framework: 1k/10k row operations
All 20 timed operations (18 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 60 measured values. Public-import reachability bundles (bytes)No changes across 111 measured values. |
trueadm
added a commit
that referenced
this pull request
Oct 7, 2026
Conflicts: the 87 react-parity manifests and the user-apps-v1 manifest record the lockfile hash, which #1860 (react-alien-signals port) changed. pnpm sync regenerated them. The merged lockfile needs no change from `pnpm install --lockfile-only` and still holds no TypeScript 7.0.2. Also takes #1862 and its hydrate-frame budget raise (#1863). This branch changes no bundled code, so its budgets stay main's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-pins
@octanejs/alien-signalsfrom[email protected]to[email protected]and moves the workspace onto a single[email protected].Pin: tag
v0.4.0, commit2d85d8d063d79332ec7c7e99c07bda3a722f491a. The npm SLSA provenance attestation for the published tarball names this commit. The package now declareslicense: "MIT", which matches the registry andLICENSE.upstream; the license bytes are unchanged.Surface: ports everything in 0.4.0:
batch,trigger, and the previous-value argument tocreateComputeduseDeferredSignalValue,useSignalSelector,useSignalPassiveEffect,useSignalLayoutEffect,useSignalInsertionEffectdepsonuseSignalEffectanduseSignalScopeSignalSetter,SignalEffectCallback,SignalEffectDependenciesComponents that read the same signal now share one core subscription, as they do upstream.
Divergences: both recorded divergences are dropped. 0.4.0 declares the readable
useSignalValueoverload and starts scopes in a post-commit effect. The port now follows upstream exactly:useSignalScopereturns a stable stop handle that stops the running scope, does nothing before commit, and starts a new scope when its deps change.WritableSignalis now the raw core signal, so updater functions go through the hook setters. The changeset lists these behavior changes for callers.Core: the
alien-signalscatalog entry goes from 1.0.4 to 3.2.1, andoctane's exact pin from 3.2.0 to 3.2.1. Octane imports onlyalien-signals/system, which is byte-identical between 3.2.0 and 3.2.1, so core needs no code change. The lockfile diff contains only these entries.Evidence
Vendored
upstream/tree re-materialized and verified offline against the newaudit/upstream.lock.json.The pristine 0.4.0 bun suite passes 36/36 against the recorded workspace oracle (React 19.2.7, which satisfies the
>=19.2.0peer).The adapted suite passes 36/36. Each case keeps its upstream title and a
// Per src/index.test.ts:<line>citation. The 10 new integration cases run on Octane primitives, including SSR through the shared hydration fixture renderer,StrictMode,startTransition, anduseDeferredValue.Type lanes:
@ts-expect-errorgroups.useComputeddeps argument.The alien-signals parity libs needed small, tested changes for the 0.4.0 suite shape:
hook.result.currenthandlestoBeUndefined()/toBeNull()classnameinnermost-first with a double-escaped separatorEach change has negative controls.
The playground demo now uses
useSignalSelector. Octane contracts cover the new stop-handle semantics and explicit dependency lists.react-portpreflight (--npm-provenance --classify alien-signals=framework-neutral) marks the 0.4.0 pinsatisfiedby@octanejs/alien-signals, and the terminal check reportsterminal.Validation
pnpm format:files:check(changed files)pnpm typecheck(full run left to CI;octane-tsc -p packages/alien-signals/tsconfig.jsonandtsrx-tsc -p packages/alien-signals/typetests/tsconfig.adapted.jsonpass)pnpm test(full run left to CI)vitest run --project alien-signals --project alien-signals-ssr: 46/46harness.mjs run-required --manifest packages/alien-signals/audit/react-parity.json: all 5 lanesreact-parity/check.mjs --validate-onlynode --test scripts/react-parity/alien-signals-*.test.mjs: 58/58materialize run --checkpnpm sync(clean)Risk / follow-ups
@octanejs/alien-signalscallers. They are deliberate React-parity changes released as aminor.docs/experimental-scoped-signals-evidence.mdanddocs/async-signals-performance.mdstill name 3.2.0 and 1.0.4. They are dated measurement records and were left untouched.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Upgrades the reactive core and changes writable-signal and scope-stop semantics for existing
@octanejs/alien-signalsconsumers; risk is mitigated by broad parity and contract tests but still warrants migration review.Overview
Re-pins
@octanejs/alien-signalsto[email protected]and unifies the workspace on[email protected](including Octane’s exact pin). The binding implementation is rewritten to match upstream: shareduseSyncExternalStoresubscription per signal, corebatch/trigger,useDeferredSignalValue,useSignalSelector, insertion/layout/passive signal effects, optional dependency lists onuseSignalEffect/useSignalScope, andcreateComputed’s previous-value argument.Caller-facing semantics align with 0.4.0 rather than the old Octane divergences:
WritableSignalonly accepts values (functional updates go throughuseSignal/useSetSignalsetters), anduseSignalScopeexposes a stable stop that is a no-op before commit and restarts when deps change. Documented divergences are cleared; parity audits, vendored upstream, and adapted/pristine suites expand to 36 runtime cases plus updated type inventories.Docs, changesets, and status metadata reflect the new pin and verification scope (batching, selectors, deferred reads, phased effects, SSR/hydration).
Reviewed by Cursor Bugbot for commit fe90daa. Bugbot is set up for automated code reviews on this repo. Configure here.