Skip to content

Version Packages (rc) - #1885

Merged
yamcodes merged 1 commit into
v1from
changeset-release/v1
Sep 23, 2026
Merged

yamcodes merged 1 commit into
v1from
changeset-release/v1

Conversation

@arkenv-bot

@arkenv-bot arkenv-bot Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v1, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

v1 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on v1.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

[email protected]

Major Changes

  • Remove the --host-preset / -H init aliases #1927 9fd608a @yamcodes

    arkenv init now accepts only --preset / -P for hosting presets. The older
    --host-preset and -H forms are rejected as unknown arguments.

    BREAKING CHANGE: Rename the flag in scripts and docs:

     - arkenv init --host-preset vercel
     - arkenv init -H vercel
     + arkenv init --preset vercel
     + arkenv init -P vercel
  • Remove package.json "arkenv" schema pointer from CLI discovery #1909 a98f6c0 @yamcodes

    arkenv init no longer writes a package.json "arkenv" field, and CLI
    schema discovery no longer reads one. Location is --schema / -s, then
    convention paths (env.ts, src/env.ts, …). Leftover "arkenv" keys are
    ignored.

    BREAKING CHANGE: If you relied on package.json "arkenv" (string or
    { "schema": "…" }) for arkenv check, put the path on --schema in your
    scripts instead:

     {
       "scripts": {
         "check": "arkenv check --schema config/env.ts"
       }
     }
  • Stop probing env/server.ts in CLI schema discovery #1925 53098ef @yamcodes

    Convention discovery no longer auto-resolves leftover split-layout filenames
    (env/server.ts, src/env/server.ts). Location remains --schema / -s,
    then flat convention paths (env.ts, src/env.ts, and related extensions).

    BREAKING CHANGE: If arkenv check previously found your schema only
    because env/server.ts (or src/env/server.ts) existed, point --schema
    at a module the CLI can load — typically the recipe's client schema, or add
    a flat env.ts / src/env.ts. Do not pass a server module that imports
    server-only; Jiti loads schemas in plain Node and that import throws
    outside the react-server condition.

     {
       "scripts": {
         "check": "arkenv check --schema env/client.ts"
       }
     }

Patch Changes

  • Stop writing pnpm onlyBuiltDependencies into package.json #1955 ae3039a @yamcodes

    When scaffolding with pnpm, ArkEnv now only updates pnpm-workspace.yaml with allowBuilds for approved native deps (such as esbuild). It no longer mutates package.json#pnpm.onlyBuiltDependencies, which pnpm 11+ ignores. The yaml allowBuilds path applies from pnpm 10.26.0 onward.

  • Fetch the example registry from the v1 branch #1903 e6c8f78 @yamcodes

    The CLI example registry URL pointed at the archived main (v0) line. It now loads examples/registry.json from v1.

@arkenv/[email protected]

Major Changes

  • Remove nested bag API and expose/shared aliases #1929 0d2f24b @yamcodes

    @arkenv/nextjs and @arkenv/nuxt no longer accept nested
    arkenv({ server, client, shared, runtimeEnv }). Flat
    arkenv(schema, { exposeToClient, runtimeEnv }) is the only call
    shape. Option aliases expose and shared are gone — use
    exposeToClient only. Static key extraction in @arkenv/build (and
    Next codegen) rejects nested schema source with the same migration
    error.

     import arkenv from "@arkenv/nextjs";
     
     export const env = arkenv(
       {
         DATABASE_URL: "string",
         NEXT_PUBLIC_API_URL: "string",
         NODE_ENV: "string",
       },
       {
         runtimeEnv: {
           NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
           NODE_ENV: process.env.NODE_ENV,
         },
       },
     );

    BREAKING CHANGE: Nested bags and expose / shared aliases were
    removed.

     - arkenv({ server: {…}, client: {…}, shared: {…}, runtimeEnv: {…} })
     - arkenv(schema, { expose: ["KEY"] })
     + arkenv(schema, { exposeToClient: ["KEY"], runtimeEnv: {…} })

@arkenv/[email protected]

