Skip to content

Peer range @arkenv/core: ^1.0.0 excludes the only published versions #2034

Closed

Description

@NorthLake

Environment

  • @arkenv/nuxt 1.0.0-rc.4
  • npm 11 (Node 24.15.0)

Reproduction

npm install @arkenv/nuxt@1.0.0-rc.4 @arkenv/core@1.0.0-rc.4 arktype

Actual

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.

Workaround

"overrides": {
  "@arkenv/nuxt": {
    "@arkenv/core": "1.0.0-rc.4"
  }
}

Expected

Make the peer ranges include pre-releases during the RC phase, e.g. ^1.0.0-rc.4 or >=1.0.0-0.

Activity

  1. added
    needs triage
    on Oct 5, 2026
  2. added
    @arkenv/nuxt
    @arkenv/standard
    bug
    dependencies
    on Oct 5, 2026
  3. added
    ready for human
    and removed
    needs triage
    on Oct 8, 2026
  4. yamcodes commented on Oct 8, 2026

    @yamcodes
    Owner

    This was generated by AI during triage.

    Agent Brief

    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
  5. yamcodes commented on Oct 10, 2026

    @yamcodes
    Owner

    This was generated by AI during triage.

    Agent Brief

    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
  6. added
    ready for agent
    and removed
    ready for human
    on Oct 10, 2026
  7. added a commit that references this issue on Oct 10, 2026
    222d8e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    @arkenv/nuxt@arkenv/standardbugdependenciesready for agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions