Repository navigation
Fix playground Node engine warnings and Next.js edge process flags - #1939
Conversation
🦋 Changeset detectedLatest commit: 9fcdb5d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
@arkenv/agent-plugin
arkenv
@arkenv/build
@arkenv/bun-plugin
@arkenv/core
@arkenv/fumadocs-ui
@arkenv/nextjs
@arkenv/nuxt
@arkenv/rsbuild-plugin
@arkenv/standard
@arkenv/tanstack-addon
@arkenv/vite-plugin
commit: |
There was a problem hiding this comment.
ℹ️ No critical issues — one doc inaccuracy inline.
Reviewed changes
- Playground/example Node engines widened —
engines.nodemoves from exact"24"to">=22"inapps/playgrounds/js,apps/playgrounds/node,examples/basic, andexamples/basic-js, silencing Unsupported-engine warnings under Node 22. SolidStart stays">=24". - Edge-safe
processaccess —@repo/logand@repo/utilscolor helpers now resolveprocessthroughReflect.get(globalThis, "process")and read.versions/.stdoutdynamically, so no staticprocess.versions/process.stdoutmember expression reaches the edge bundle. - Regression tests — both packages add source-scan tests asserting
process.versions/process.stdoutno longer appear in the two source files, and the changeset patches@arkenv/core/@arkenv/standard. - AGENTS.md — the Node caveat is rewritten to describe the new engine ranges.
Verified the edge fix against Next.js 16.2.6: both the webpack (middleware-plugin) and Turbopack/SWC detectors key on AST member chains rooted at the global process identifier (and skip process.env), so the dynamic access genuinely evades them; Next's edge process polyfill returns undefined for the non-function versions / stdout keys, so the unguarded reads cannot throw.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
These standalone examples were missed in the playground engine pass, so AGENTS.md overclaimed the range. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Since the prior pullfrog review, one commit landed and it resolves the only outstanding finding: engines.node was widened for the two examples that still pinned Node 24.
with-zod/with-valibotengine ranges widened —examples/with-zod/package.json:24andexamples/with-valibot/package.json:25now declare"node": ">=22", matchingexamples/basicand the other examples, so the AGENTS.md blanket "Playground/exampleengines.nodeis>=22" claim is now accurate. SolidStart stays">=24".
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@arkenv/core](https://arkenv.js.org) ([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1` → `1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fcore/1.0.0-rc.1/1.0.0-rc.4) |  |  | | [@arkenv/nextjs](https://arkenv.js.org) ([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1` → `1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fnextjs/1.0.0-rc.1/1.0.0-rc.4) |  |  | | [@arkenv/standard](https://arkenv.js.org) ([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1` → `1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fstandard/1.0.0-rc.1/1.0.0-rc.4) |  |  | | [@arkenv/vite-plugin](https://arkenv.js.org) ([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1` → `1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fvite-plugin/1.0.0-rc.1/1.0.0-rc.4) |  |  | --- ### Release Notes <details> <summary>yamcodes/arkenv (@​arkenv/core)</summary> ### [`v1.0.0-rc.4`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/core%401.0.0-rc.4) [Compare Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected]) No changes in this release. ### [`v1.0.0-rc.3`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/core%401.0.0-rc.3) [Compare Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected]) ##### Patch Changes - #### Restore keyword suggestions inside inline schemas *[`#1975`](https://redirect.github.com/yamcodes/arkenv/pull/1975) [`089ef43`](https://redirect.github.com/yamcodes/arkenv/commit/089ef436d3e007fa636e3948734d3911b1065758) [@​yamcodes](https://redirect.github.com/yamcodes)* A partial keyword in an inline schema string suggests ArkType keywords again. `arkenv({ PORT: "n" })` offers `never`, `null`, and `number`. The same suggestions are back on `arkenv` from `@arkenv/core/safe`. ```ts import arkenv from "@arkenv/core"; export const env = arkenv({ PORT: "number.port = 3000", }); ``` ### [`v1.0.0-rc.2`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/core%401.0.0-rc.2) [Compare Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected]) ##### Major Changes - #### Remove reserved `safe` from main-factory config *[`#1924`](https://redirect.github.com/yamcodes/arkenv/pull/1924) [`ed09bb0`](https://redirect.github.com/yamcodes/arkenv/commit/ed09bb05c27b5409a49430c0f2897b28fe26484d) [@​yamcodes](https://redirect.github.com/yamcodes)* `ArkEnvConfig` and `StandardEnvConfig` no longer declare the reserved `safe?: false` field. Safe-mode parsing stays on the `/safe` subpaths. ```ts 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. ```diff - export const env = arkenv(schema, { safe: false }); + export const env = arkenv(schema); ``` ##### Patch Changes - #### Avoid Node-only `process` APIs in color detection *[`#1939`](https://redirect.github.com/yamcodes/arkenv/pull/1939) [`7684644`](https://redirect.github.com/yamcodes/arkenv/commit/76846449b8a634e24b59a6126958b2826cf975ef) [@​yamcodes](https://redirect.github.com/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`](https://redirect.github.com/yamcodes/arkenv/pull/1905) [`f71bee1`](https://redirect.github.com/yamcodes/arkenv/commit/f71bee184ed2f2abfbc69a514a551310d14b3ca5) [@​yamcodes](https://redirect.github.com/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`](https://redirect.github.com/yamcodes/arkenv/pull/1949) [`2fd0f33`](https://redirect.github.com/yamcodes/arkenv/commit/2fd0f335835f3c0918da7b547b6a43fed3dfa3d7) [@​yamcodes](https://redirect.github.com/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. </details> --- ### Configuration 📅 **Schedule**: (in timezone Asia/Almaty) - Branch creation - "on friday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/yamcodes/arkenv). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoidjEiLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

Summary
js/nodeplayground (and synced basic examples)engines.nodefrom exact"24"to>=22, sopnpm installon Node 22 stops repeating Unsupported engine warnings. SolidStart stays>=24.Reflect.getin color helpers so Next.js edge instrumentation no longer flags@arkenv/corewhenenvis imported fromsentry.edge.config.ts.Test plan
pnpm installon Node 22.14: no js/node engine spam (SolidStart>=24warning is expected)nubx vitest run --project @repo/log --project @repo/utilsnub run wwwand confirm the Edgeprocess.stdout/process.versionswarnings are goneMade with Cursor