Major Changes

  • Remove reserved safe from main-factory config #1924 ed09bb0 @yamcodes

    ArkEnvConfig and StandardEnvConfig no longer declare the reserved
    safe?: false field. Safe-mode parsing stays on the /safe subpaths.

     import arkenv from "@arkenv/core";
     import arkenvSafe from "@arkenv/core/safe";
     
     export const env = arkenv({
       PORT: "number.port = 3000",
     });
     
     const result = arkenvSafe(
       { PORT: "number.port" },
       { env: { PORT: "invalid" } },
     );

    @arkenv/standard mirrors the same shape via @arkenv/standard/safe.

    BREAKING CHANGE: Passing safe: false on the main arkenv() config
    is no longer accepted. Delete the property; use /safe for result-object
    parsing.

     - export const env = arkenv(schema, { safe: false });
     + export const env = arkenv(schema);

Patch Changes

  • Avoid Node-only process APIs in color detection #1939 7684644 @yamcodes

    ANSI color helpers no longer read process.versions or process.stdout as static member expressions, so Next.js edge instrumentation no longer flags @arkenv/core when env is imported from edge files.

  • Point StackBlitz README link at the v1 example #1905 f71bee1 @yamcodes

    The core package README StackBlitz badge now opens tree/v1/examples/stackblitz, matching the v1 @arkenv/core playground instead of the stale main path.

  • Sync the package README with the repo README #1949 2fd0f33 @yamcodes

    The published @arkenv/core README now matches the root project README
    (v1 imports, validator examples, RC callout). The outdated demo GIF that
    showed a v0-shaped import is gone.

@arkenv/[email protected]

Major Changes

  • Remove ArkEnvScript and globalThis.__arkenv_env__ #1930 46e140f @yamcodes

    <ArkEnvScript /> is no longer exported. Codegen runtimeEnv no longer
    reads globalThis.__arkenv_env__; client public values follow Next.js
    build-time inlining of process.env.NEXT_PUBLIC_*.

    BREAKING CHANGE: Delete any <ArkEnvScript /> usage from your root
    layout. Rebuild (or retag) images when public client values change. For
    runtime public-env injection without a rebuild, use a dedicated
    ecosystem tool such as next-runtime-env, or keep dynamic public config
    on the server and pass it as props. See the Next.js and Docker guide.

  • Remove nested bag API and expose/shared aliases #1929 0d2f24b @yamcodes

    @arkenv/nextjs and @arkenv/nuxt no longer accept nested
    arkenv({ server, client, shared, runtimeEnv }). Flat
    arkenv(schema, { exposeToClient, runtimeEnv }) is the only call
    shape. Option aliases expose and shared are gone — use
    exposeToClient only. Static key extraction in @arkenv/build (and
    Next codegen) rejects nested schema source with the same migration
    error.

     import arkenv from "@arkenv/nextjs";
     
     export const env = arkenv(
       {
         DATABASE_URL: "string",
         NEXT_PUBLIC_API_URL: "string",
         NODE_ENV: "string",
       },
       {
         runtimeEnv: {
           NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
           NODE_ENV: process.env.NODE_ENV,
         },
       },
     );

    BREAKING CHANGE: Nested bags and expose / shared aliases were
    removed.

     - arkenv({ server: {…}, client: {…}, shared: {…}, runtimeEnv: {…} })
     - arkenv(schema, { expose: ["KEY"] })
     + arkenv(schema, { exposeToClient: ["KEY"], runtimeEnv: {…} })

Patch Changes

  • Widen the React peer dependency range #1877 c18c102 @yamcodes

    Allow @arkenv/nextjs to work with React 18.2.0 and later in the React 18 line,
    as well as every React 19 release, instead of requiring React 19.2.5. Install it
    alongside a supported React version, such as pnpm add @arkenv/nextjs react@^18.2.0.

Updated 3 dependencies

7684644 0d2f24b ed09bb0 f71bee1 2fd0f33

## @arkenv/[email protected]

