Repository navigation
Require Solid 2 in @effect/atom-solid - #10764
Merged
tim-smart merged 6 commits intoNov 24, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 51c4e90 The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
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 |
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
effect-bot
force-pushed
the
v4/next-minor
branch
19 times, most recently
from
November 20, 2026 03:56
a6604a9 to
cf6cce5
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
3 times, most recently
from
November 23, 2026 01:28
d702be4 to
d21548d
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
2 times, most recently
from
November 24, 2026 00:01
5a51d79 to
86eca1b
Compare
effect-bot
force-pushed
the
agent/frontend-master-effect-bot/8370cffbac91
branch
from
November 24, 2026 00:04
0bf0bf9 to
4bc0064
Compare
Contributor
|
/rebase |
effect-bot
force-pushed
the
agent/frontend-master-effect-bot/8370cffbac91
branch
from
November 24, 2026 00:06
4bc0064 to
c3aafa9
Compare
tim-smart
enabled auto-merge (squash)
November 24, 2026 00:06
effect-bot
force-pushed
the
v4/next-minor
branch
from
November 24, 2026 00:07
86eca1b to
80ed3d0
Compare
effect-bot
force-pushed
the
agent/frontend-master-effect-bot/8370cffbac91
branch
from
November 24, 2026 00:07
c3aafa9 to
12e45a5
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
from
November 24, 2026 00:20
80ed3d0 to
479fbaa
Compare
effect-bot
force-pushed
the
agent/frontend-master-effect-bot/8370cffbac91
branch
from
November 24, 2026 00:20
12e45a5 to
2e205bb
Compare
The lifecycle tests waited for a zero-delay timer and assumed the registry had drained its removal queue by then. The registry schedules removal with setImmediate, which can fire after the timer when the test resumes inside an immediate callback on a busy event loop, as on the Bun CI runner. The tests now queue the registry's tasks and run them before asserting.
effect-bot
force-pushed
the
agent/frontend-master-effect-bot/8370cffbac91
branch
from
November 24, 2026 01:00
2e205bb to
51c4e90
Compare
effect-bot
added a commit
that referenced
this pull request
Nov 24, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
effect-bot
added a commit
that referenced
this pull request
Nov 25, 2026
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.
Closes EFF-4002
@effect/atom-solidcappedsolid-jsat<2.0.0, and the adapter did not work on Solid 2 anyway. It importedcreateComputedandcreateResource, which Solid 2 removed. In native ESM that named import fails at link time, and under Vite every hook threwcreateComputed is not a function. This PR moves the adapter to Solid 2 and sets the peer range to^2.0.0. Solid 1 is no longer supported.Breaking changes
solid-js@^2.0.0.useAtomResourceis removed, because Solid 2 has nocreateResource. ReadAsyncResultatoms withuseAtomValueand match on the result. The README has a migration example.RegistryProviderrenders<RegistryContext value={registry}>, since Solid 2 contexts have no.Provider. Consumers who usedRegistryContext.Providerdirectly switch to<RegistryContext value={registry}>or<RegistryProvider>.Every API in the package is
@stability unstable, so the changeset isminor.Adapter changes
useAtomValue,useAtom,useAtomRef,useAtomMount,useAtomSet, anduseAtomRefreshsubscribe from an eagercreateMemoinstead ofcreateComputed. The memo owns the subscription, so it is released when the source changes or the owner is disposed.createSignalas a derived signal. The bridging signal usesownedWrite, so Solid accepts registry notifications that arrive during a computation.useAtomSubscribeuses Solid 2's splitcreateEffect(compute, effect), with the unsubscribe function returned as the effect cleanup.untrack. Without this, Solid 2 emitsSTRICT_READ_UNTRACKEDwhen you call them from an effect.Tests
The suite runs against Solid 2 (13 tests).
test/utils/solid.tshas two helpers:watch, which wraps the splitcreateEffect, andprovideRegistry. The unused@solidjs/testing-librarysetup and its devDependencies are removed; that library importssolid-js/web, which Solid 2 no longer ships. Lifecycle tests:useAtomValuereleases the previous atom when its thunk switches, and releases the current atom when the owner is disposed.useAtomValueto an atom with an equal value does not notify readers ([1, 2]).useAtomMountanduseAtomSubscribestay active while mounted and release on dispose.Published declarations
RegistryProviderusedJSX.Element, which Solid 2 no longer exports fromsolid-js. It now usesElement.pnpm check-dist-types(CI build job) type-checks a consumer fixture,packages/atom/solid/dist-types/index.ts, against the built declarations andsolid-jstypes withskipLibCheck: false.Validation
pnpm vitest run --project "@effect/atom-solid": 13 passed on solid-js 2.0.3 (locked) under Node, Bun and Deno.pnpm buildwithstripInternal: truefollowed bypnpm check-dist-types, as in CI.pnpm lint,pnpm check, andpnpm jsdocs --checkpass.