Repository navigation
Sync @arkenv/core README with the root README - #1949
Conversation
Point the repo README at packages/core/README.md so npm and GitHub stay in sync, drop the outdated v0-shaped demo GIF/PNG, and add a patch changeset for the published package docs. Co-authored-by: Yam Borodetsky <[email protected]>
🦋 Changeset detectedLatest commit: b5f70a5 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 |
With the root README symlinked to packages/core/README.md, only edit that real file so contributor syncs cannot replace the symlink. Co-authored-by: Yam Borodetsky <[email protected]>
@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 rough edge worth a look, plus one note on the new mechanism.
Reviewed changes
- Canonical README moves to
packages/core—packages/core/README.mdnow carries the root hero (v1 icon, RC callout, Frameworks link, First-class integrations) and the ArkType/Zod/Valibot example blocks, and the bundlephobia badge is corrected from the CLI (arkenv) to@arkenv/core. - Root
README.mdbecomes a symlink —README.mdis now git mode120000pointing atpackages/core/README.md, so the GitHub landing page and the npm page share one file. - Contributors config retargeted —
.all-contributorsrcfileslists onlypackages/core/README.md, soall-contributors generatecan't overwrite the symlink. - Demo assets deleted —
apps/www/public/assets/demo.gifanddemo.pngremoved; no source references remain. - Changeset added —
.changeset/sync-core-readme.md(@arkenv/core: patch) so the npm README refreshes on the next release.
ℹ️ Deleting the demo GIF 404s the image on already-published npm READMEs
apps/www/public/assets/demo.gif is served at https://arkenv.js.org/assets/demo.gif, and the README inside the currently-published @arkenv/[email protected] tarball (which is the latest and rc dist-tag) still embeds that exact URL. Because arkenv.js.org is the production deployment of apps/www, the next www deploy makes the image 404 on the npm page for rc.1 and every older core pre-release — even though this branch itself no longer references it. The PR's "no remaining demo.gif references" check only searched the working tree, not immutable published artifacts.
Technical details
# Published READMEs still point at the deleted asset
## Affected sites
- `apps/www/public/assets/demo.gif` (deleted) — served at `https://arkenv.js.org/assets/demo.gif`
- npm `@arkenv/[email protected]` README line 36 — `<img alt="ArkEnv Demo" src="https://arkenv.js.org/assets/demo.gif" />`; this version is the current `latest`/`rc`
- `main` branch root `README.md` (v0 archive) — same `<img>` reference
- Older `@arkenv/core` pre-releases on npm likewise; `@arkenv/standard` and `arkenv` do not reference it
## Required outcome
- Decide whether a permanent broken image on immutable npm version pages is acceptable, or keep the asset (or a placeholder) so existing READMEs keep rendering.
## Open questions for the human
- Is the 404 acceptable given the demo copy was v0-shaped and misleading anyway?ℹ️ Root README rendering now relies on GitHub's undocumented symlink behavior
Making the repo landing page a symlink works today — GitHub resolves in-repo relative symlinked READMEs and renders the target — but that behavior is community-documented only and absent from GitHub's official README docs. If it ever regresses, README.md renders as the literal text packages/core/README.md, i.e. the project's front door breaks while npm stays correct. No action needed; flagging it because this is the load-bearing assumption behind the whole PR.
Technical details
# Symlinked README depends on non-contractual GitHub behavior
## Affected sites
- `README.md` (mode `120000`) → `packages/core/README.md`
## Required outcome
- None for now. If desired, a CI smoke check that fetches the rendered repo README (or a periodic manual check) would catch a silent regression.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Addressing the Pullfrog review findings: Demo GIF 404 on published npm READMEs — acceptedKeeping That trade-off is intentional: the GIF shows a v0-shaped import, which is more misleading than a broken image. Restoring the asset (or a lookalike placeholder) would keep teaching the wrong API on Symlinked root README — acknowledged, no changeAgreed this leans on GitHub resolving in-repo README symlinks. Leaving it as-is for now (npm still has the real file under |
|
@pullfrog review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the README-sync PR: packages/core/README.md becomes the canonical README, the repo-root README.md becomes a symlink to it, the stale demo assets are deleted, and contributor generation is retargeted.
- Canonical
@arkenv/coreREADME — the package README now carries the v1 imports, the ArkType/Zod/Valibot examples, the RC callout, and the@arkenv/corebundle badge. The packages and exports it references (@arkenv/standard,@arkenv/standard/valibot) all exist on this branch, and the icon URL resolves. - Root README symlink —
README.mdis now a mode-120000symlink topackages/core/README.md. Verified via the API that GitHub'sreadmeendpoint resolves it and returns the 8272-byte target, so the repository homepage still renders the content. - Demo assets removed —
apps/www/public/assets/demo.gifanddemo.pngare deleted, with no remaining tracked references. - Contributor sync retargeted —
.all-contributorsrcnow lists onlypackages/core/README.md, whoseALL-CONTRIBUTORS-LISTmarkers are present, sosync-contributorshas a single valid target. - Changeset — patch changeset for
@arkenv/core(in the@arkenv/core+@arkenv/standardfixed group).
ℹ️ GitHub edits the symlink, not the target
GitHub's blob view for README.md shows the symlink pointer — a 1-line, 23-byte file whose body is the string packages/core/README.md — and exposes an Edit action on that pointer. A contributor who opens the README via its /blob/.../README.md URL and edits it will overwrite the symlink with a copy of the markdown, silently undoing the dedup this PR introduces.
Technical details
# Symlinked root README is editable as a pointer
## Affected sites
- `README.md:1` — symlink to `packages/core/README.md`; GitHub's `/blob/<ref>/README.md` page renders the pointer text, not the target content, and offers an edit action on it.
## Required outcome
- Preserve the repo-home rendering (already working) while reducing the chance that a contributor replaces the symlink with a copy of the README and reintroduces drift.
## Suggested approach (optional)
- Add a one-line note to `docs/CONTRIBUTING.md` (or the top of `packages/core/README.md`) stating that the root `README.md` is a symlink and README edits belong in `packages/core/README.md`.
## Verification notes
- `GET /repos/yamcodes/arkenv/readme?ref=cursor/sync-core-readme-0729` → `{path: "README.md", size: 8272}`, i.e. the symlink is followed for the homepage.
- `GET /repos/yamcodes/arkenv/contents/README.md?ref=...` → `size: 23`, the pointer blob.
- `scripts/unescape-mdx-markers.js` and `scripts/normalize-mdx-code-indent.js` walk with `Dirent.isFile()`, which is false for symlinks, so the root README is skipped by `nub run fix` rather than rewritten.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Call out the root README symlink in CONTRIBUTING so GitHub blob Edit does not silently replace it with a copy and reintroduce drift. Co-authored-by: Yam Borodetsky <[email protected]>
|
Addressed the symlink-edit note: Landed in 1e563a2. |
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
packages/core/README.mdthe canonical README (matches the previous root content: v1 imports, ArkType/Zod/Valibot examples, RC callout,@arkenv/corebundle size badge).README.mdinto a symlink to that file so GitHub and npm cannot drift again. npm cannot pack a README that symlinks out of the package, so the real file has to live underpackages/core.apps/www/public/assets/demo.gifanddemo.png— the GIF was the only remaining consumer and showed a v0-shaped import. Broken images on already-published npm READMEs are accepted (misleading v0 demo is worse)..all-contributorsrcatpackages/core/README.mdonly so contributor syncs do not replace the root symlink.docs/CONTRIBUTING.mdthat README edits belong inpackages/core/README.md(GitHub blob Edit on the root path overwrites the symlink).Test plan
npm packfrompackages/coreincludes the README with@arkenv/core/@arkenv/standardimports and nodemo.gifREADME.mdresolves topackages/core/README.mddemo.gif/demo.pngreferences