Major Changes

  • Remove nested bag API and expose/shared aliases #1929 0d2f24b @yamcodes

    @arkenv/nextjs and @arkenv/nuxt no longer accept nested
    arkenv({ server, client, shared, runtimeEnv }). Flat
    arkenv(schema, { exposeToClient, runtimeEnv }) is the only call
    shape. Option aliases expose and shared are gone — use
    exposeToClient only. Static key extraction in @arkenv/build (and
    Next codegen) rejects nested schema source with the same migration
    error.

     import arkenv from "@arkenv/nextjs";
     
     export const env = arkenv(
       {
         DATABASE_URL: "string",
         NEXT_PUBLIC_API_URL: "string",
         NODE_ENV: "string",
       },
       {
         runtimeEnv: {
           NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
           NODE_ENV: process.env.NODE_ENV,
         },
       },
     );

    BREAKING CHANGE: Nested bags and expose / shared aliases were
    removed.

     - arkenv({ server: {…}, client: {…}, shared: {…}, runtimeEnv: {…} })
     - arkenv(schema, { expose: ["KEY"] })
     + arkenv(schema, { exposeToClient: ["KEY"], runtimeEnv: {…} })

Patch Changes

Updated 3 dependencies

7684644 0d2f24b ed09bb0 f71bee1 2fd0f33

## @arkenv/[email protected]

Major Changes

  • Remove reserved safe from main-factory config #1924 ed09bb0 @yamcodes

    ArkEnvConfig and StandardEnvConfig no longer declare the reserved
    safe?: false field. Safe-mode parsing stays on the /safe subpaths.

     import arkenv from "@arkenv/core";
     import arkenvSafe from "@arkenv/core/safe";
     
     export const env = arkenv({
       PORT: "number.port = 3000",
     });
     
     const result = arkenvSafe(
       { PORT: "number.port" },
       { env: { PORT: "invalid" } },
     );

    @arkenv/standard mirrors the same shape via @arkenv/standard/safe.

    BREAKING CHANGE: Passing safe: false on the main arkenv() config
    is no longer accepted. Delete the property; use /safe for result-object
    parsing.

     - export const env = arkenv(schema, { safe: false });
     + export const env = arkenv(schema);

Patch Changes

  • Avoid Node-only process APIs in color detection #1939 7684644 @yamcodes

    ANSI color helpers no longer read process.versions or process.stdout as static member expressions, so Next.js edge instrumentation no longer flags @arkenv/core when env is imported from edge files.

@arkenv/[email protected]

Patch Changes

Updated 3 dependencies

7684644 0d2f24b ed09bb0 f71bee1 2fd0f33

## @arkenv/[email protected]

Patch Changes

Updated 3 dependencies

7684644 0d2f24b ed09bb0 f71bee1 2fd0f33

## @arkenv/[email protected]

Patch Changes

Updated 3 dependencies

7684644 0d2f24b ed09bb0 f71bee1 2fd0f33

@github-actions github-actions Bot added docs Adds or changes documentation, or acts as documentation in and of itself @arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv labels Sep 20, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@arkenv/agent-plugin

npm i https://pkg.pr.new/@arkenv/agent-plugin@1885

arkenv

npm i https://pkg.pr.new/arkenv@1885

@arkenv/build

npm i https://pkg.pr.new/@arkenv/build@1885

@arkenv/bun-plugin

npm i https://pkg.pr.new/@arkenv/bun-plugin@1885

@arkenv/core

npm i https://pkg.pr.new/@arkenv/core@1885

@arkenv/fumadocs-ui

npm i https://pkg.pr.new/@arkenv/fumadocs-ui@1885

@arkenv/nextjs

npm i https://pkg.pr.new/@arkenv/nextjs@1885

@arkenv/nuxt

npm i https://pkg.pr.new/@arkenv/nuxt@1885

@arkenv/rsbuild-plugin

npm i https://pkg.pr.new/@arkenv/rsbuild-plugin@1885

@arkenv/standard

npm i https://pkg.pr.new/@arkenv/standard@1885

@arkenv/tanstack-addon

npm i https://pkg.pr.new/@arkenv/tanstack-addon@1885

@arkenv/vite-plugin

npm i https://pkg.pr.new/@arkenv/vite-plugin@1885

commit: ac34dc4

