Skip to content

Fix playground Node engine warnings and Next.js edge process flags - #1939

Merged
yamcodes merged 4 commits into
v1from
cursor/quiet-node-warnings
Sep 21, 2026
Merged

yamcodes merged 4 commits into
v1from
cursor/quiet-node-warnings

Conversation

@yamcodes

Copy link
Copy Markdown
Owner

Summary

  • Widen js / node playground (and synced basic examples) engines.node from exact "24" to >=22, so pnpm install on Node 22 stops repeating Unsupported engine warnings. SolidStart stays >=24.
  • Read process version/stdout through Reflect.get in color helpers so Next.js edge instrumentation no longer flags @arkenv/core when env is imported from sentry.edge.config.ts.

Test plan

  • pnpm install on Node 22.14: no js/node engine spam (SolidStart >=24 warning is expected)
  • nubx vitest run --project @repo/log --project @repo/utils
  • Restart nub run www and confirm the Edge process.stdout / process.versions warnings are gone
  • tsdown still warns on Node < 22.18 until PATH Node is upgraded (out of scope)

Made with Cursor

@yamcodes yamcodes added bug Something isn't working example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) tests This issue or PR is about adding, removing or changing tests playground Issues or Pull Requests concerning a playground. (Found in the `apps/playgrounds/` directory) labels Sep 21, 2026
@changeset-bot

changeset-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9fcdb5d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@arkenv/core Patch
@arkenv/standard Patch

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

@github-actions github-actions Bot added the docs Adds or changes documentation, or acts as documentation in and of itself label Sep 21, 2026
@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@arkenv/agent-plugin

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

arkenv

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

@arkenv/build

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

@arkenv/bun-plugin

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

@arkenv/core

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

@arkenv/fumadocs-ui

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

@arkenv/nextjs

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

@arkenv/nuxt

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

@arkenv/rsbuild-plugin

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

@arkenv/standard

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

@arkenv/tanstack-addon

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

@arkenv/vite-plugin

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

commit: 9fcdb5d

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one doc inaccuracy inline.

Reviewed changes

  • Playground/example Node engines widened — engines.node moves from exact "24" to ">=22" in apps/playgrounds/js, apps/playgrounds/node, examples/basic, and examples/basic-js, silencing Unsupported-engine warnings under Node 22. SolidStart stays ">=24".
  • Edge-safe process access — @repo/log and @repo/utils color helpers now resolve process through Reflect.get(globalThis, "process") and read .versions / .stdout dynamically, so no static process.versions / process.stdout member expression reaches the edge bundle.
  • Regression tests — both packages add source-scan tests asserting process.versions / process.stdout no 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment thread AGENTS.md Resolved
These standalone examples were missed in the playground engine pass, so AGENTS.md overclaimed the range.

Co-authored-by: Cursor <[email protected]>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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-valibot engine ranges widened — examples/with-zod/package.json:24 and examples/with-valibot/package.json:25 now declare "node": ">=22", matching examples/basic and the other examples, so the AGENTS.md blanket "Playground/example engines.node is >=22" claim is now accurate. SolidStart stays ">=24".

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes
yamcodes merged commit 477ab31 into v1 Sep 21, 2026
21 checks passed
@yamcodes
yamcodes deleted the cursor/quiet-node-warnings branch September 21, 2026 11:57
@arkenv-bot arkenv-bot Bot mentioned this pull request Sep 21, 2026
renovate Bot added a commit that referenced this pull request Oct 9, 2026
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)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fcore/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fcore/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|
| [@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)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fnextjs/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fnextjs/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|
| [@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)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fstandard/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fstandard/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|
| [@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)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fvite-plugin/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fvite-plugin/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|

---

### Release Notes

<details>
<summary>yamcodes/arkenv (@&#8203;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)
[@&#8203;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)
[@&#8203;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)
[@&#8203;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)
[@&#8203;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)
[@&#8203;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working docs Adds or changes documentation, or acts as documentation in and of itself example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) playground Issues or Pull Requests concerning a playground. (Found in the `apps/playgrounds/` directory) tests This issue or PR is about adding, removing or changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant