Repository navigation
Conversation
🦋 Changeset detectedLatest commit: e1d22b9 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
@arkenv/build
@arkenv/bun-plugin
@arkenv/cli
@arkenv/fumadocs-ui
@arkenv/nextjs
@arkenv/nuxt
@arkenv/vite-plugin
commit: |
📦 Bundle Size Report✅ All size limits passed! |
There was a problem hiding this comment.
ℹ️ Minor suggestions only — the dead-pipeline removal is clean, well-tested, and matches the issue's intent. A few small cleanups and scope/accuracy notes inline and below.
Reviewed changes — fix: remove CLI ambient .d.ts append for Vite/Bun, single commit 54c48f64 against dev.
- Dead pipeline removal —
safeAppend(adapters/injection.ts+ its test) and theviteTypesTemplate/bunTypesTemplatetemplates (templates/types.ts) are deleted, along with theadapters/index.tsre-export; no references remain anywhere. - Scaffold option cleanup —
envDtsHandling,installTypeDefinitions, andhasTypeFileAtPathare removed fromProjectOptions, the wizard, the prompt steps,PromptPort, andInitUseCase. - Planner / executor — the "Type Definitions" planning section is dropped,
"append"is removed fromfiles[].action, the executor's append branch and "types" file reporting are gone, andWorkspacePort.safeAppend/NodeWorkspace.safeAppendare deleted. - Next-steps copy — Vite/Bun users are now directed to
import { env } from "./env"instead of nativeimport.meta.env/process.envaccess, matching the genericnuxt/vanilla treatment. - Tests + changeset — planner tests assert no ambient files are planned, a new CLI smoke test verifies end-to-end behavior, and a
@arkenv/clipatch changeset is added. - Drive-by —
@arkenv/nuxt's peer dependency is widened; see the scope note below.
ℹ️ Leftover vite-env.d.ts / bun-env.d.ts probe in init.ts
The PR removes the ambient-dts path end-to-end, but packages/cli/src/cli/commands/init.ts:408-420 still computes typeFileName for vite/bun-fullstack and pushes the type-file path into existingFiles. No planner branch consults those entries anymore (only the shared/client/server schema paths, the env schema, .env, .env.example, and .gitignore are read from existingFiles), so this is now dead code that survives the removal. It sits outside any diff hunk, so I can't anchor it inline.
Technical details
# Remove leftover type-file probe
## Affected sites
- packages/cli/src/cli/commands/init.ts:408 — `typeFileName` branch for `vite` / `bun-fullstack`
- packages/cli/src/cli/commands/init.ts:415 — `if (typeFileName)` block pushing the path into `existingFiles`
## Required outcome
- `collectExistingProject` no longer probes for `vite-env.d.ts` / `bun-env.d.ts`, since nothing plans against them.
## Suggested approach
- Delete the `typeFileName` block (init.ts:408-420).ℹ️ Unrelated @arkenv/nuxt peer-dependency widening
packages/nuxt/package.json widens the nuxt peer range from "^3.21.7 ^3.21.7" to "^3.0.0 || ^4.0.0-0", which is unrelated to the ambient-dts removal. The old range is functionally ^3.21.7 (space-separated ranges intersect), so this is not a syntax cleanup — it's a real release-semantics claim that @arkenv/nuxt supports Nuxt 3.0+ and Nuxt 4 (including pre-releases), with no testing, no changeset, and no mention in the PR body or commit. If intentional, it deserves its own changeset (@arkenv/nuxt); if accidental, splitting it out keeps this PR's release narration accurate.
Technical details
# Split out or justify the @arkenv/nuxt peer widening
## Affected sites
- packages/nuxt/package.json:32 — `peerDependencies.nuxt` → `"^3.0.0 || ^4.0.0-0"`
## Required outcome
- The peer widening lands with a matching changeset and a stated reason, or is excluded from this PR.
## Open questions for the human
- Is `@arkenv/nuxt` actually verified against Nuxt < 3.21 and Nuxt 4.x?
- Is there a companion change that removes the plugin ambient types (which would make the changeset's "no longer exist" framing accurate on `dev`)?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Addressed review feedback:
|
There was a problem hiding this comment.
ℹ️ No critical issues — the follow-up cleanly retires the leftover dead probe, justifies the Nuxt peer widening with its own changeset, and rewords the CLI changeset accurately. One new test still doesn't exercise the branch it claims to guard; the fix is a small fixture tweak.
Reviewed changes — the delta since the prior review (commit 54c48f64 → 5fa911d, refactor(cli): address code review feedback).
- Dead probe removed — the leftover
typeFileName/vite-env.d.ts/bun-env.d.tsblock inInitUseCase.collectExistingProjectis deleted, soexistingFilesnow holds only paths the planner actually reads. - Smoke tests split — the Vite-and-Bun test is now two cases with
finallyclean-up each; the Vite case genuinely exercises thevitedetection path. - Nuxt peer widening justified — a dedicated
.changeset/fix-nuxt-peer-dependencies.mdwas added and the range narrowed to"^3.21.7 || ^4.0.0-0", matching the changeset's stated claim. - Changeset wording fixed —
remove-cli-ambient-dts-append.mdnow says ambient accessor typing is being retired in scaffolded projects, which is accurate ondev(the Vite/Bun plugin helpers and docs still exist).
ℹ️ Bun smoke test doesn't exercise the bun-fullstack path
The new Bun case's fixture can never trigger bun-fullstack detection. detectFramework returns vanilla / [] for a project whose bunfig.toml is a bare comment and whose package.json only lists @types/bun (verified by running the detector against the fixture: { framework: "vanilla", features: [] } — there are no [serve]/[build] bunfig sections and no .ts/.js source files for detectBunFeatures to scan). The scaffold therefore never enters the bun-fullstack planning/bootstrap path, so expect(bunEnvExists).toBe(false) passes trivially no matter what — it would even pass if the ambient-dts append for Bun were reintroduced. Genuine Bun coverage still lives at the planner unit level (planner.test.ts asserts bun-env.d.ts is not planned for bun-fullstack), so there's no behavioral regression risk, but the smoke test is currently theatre.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found — the incremental change is a clean, verified fix that retires the last open thread from the prior review.
Reviewed changes — the delta since the prior review (commit 5fa911d → e1d22b9, test(cli): configure Bun smoke test fixture with [serve] in bunfig.toml).
- Bun smoke fixture made genuine — the fixture's
bunfig.tomlnow carries a[serve]section, sodetectBunFeaturesreturns["serve"]anddetectFrameworkresolves tobun-fullstack(I verified this by running the detector against the exact fixture — it returns{ features: ["serve"], framework: "bun-fullstack" }, and the full 11-test smoke suite passes). Thebun-env.d.tsabsence assertion can now genuinely fail if the ambient-dts append were ever reintroduced.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
This PR was opened by the [Changesets release](https://github.com/changesets/action) 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 dev, this PR will be updated. # Releases ## @arkenv/[email protected] ### Patch Changes - #### Fix `nuxt` peer dependency range to support Nuxt 3 and Nuxt 4 _[`#1706`](#1706) [`c4414ce`](c4414ce) [@yamcodes](https://github.com/yamcodes)_ Update the `peerDependencies` range for `nuxt` to `"^3.21.7 || ^4.0.0-0"` to support both Nuxt 3 (>=3.21.7) and Nuxt 4 development dependencies. Co-authored-by: arkenv-bot[bot] <237618717+arkenv-bot[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@arkenv/nuxt](https://arkenv.js.org) ([source](https://redirect.github.com/yamcodes/arkenv)) | [`0.1.1` → `0.1.2`](https://renovatebot.com/diffs/npm/@arkenv%2fnuxt/0.1.1/0.1.2) |  |  | --- ### Release Notes <details> <summary>yamcodes/arkenv (@​arkenv/nuxt)</summary> ### [`v0.1.2`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/nuxt%400.1.2) [Compare Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected]) ##### Patch Changes - #### Fix `nuxt` peer dependency range to support Nuxt 3 and Nuxt 4 *[`#1706`](https://redirect.github.com/yamcodes/arkenv/pull/1706) [`c4414ce`](https://redirect.github.com/yamcodes/arkenv/commit/c4414ce060407ecd22785adc217f80887621ff05) [@​yamcodes](https://redirect.github.com/yamcodes)* Update the `peerDependencies` range for `nuxt` to `"^3.21.7 || ^4.0.0-0"` to support both Nuxt 3 (>=3.21.7) and Nuxt 4 development dependencies. </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 this update 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:eyJjcmVhdGVkSW5WZXIiOiI0NC42MS4zIiwidXBkYXRlZEluVmVyIjoiNDQuNjEuMyIsInRhcmdldEJyYW5jaCI6ImRldiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: arkenv-bot[bot] <237618717+arkenv-bot[bot]@users.noreply.github.com>

Fixes #1699
Summary
safeAppendambient injection pipeline, templates (ImportMetaEnvAugmented/ProcessEnvAugmented), and unused scaffolding options (envDtsHandling,installTypeDefinitions).env.ts+ framework configurations without emitting ambient.d.tsaugmentations.@arkenv/cli.