@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch 8 times, most recently from 2166d1d to 5d415f6 Compare September 20, 2026 11:23
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch 9 times, most recently from e7e909e to 56bc24d Compare September 20, 2026 17:13
@cursor cursor Bot mentioned this pull request Sep 20, 2026
3 of 4 tasks
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch from 56bc24d to e397300 Compare September 20, 2026 19:22
@github-actions github-actions Bot added the arkenv Changes to the `arkenv` npm package. label Sep 20, 2026
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch 3 times, most recently from ada16ac to c47cd9b Compare September 21, 2026 05:44
@github-actions github-actions Bot added the example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) label Sep 21, 2026
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch from c1b2baf to 737e7a1 Compare September 21, 2026 06:17
@github-actions github-actions Bot removed the example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) label Sep 21, 2026
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch 8 times, most recently from d0bbe3f to eec2341 Compare September 21, 2026 11:03
@github-actions github-actions Bot added @arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv @arkenv/bun-plugin Issues or Pull Requests involving the Bun plugin for ArkEnv @arkenv/nuxt Issues or Pull Requests involving the Nuxt integration for ArkEnv labels Sep 21, 2026
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch 10 times, most recently from 3b7722e to e3d56c9 Compare September 22, 2026 05:54
yamcodes added a commit that referenced this pull request Sep 22, 2026
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Summary

`test-e2e` on Version Packages (#1885) failed because Chromium focused
the outro **Read the docs** link without navigating to `/docs` (initial
attempt + 2 retries). Firefox passed; the release PR only bumps
versions, so this is unrelated to that diff.

Trace evidence: Playwright resolved and clicked `<a href="/docs"
class="home-aurora__install-prompt">`, the link became active/focused,
but no `/docs` request left the browser. That matches a ScrollReveal
race: mousedown focuses a transforming link, mouseup misses, default
navigation never runs.

## Fix

- Homepage CSS: `pointer-events: none` on `.reveal-hidden` so Playwright
waits until the reveal is hit-testable (cannot focus mid-transition)
- Test: scope to `.home-aurora__outro`, assert `href`, then click + URL
match

(Dropped a no-op `use.reducedMotion` after review — Playwright 1.59
ignores that top-level option.)

## Test plan

- [x] Homepage suite (chromium) ×5 with only the CSS/test fix → 20/20
passed
- [x] Manual click script: outro CTA → `/docs`

A plain **rerun of #1885** may still pass (same branch succeeded
earlier), but this hardens the flake so it stops blocking RC cuts.

[Outro Read the docs before
click](https://cursor.com/agents/bc-aafce471-823d-4dc6-8f83-c204021e6f74/artifacts?path=%2Fopt%2Fcursor%2Fartifacts%2Fhomepage-outro-before-click.png)
[Docs after
click](https://cursor.com/agents/bc-aafce471-823d-4dc6-8f83-c204021e6f74/artifacts?path=%2Fopt%2Fcursor%2Fartifacts%2Fdocs-after-click.png)


<sub>To show artifacts inline, <a
href="https://cursor.com/dashboard/cloud-agents#my-pull-requests">enable</a>
in settings.</sub>
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-aafce471-823d-4dc6-8f83-c204021e6f74?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-aafce471-823d-4dc6-8f83-c204021e6f74&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <[email protected]>
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch 3 times, most recently from c60a019 to ac34dc4 Compare September 23, 2026 03:57
@arkenv-bot
arkenv-bot Bot force-pushed the changeset-release/v1 branch from ac34dc4 to 1610f89 Compare September 23, 2026 15:36
@yamcodes
yamcodes merged commit e7306b4 into v1 Sep 23, 2026
17 checks passed
@yamcodes
yamcodes deleted the changeset-release/v1 branch September 23, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@arkenv/bun-plugin Issues or Pull Requests involving the Bun plugin for ArkEnv @arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv @arkenv/nuxt Issues or Pull Requests involving the Nuxt integration for ArkEnv @arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv arkenv Changes to the `arkenv` npm package. docs Adds or changes documentation, or acts as documentation in and of itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant