Skip to content

fix(examples): migrate StackBlitz + stale examples to v1 RC - #1905

Merged
yamcodes merged 5 commits into
v1from
cursor/examples-v1-rc-527b
Sep 21, 2026
Merged

yamcodes merged 5 commits into
v1from
cursor/examples-v1-rc-527b

Conversation

@yamcodes

@yamcodes yamcodes commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Playgrounds were already on @arkenv/core / workspace *. Several standalone examples were still on v0 or stale alpha pins.

  • examples/stackblitz: switched from import arkenv from "arkenv" (^0.11.0) to import arkenv from "@arkenv/core" (1.0.0-rc.1) with modern string.host / number.port schema; runner is tsx (StackBlitz-compatible ESM)
  • with-zod / with-valibot: @arkenv/standard ^1.0.0-alpha.2 → 1.0.0-rc.1
  • with-nextjs-zod / with-vite-react-zod: alpha plugin/standard pins → 1.0.0-rc.1, plus legacy-peer-deps=true .npmrc
  • Site + READMEs: StackBlitz / example links use tree/v1/...; merged latest v1 so community.mdx contribution links match (fix: point Playground and example links at v1 #1903)

Verification

Ran stackblitz / with-zod / with-valibot against published 1.0.0-rc.1. Pullfrog re-review approved after the tsx fix; community.mdx note closed via merge from v1.

Open in Web Open in Cursor 

cursoragent and others added 3 commits September 20, 2026 19:46
Replace the v0 `arkenv` ^0.11 import with `@arkenv/[email protected]`
and modern host/port schema helpers so the StackBlitz playground
matches the v1 API.

Co-authored-by: Yam Borodetsky <[email protected]>
Bump `@arkenv/standard`, `@arkenv/nextjs`, and `@arkenv/vite-plugin`
off stale alpha pins, and add legacy-peer-deps `.npmrc` files for the
framework Zod examples (same pattern as synced npm examples).

Co-authored-by: Yam Borodetsky <[email protected]>
Nav and `@arkenv/core` README badges now open `tree/v1/examples/stackblitz`
instead of the stale `main` path.

Co-authored-by: Yam Borodetsky <[email protected]>
@changeset-bot

changeset-bot Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5603363

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

@yamcodes yamcodes added dependencies Pull requests that update a dependency file example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) maintenance Routine tasks, tooling, and syncs www Improvements or additions to arkenv.js.org labels Sep 20, 2026 — with Cursor
@github-actions github-actions Bot added the docs Adds or changes documentation, or acts as documentation in and of itself label 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@1905

arkenv

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

@arkenv/build

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

@arkenv/bun-plugin

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

@arkenv/core

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

@arkenv/fumadocs-ui

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

@arkenv/nextjs

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

@arkenv/nuxt

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

@arkenv/rsbuild-plugin

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

@arkenv/standard

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

@arkenv/tanstack-addon

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

@arkenv/vite-plugin

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

commit: a19187d

@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.

Caution

Adding "type": "module" to examples/stackblitz breaks the very playground this PR tries to fix: npm run dev (the StackBlitz startCommand) and npm run start both abort with Error: Must use import to load ES Module: .../index.ts. Reproduced locally after npm install.

Reviewed changes

  • StackBlitz demo on @arkenv/core RC — index.ts switches to @arkenv/core and the v1 string.host / number.port schema; package.json renames the package, bumps deps, and adds "type": "module"; README reworded.
  • Stale alpha pins → 1.0.0-rc.1 — with-zod, with-valibot, with-nextjs-zod, with-vite-react-zod repinned exactly (plus .npmrc legacy-peer-deps=true on the two zod framework examples, matching the other examples).
  • v1 links — packages/core/README.md and apps/www/lib/stackblitz.ts now open tree/v1/examples/stackblitz; changeset bumps @arkenv/core patch since the README ships with the package.

ℹ️ examples/README.md links still point at main

