You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Peer range @arkenv/core: ^1.0.0 excludes the only published versions #2034
@arkenv/nuxtIssues or Pull Requests involving the Nuxt integration for ArkEnv@arkenv/standardIssues or Pull Requests involving @arkenv/standardbugSomething isn't workingdependenciesPull requests that update a dependency fileready for agentFully specified, ready for immediate implementation
npm error code ETARGET
npm error notarget No matching version found for @arkenv/core@^1.0.0.
This happens even when installing @arkenv/core@1.0.0-rc.4 explicitly. @arkenv/core only publishes 1.0.0-alpha.2 and 1.0.0-rc.4, and semver ranges like ^1.0.0 don't match pre-releases. The same applies to the @arkenv/standard peer.
Category: bug Summary: Plugin peer ranges of ^1.0.0 match no published @arkenv/core or @arkenv/standard version during the RC
Why this is not ready for an agent:
ADR 0012 locks those peers to a hardcoded ^1.0.0 wide floor so a plugin release does not pin consumers to the monorepo's current prerelease. Changing the range amends that decision. Pick a range below before an agent implements it.
Current behavior:
Framework plugins declare @arkenv/core and @arkenv/standard as optional peers ^1.0.0. npm has only prereleases of those packages (1.0.0-alpha.* and 1.0.0-rc.1 through 1.0.0-rc.4). A range with no prerelease tag does not match them. Installing @arkenv/nuxt@1.0.0-rc.4 fails on npm 11 with ETARGET (No matching version found for @arkenv/core@^1.0.0) even when @arkenv/core@1.0.0-rc.4 is requested explicitly. npm 10 warns that the optional peer cannot be resolved and overrides it. The same peer range is on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins.
Desired behavior:
Both core peers on every framework plugin use the range chosen below. ADR 0012 records why the wide floor includes the current prerelease line. The peers stay optional.
Candidate ranges:
^1.0.0-0 matches 1.0.0 prereleases and stable 1.x, and excludes 2.x. A later prerelease on another tuple, such as 1.1.0-rc.0, still does not match. This is the same form already used for Nuxt (^4.0.0-0) and Next (^16.0.0-0).
^1.0.0-rc.4 floors the peer at this RC, which is the artificial floor ADR 0012 avoided.
>=1.0.0-0 matches stable 2.x as well. It still does not match 1.1.0-rc.0, because a prerelease only satisfies a range when some comparator shares its major.minor.patch.
Key interfaces:
The @arkenv/core and @arkenv/standard peer dependency ranges on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins
ADR 0012's wide-peer section, which currently specifies the published range ^1.0.0
Acceptance criteria:
The chosen range is recorded on this issue
Both core peers on every framework plugin use that range
Installing the published plugin together with @arkenv/core@1.0.0-rc.4 and @arkenv/standard@1.0.0-rc.4 resolves without ETARGET or an overridden peer
The chosen range still matches stable 1.0.0 and does not match 2.0.0, unless an unbounded range was explicitly chosen
ADR 0012 describes the prerelease-inclusive floor and why it is not workspace:^
Out of scope:
Publishing the packages (the range change ships in the next release)
Changing whether those peers are optional
Pinning peers to the exact version in the monorepo at publish time
@arkenv/core's arktype peer, and @arkenv/standard's optional validator peers
Category: bug Summary: Widen the optional @arkenv/core and @arkenv/standard peer ranges on framework plugins from ^1.0.0 to ^1.0.0-0
Decision: The published peer range is ^1.0.0-0. This comment records that choice and supersedes the open candidate list in the earlier triage note.
^1.0.0-0 keeps ADR 0012's wide floor. It is not an artificial floor at the current monorepo prerelease (^1.0.0-rc.4), and it is not an unbounded range (>=1.0.0-0) that would admit 2.x. npm only matches a prerelease when the range includes a prerelease comparator for that major.minor.patch tuple, so a bare ^1.0.0 matches none of the published 1.0.0-alpha.* or 1.0.0-rc.* versions. The -0 suffix is the base threshold for the 1.0.0 line. The same form is already used for the Nuxt peer (^4.0.0-0).
Current behavior:
Framework plugins declare @arkenv/core and @arkenv/standard as optional peers ^1.0.0. npm has only prereleases of those packages. Installing @arkenv/nuxt@1.0.0-rc.4 with @arkenv/core@1.0.0-rc.4 fails on npm 11 with ETARGET (No matching version found for @arkenv/core@^1.0.0). npm 10 warns that the optional peer cannot be resolved and overrides it. The same peer range is on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins. ADR 0012 still documents the published peer range as ^1.0.0 and contrasts it with workspace:^.
Desired behavior:
Both optional peers, @arkenv/core and @arkenv/standard, on every framework plugin (Next.js, Nuxt, Vite, Bun, Rsbuild) use ^1.0.0-0. They stay optional. Dev-dependency workspace links stay as they are.
That range must satisfy:
1.0.0-alpha.* and 1.0.0-rc.*, including 1.0.0-rc.4
stable 1.0.0, 1.0.1, and 1.1.0 (anything >=1.0.0 <2.0.0)
not 2.0.0 or 2.0.0-0
A prerelease on a different tuple, such as 1.1.0-rc.0, still does not match. That is normal semver, not a reason to switch to >=. Document it in the ADR so the floor is not described as matching every 1.x prerelease.
ADR 0012's wide-peer section and protocol table must say the published peer range is ^1.0.0-0, that -0 is appended so the wide floor includes the 1.0.0 prerelease line during the RC phase, and why that is preferred to workspace:^ (a workspace:^ publish would pin consumers to the core version in the monorepo at publish time).
Key interfaces:
The optional @arkenv/core and @arkenv/standard peer dependency ranges on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins
ADR 0012's wide-peer section and the dependency-protocol table, which currently specify ^1.0.0
Acceptance criteria:
Both @arkenv/core and @arkenv/standard optional peers on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins are ^1.0.0-0
Those peers remain optional
^1.0.0-0 matches 1.0.0-rc.4 and stable 1.0.0, and does not match 2.0.0
ADR 0012 documents the -0 prerelease-inclusive floor, including that a later prerelease such as 1.1.0-rc.0 does not match, and why this is preferred to workspace:^
A pending changeset (root of .changeset/, not under pre/) covers each affected plugin
Installing a plugin package that declares ^1.0.0-0 together with @arkenv/core@1.0.0-rc.4 and @arkenv/standard@1.0.0-rc.4 resolves without ETARGET or an overridden peer. Verify against the local manifests (the published tarballs still say ^1.0.0 until the next release)
Out of scope:
Publishing the packages
Changing whether those peers are optional
Pinning peers to the exact version in the monorepo at publish time (workspace:* / workspace:^)
@arkenv/core's arktype peer, and @arkenv/standard's optional validator peers
Scaffolded app ranges (TanStack add-on templates and similar) and framework peers such as next or nuxt
@arkenv/nuxtIssues or Pull Requests involving the Nuxt integration for ArkEnv@arkenv/standardIssues or Pull Requests involving @arkenv/standardbugSomething isn't workingdependenciesPull requests that update a dependency fileready for agentFully specified, ready for immediate implementation
Activity
yamcodes commentedon Oct 8, 2026
Agent Brief
Category: bug
Summary: Plugin peer ranges of
^1.0.0match no published@arkenv/coreor@arkenv/standardversion during the RCWhy this is not ready for an agent:
ADR 0012 locks those peers to a hardcoded
^1.0.0wide floor so a plugin release does not pin consumers to the monorepo's current prerelease. Changing the range amends that decision. Pick a range below before an agent implements it.Current behavior:
Framework plugins declare
@arkenv/coreand@arkenv/standardas optional peers^1.0.0. npm has only prereleases of those packages (1.0.0-alpha.*and1.0.0-rc.1through1.0.0-rc.4). A range with no prerelease tag does not match them. Installing@arkenv/nuxt@1.0.0-rc.4fails on npm 11 withETARGET(No matching version found for @arkenv/core@^1.0.0) even when@arkenv/core@1.0.0-rc.4is requested explicitly. npm 10 warns that the optional peer cannot be resolved and overrides it. The same peer range is on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins.Desired behavior:
Both core peers on every framework plugin use the range chosen below. ADR 0012 records why the wide floor includes the current prerelease line. The peers stay optional.
Candidate ranges:
^1.0.0-0matches1.0.0prereleases and stable 1.x, and excludes 2.x. A later prerelease on another tuple, such as1.1.0-rc.0, still does not match. This is the same form already used for Nuxt (^4.0.0-0) and Next (^16.0.0-0).^1.0.0-rc.4floors the peer at this RC, which is the artificial floor ADR 0012 avoided.>=1.0.0-0matches stable 2.x as well. It still does not match1.1.0-rc.0, because a prerelease only satisfies a range when some comparator shares its major.minor.patch.Key interfaces:
@arkenv/coreand@arkenv/standardpeer dependency ranges on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins^1.0.0Acceptance criteria:
@arkenv/core@1.0.0-rc.4and@arkenv/standard@1.0.0-rc.4resolves withoutETARGETor an overridden peer1.0.0and does not match2.0.0, unless an unbounded range was explicitly chosenworkspace:^Out of scope:
@arkenv/core'sarktypepeer, and@arkenv/standard's optional validator peersyamcodes commentedon Oct 10, 2026
Agent Brief
Category: bug
Summary: Widen the optional
@arkenv/coreand@arkenv/standardpeer ranges on framework plugins from^1.0.0to^1.0.0-0Decision: The published peer range is
^1.0.0-0. This comment records that choice and supersedes the open candidate list in the earlier triage note.^1.0.0-0keeps ADR 0012's wide floor. It is not an artificial floor at the current monorepo prerelease (^1.0.0-rc.4), and it is not an unbounded range (>=1.0.0-0) that would admit 2.x. npm only matches a prerelease when the range includes a prerelease comparator for that major.minor.patch tuple, so a bare^1.0.0matches none of the published1.0.0-alpha.*or1.0.0-rc.*versions. The-0suffix is the base threshold for the1.0.0line. The same form is already used for the Nuxt peer (^4.0.0-0).Current behavior:
Framework plugins declare
@arkenv/coreand@arkenv/standardas optional peers^1.0.0. npm has only prereleases of those packages. Installing@arkenv/nuxt@1.0.0-rc.4with@arkenv/core@1.0.0-rc.4fails on npm 11 withETARGET(No matching version found for @arkenv/core@^1.0.0). npm 10 warns that the optional peer cannot be resolved and overrides it. The same peer range is on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins. ADR 0012 still documents the published peer range as^1.0.0and contrasts it withworkspace:^.Desired behavior:
Both optional peers,
@arkenv/coreand@arkenv/standard, on every framework plugin (Next.js, Nuxt, Vite, Bun, Rsbuild) use^1.0.0-0. They stay optional. Dev-dependency workspace links stay as they are.That range must satisfy:
1.0.0-alpha.*and1.0.0-rc.*, including1.0.0-rc.41.0.0,1.0.1, and1.1.0(anything>=1.0.0 <2.0.0)2.0.0or2.0.0-0A prerelease on a different tuple, such as
1.1.0-rc.0, still does not match. That is normal semver, not a reason to switch to>=. Document it in the ADR so the floor is not described as matching every 1.x prerelease.ADR 0012's wide-peer section and protocol table must say the published peer range is
^1.0.0-0, that-0is appended so the wide floor includes the1.0.0prerelease line during the RC phase, and why that is preferred toworkspace:^(aworkspace:^publish would pin consumers to the core version in the monorepo at publish time).Key interfaces:
@arkenv/coreand@arkenv/standardpeer dependency ranges on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins^1.0.0Acceptance criteria:
@arkenv/coreand@arkenv/standardoptional peers on the Next.js, Nuxt, Vite, Bun, and Rsbuild plugins are^1.0.0-0^1.0.0-0matches1.0.0-rc.4and stable1.0.0, and does not match2.0.0-0prerelease-inclusive floor, including that a later prerelease such as1.1.0-rc.0does not match, and why this is preferred toworkspace:^.changeset/, not underpre/) covers each affected plugin^1.0.0-0together with@arkenv/core@1.0.0-rc.4and@arkenv/standard@1.0.0-rc.4resolves withoutETARGETor an overridden peer. Verify against the local manifests (the published tarballs still say^1.0.0until the next release)Out of scope:
workspace:*/workspace:^)@arkenv/core'sarktypepeer, and@arkenv/standard's optional validator peersnextornuxtfix: Peer range @arkenv/core ^1.0.0 excludes the only published versi…