The example index links every entry at tree/main/examples/..., so readers following it from the v1 branch land on the v0 archive rather than the v1 examples being migrated here. Not introduced by this diff, but worth folding into the same link-freshness pass if the intent is for all example links to track v1.

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

Comment thread examples/stackblitz/package.json Resolved
ts-node-dev cannot load type:module entries, so StackBlitz's
npm run dev never started. Switch start/dev to tsx, drop dotenv
for --env-file, and point examples/README links at the v1 tree.

Co-authored-by: Yam Borodetsky <[email protected]>
@yamcodes

Copy link
Copy Markdown
Owner Author

Addressed the Pullfrog CAUTION + the README link note in b8ab8d8:

  • StackBlitz runner: start/dev now use tsx so "type": "module" + @arkenv/core ESM works; npm run dev verified locally.
  • examples/README.md: living example links retargeted tree/main/... → tree/v1/... (same intent as fix: point Playground and example links at v1 #1903).

@yamcodes

Copy link
Copy Markdown
Owner Author

@pullfrog review

@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

Re-review after b8ab8d81 (fix(examples): run StackBlitz demo with tsx), which resolves both findings from the prior pullfrog review — the ts-node-dev + "type": "module" break and the stale examples/README.md links.

  • StackBlitz runner switched to tsx — start/dev now run tsx --env-file=.env / tsx watch --env-file=.env, ts-node-dev + dotenv are dropped, and "type": "module" is retained; the README note is updated to tsx. Verified locally that both scripts load .env and print the validated object.
  • examples/README.md links moved to v1 — the example index now points at tree/v1/examples/... instead of the v0 main archive.
  • Regenerated StackBlitz lockfile — adds the tsx/esbuild tree and drops ts-node-dev; the root block still pins @arkenv/core 1.0.0-rc.1 (integrity matches the registry).
  • Unchanged since the prior review — RC pins for with-zod / with-valibot / with-nextjs-zod / with-vite-react-zod (with the two new .npmrc files), the tree/v1 StackBlitz links in apps/www/lib/stackblitz.ts and packages/core/README.md, and the @arkenv/core patch changeset.

ℹ️ Stale main links remain in the v1 community docs

apps/www/content/docs/community.mdx still points its Documentation / Examples / Code links at tree/main and blob/main, so the Examples link sends v1 readers to the v0 archive. This file is outside the PR's scope, so flagging it only to close out the link-freshness pass this PR started — not a blocker.

Technical details
# Community docs still link to `main`

## Affected sites
- `apps/www/content/docs/community.mdx:15` — Documentation → `tree/main/apps/www/content/docs`
- `apps/www/content/docs/community.mdx:17` — Examples → `tree/main/examples`
- `apps/www/content/docs/community.mdx:19` — Code → `blob/main/docs/CONTRIBUTING.md`

## Open questions for the human
- Should the v1 community page point at `v1` (or the site's own `/docs` routes) in a follow-up, or is `main` intentional for contribution entry points?

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

Bring in #1903 community.mdx v1 pointers (addresses Pullfrog note on
#1905) plus subsequent www commits on v1.

Co-authored-by: Yam Borodetsky <[email protected]>
@yamcodes

Copy link
Copy Markdown
Owner Author

Addressed the Pullfrog ℹ️ note about stale main links in apps/www/content/docs/community.mdx by merging latest v1 (includes #1903 link-freshness). Documentation / Examples / Code / Acknowledgements now point at tree/v1 / blob/v1.

@github-actions github-actions Bot removed the www Improvements or additions to arkenv.js.org label Sep 21, 2026
@yamcodes
yamcodes merged commit f71bee1 into v1 Sep 21, 2026
17 of 19 checks passed
@yamcodes
yamcodes deleted the cursor/examples-v1-rc-527b branch September 21, 2026 05:44
@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

dependencies Pull requests that update a dependency file 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) maintenance Routine tasks, tooling, and syncs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants