Skip to content

fix(core): bump ArkType to 2.2.5 and restore DSL completions - #1975

Merged
yamcodes merged 8 commits into
v1from
cursor/bump-arktype-2-2-5-0033
Sep 25, 2026
Merged

yamcodes merged 8 commits into
v1from
cursor/bump-arktype-2-2-5-0033

Conversation

@yamcodes

@yamcodes yamcodes commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Fixes #895

ArkType 2.2.5 and @ark/attest 0.56.5 are in the catalog (and the docs site pin). That pair resolves the @ark/schema duplicate that blocked completion snapshots.

Inline arkenv({ KEY: "..." }) completions are covered again. A catch-all overload was hiding the contextual type, so the language service only offered the prefix itself. Dropping that overload restores never / null / number for a "n" prefix. The same signatures are on @arkenv/core/safe.

Attest setup points at packages/core/tsconfig.json. Workspace Vitest runs from the repo root, which has no tsconfig, and attest otherwise fell back to moduleResolution: node10. TypeScript 6 rejects that and aborted test (lts) / test (latest).

Example package.json pins follow the catalog (arktype@^2.2.5, published @arkenv/*@1.0.0-rc.2) so sync:examples:check passes.

Fresh ArkType packages are exact name@version pins in nub.jsonc minimumReleaseAgeExclude so install succeeds inside the 24-hour age gate.

Open in Web Open in Cursor 

ArkType 2.2.5 ships @ark/attest 0.56.5, so completion snapshots can run
again. Drop the catch-all arkenv overload that hid inline DSL suggestions.

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

changeset-bot Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 639bc76

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

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@arkenv/agent-plugin

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

arkenv

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

@arkenv/build

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

@arkenv/bun-plugin

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

@arkenv/core

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

@arkenv/fumadocs-ui

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

@arkenv/nextjs

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

@arkenv/nuxt

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

@arkenv/rsbuild-plugin

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

@arkenv/standard

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

@arkenv/tanstack-addon

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

@arkenv/vite-plugin

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

commit: 639bc76

@github-actions github-actions Bot added docs Adds or changes documentation, or acts as documentation in and of itself www Improvements or additions to arkenv.js.org labels Sep 25, 2026

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

Important

CI is red on this PR: test (lts) and test (latest) fail with TS5107, and check-sync reports all 13 examples out of sync. Both trace directly back to changes in this diff — details inline.

Reviewed changes

  • ArkType bump — arktype 2.2.0 → 2.2.5 and @ark/attest 0.56.0 → 0.56.5 in the workspace catalog and apps/www; nub.lock resolves @ark/[email protected] (duplicate gone) and .npmrc excludes the fresh @ark/* / arkregex pins from the age gate.
  • arkenv overload removal — drops the catch-all EnvSchema<T> | CompiledEnvSchema overload in packages/core/src/arkenv.ts and packages/core/src/safe.ts, so inline DSL strings regain a contextual type from the language service.
  • Attest completions restored — re-enables the .completions({ n: ["never","null","number"] }) snapshot in type-regression.test-d.ts and the globalSetup in packages/core/vitest.config.ts; formatter switched to nubx prettier.
  • Changeset — .changeset/restore-inline-completions.md marks @arkenv/core as patch.

ℹ️ The removed overload is an undocumented public type-surface change

Dropping the catch-all signature is the mechanism of the fix, but it also changes the exported call signatures: that overload was the only one that matched a union argument such as EnvSchema<T> | CompiledEnvSchema, so any consumer passing that shape now hits No overload matches this call. The changeset is patch, and this shape does not appear anywhere in docs or the repo's call sites — if it was never a supported entry point, a line in the changeset is enough; otherwise it deserves minor. The type tests that would exercise this never ran in CI because globalSetup aborts the run first (see inline).

Technical details
# Removed overload reachability

## Affected sites
- `packages/core/src/arkenv.ts:149` — remaining `EnvSchema<T>` / `CompiledEnvSchema` overloads only
- `packages/core/src/safe.ts:46` — same removal

## Required outcome
Confirm no supported call pattern (union schema variable) relied on `ArkenvOutput<T, D>` inference; document the intent in the changeset.

## Open questions for the human
Was the catch-all overload ever reachable for valid input, or only for the incomplete-DSL case this PR fixes?

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

Comment thread packages/core/vitest.config.ts Resolved
Comment thread package.json Resolved
Comment thread apps/www/package.json Resolved
Workspace Vitest runs from the repo root, so attest was typechecking with
moduleResolution node10 and TypeScript 6 aborted the suite. Pin the core
tsconfig, and sync example pins to ArkType 2.2.5.

Co-authored-by: Yam Borodetsky <[email protected]>
@github-actions github-actions Bot added the example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) label Sep 25, 2026

@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 — the two CI failures from the prior review are fixed; one minor lockfile-drift suggestion inline.

Reviewed changes

The delta since the prior pullfrog review (89ca62ce) is commit 41883457:

  • Attest tsconfig pin — packages/core/test/setup-attest.ts now passes tsconfig: packages/core/tsconfig.json (resolved from import.meta.url), so @ark/attest's setup() no longer falls back to moduleResolution: "node10", which TypeScript 6 rejects. tsconfig is a supported setup() option and is parsed verbatim, so this targets the exact TS5107 cause from the prior review.
  • Example pins resynced — nub run sync:examples regenerated the 11 generated examples (@arkenv/* 1.0.0-rc.1 → published 1.0.0-rc.2, arktype ^2.2.0 → ^2.2.5) and their package-lock.json files; sync:examples:check now passes, clearing the prior check-sync failure.
  • Changeset rewritten — .changeset/restore-inline-completions.md is recast around inline ArkType DSL completions with a number.port = 3000 example.

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

Comment thread examples/with-bun/package.json Resolved
Keep the completion snapshot and the attest age-gate excludes. Bump the
docs site @ark/util pin to 0.56.4 so it matches arktype 2.2.5.

Co-authored-by: Yam Borodetsky <[email protected]>
@github-actions github-actions Bot removed the example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) label Sep 25, 2026

@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

The delta since the prior pullfrog review (5dbca264) is the merge commit c8d08fbc, which folded v1 back into the branch and resolved the three conflicts:

  • @ark/util pin deduped — apps/www/package.json now pins @ark/[email protected] (was 0.56.0), matching what [email protected] pulls; nub.lock drops the duplicate @ark/[email protected] / @ark/[email protected] / [email protected] / [email protected] graph. Retires the earlier lockfile-drift thread.
  • Removed-overload intent documented — .changeset/restore-inline-completions.md gains a paragraph stating supported calls are unchanged and the union-typed catch-all was not a supported entry point, settling the prior body-level patch-vs-minor question.
  • Bun example lockfiles aligned — examples/with-bun/bun.lock and examples/with-bun-react/bun.lock now resolve @arkenv/[email protected] and [email protected], matching their manifests. Retires the earlier stale-lockfile thread.

check-sync is green on the head; the test / test-build jobs were still queued at review time. No behavior changes beyond the version pin and lockfile dedupe.

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

cursoragent and others added 4 commits September 25, 2026 10:19
The catch-all overload stopped keyword suggestions inside inline schema
strings. Property autocomplete on the parsed env object was already fine.

Co-authored-by: Yam Borodetsky <[email protected]>
Keep the user-facing suggestion behavior and drop the overload notes.

Co-authored-by: Yam Borodetsky <[email protected]>
Keep v1's comment-only .npmrc and pin the still-young @ark/attest
and @ark/fs releases in nub.jsonc.

Co-authored-by: Yam Borodetsky <[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

The delta since the prior pullfrog review is the merge commit 639bc769, which folded v1 (including #1986's migration of the install age-gate config into nub.jsonc) into the branch:

  • Age-gate exemptions relocated to nub.jsonc — the PR's .npmrc minimum-release-age-exclude edit is dropped in favor of base v1's install.minimumReleaseAgeExclude; the merge adds exact pins @ark/[email protected] and @ark/[email protected] to the four ArkType pins base already carried. .npmrc is no longer modified by this PR.
  • Lockfile re-resolved — nub.lock resolves @ark/[email protected] / @ark/[email protected] and drops the duplicate 0.56.0 graph (@ark/[email protected], @ark/[email protected], [email protected], [email protected]). A grep of nub.lock for those stale specs comes back empty.
  • Core fix intact — the catch-all overload removal, attest tsconfig pin, globalSetup re-enable, and completion snapshot are unchanged by the merge; the PR's net diff vs base is now 10 files.

Prior threads remain resolved; CI's earlier TS5107 and check-sync failures are addressed.

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

@yamcodes
yamcodes merged commit 089ef43 into v1 Sep 25, 2026
21 checks passed
@yamcodes
yamcodes deleted the cursor/bump-arktype-2-2-5-0033 branch September 25, 2026 10:55
@arkenv-bot arkenv-bot Bot mentioned this pull request Sep 25, 2026
yamcodes pushed a commit that referenced this pull request Sep 25, 2026
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 v1, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`v1` is currently in **pre mode** so this branch has prereleases rather
than normal releases. If you want to exit prereleases, run `changeset
pre exit` on `v1`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @arkenv/[email protected]

### Major Changes

- #### Remove the SharedSchema key extractors
_[`#2011`](#2011)
[`9483c3c`](9483c3c)
[@yamcodes](https://github.com/yamcodes)_

	
`extractSharedKeys` and `extractSharedBlock` are no longer exported from
`@arkenv/build`. `@arkenv/nextjs/config` and `@arkenv/nuxt` (including
`@arkenv/nuxt/standard/config`) no longer re-export `extractSharedKeys`.
Shared keys in a flat `arkenv()` call still come from `extractKeys` and
`classifyEnvKeys`.
	
**BREAKING CHANGE**: Those helpers scanned source for a `SharedSchema =
{ ... }` assignment. Classify a flat `arkenv()` call instead.
	
	```ts
	import { classifyEnvKeys } from "@arkenv/build";
	
	const { sharedKeys } = classifyEnvKeys(source, ["NEXT_PUBLIC_"]);
	```

### Patch Changes

- #### Reject runtime keys in the plugin option guard
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
The shared transform-option guard now treats `env`, `coerce`,
`onUndeclaredKey`, `arrayFormat`, `emptyAsUndefined`, `debugSecrets`,
and `toJsonSchema` as unsupported plugin options. The build reads the
loaded environment.
## @arkenv/[email protected]

### Major Changes

- #### Export only `arkenvPlugin` from the Bun plugin
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`@arkenv/bun-plugin` and `@arkenv/bun-plugin/standard` now export
`arkenvPlugin` as the default and the only named export. The
`arkenvBunPlugin` and `hybrid` aliases have been removed. `arkenvPlugin`
is still both a factory and a plugin object with `name`, `target`, and
`setup`.
	
	```ts
	import arkenvPlugin from "@arkenv/bun-plugin";
	
	await Bun.build({
	  plugins: [arkenvPlugin],
	});
	```
	
**BREAKING CHANGE**: `arkenvBunPlugin` and `hybrid` are no longer
exported. Use `arkenvPlugin` instead.
- #### Reject runtime options on bundler plugins
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
Vite, Bun, and Rsbuild plugins now accept only `schemaPath`,
`clientPrefix`, `logger`, and `logLevel`. The build validates the
environment loaded for that compile. Variables already set on
`process.env` win over env files.
	
	```ts
	import { arkenvPlugin } from "@arkenv/vite-plugin";
	
	export default {
	  plugins: [arkenvPlugin({ schemaPath: "src/env.ts" })],
	};
	```
	
Set `env`, `coerce`, `onUndeclaredKey`, `arrayFormat`,
`emptyAsUndefined`, `debugSecrets`, and `toJsonSchema` on `arkenv()` in
`env.ts`. The plugin rejects those keys.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv(
	  { PORT: "number" },
	  { coerce: true, onUndeclaredKey: "reject" },
	);
	```
	
**BREAKING CHANGE**: Plugin option types no longer include runtime
`arkenv()` fields, including `env`. Passing them now throws.
	
	```diff
	- arkenvPlugin({ env: { PORT: "3000" }, coerce: true })
	+ arkenvPlugin({ schemaPath: "src/env.ts" })
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Remove the SharedSchema key extractors
_[`#2011`](#2011)
[`9483c3c`](9483c3c)
[@yamcodes](https://github.com/yamcodes)_

	
`extractSharedKeys` and `extractSharedBlock` are no longer exported from
`@arkenv/build`. `@arkenv/nextjs/config` and `@arkenv/nuxt` (including
`@arkenv/nuxt/standard/config`) no longer re-export `extractSharedKeys`.
Shared keys in a flat `arkenv()` call still come from `extractKeys` and
`classifyEnvKeys`.
	
**BREAKING CHANGE**: Those helpers scanned source for a `SharedSchema =
{ ... }` assignment. Classify a flat `arkenv()` call instead.
	
	```ts
	import { classifyEnvKeys } from "@arkenv/build";
	
	const { sharedKeys } = classifyEnvKeys(source, ["NEXT_PUBLIC_"]);
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Remove the SharedSchema key extractors
_[`#2011`](#2011)
[`9483c3c`](9483c3c)
[@yamcodes](https://github.com/yamcodes)_

	
`extractSharedKeys` and `extractSharedBlock` are no longer exported from
`@arkenv/build`. `@arkenv/nextjs/config` and `@arkenv/nuxt` (including
`@arkenv/nuxt/standard/config`) no longer re-export `extractSharedKeys`.
Shared keys in a flat `arkenv()` call still come from `extractKeys` and
`classifyEnvKeys`.
	
**BREAKING CHANGE**: Those helpers scanned source for a `SharedSchema =
{ ... }` assignment. Classify a flat `arkenv()` call instead.
	
	```ts
	import { classifyEnvKeys } from "@arkenv/build";
	
	const { sharedKeys } = classifyEnvKeys(source, ["NEXT_PUBLIC_"]);
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Export only `arkenvPlugin` from the Rsbuild plugin
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`@arkenv/rsbuild-plugin` and `@arkenv/rsbuild-plugin/standard` now
export `arkenvPlugin` as the default and the only named export. The
`arkenvRsbuildPlugin` alias has been removed.
	
	```ts
	import { arkenvPlugin } from "@arkenv/rsbuild-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```
	
**BREAKING CHANGE**: `arkenvRsbuildPlugin` is no longer exported. Import
`arkenvPlugin` instead.
- #### Reject runtime options on bundler plugins
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
Vite, Bun, and Rsbuild plugins now accept only `schemaPath`,
`clientPrefix`, `logger`, and `logLevel`. The build validates the
environment loaded for that compile. Variables already set on
`process.env` win over env files.
	
	```ts
	import { arkenvPlugin } from "@arkenv/vite-plugin";
	
	export default {
	  plugins: [arkenvPlugin({ schemaPath: "src/env.ts" })],
	};
	```
	
Set `env`, `coerce`, `onUndeclaredKey`, `arrayFormat`,
`emptyAsUndefined`, `debugSecrets`, and `toJsonSchema` on `arkenv()` in
`env.ts`. The plugin rejects those keys.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv(
	  { PORT: "number" },
	  { coerce: true, onUndeclaredKey: "reject" },
	);
	```
	
**BREAKING CHANGE**: Plugin option types no longer include runtime
`arkenv()` fields, including `env`. Passing them now throws.
	
	```diff
	- arkenvPlugin({ env: { PORT: "3000" }, coerce: true })
	+ arkenvPlugin({ schemaPath: "src/env.ts" })
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## @arkenv/[email protected]

### Major Changes

- #### Export only `arkenvPlugin` from the Vite plugin
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`@arkenv/vite-plugin` and `@arkenv/vite-plugin/standard` now export
`arkenvPlugin` as the default and the only named export. The
`arkenvVitePlugin` alias has been removed.
	
	```ts
	import arkenvPlugin from "@arkenv/vite-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```
	
**BREAKING CHANGE**: `arkenvVitePlugin` is no longer exported. Import
`arkenvPlugin` instead.
- #### Reject runtime options on bundler plugins
_[`#2012`](#2012)
[`87f3743`](87f3743)
[@yamcodes](https://github.com/yamcodes)_

	
Vite, Bun, and Rsbuild plugins now accept only `schemaPath`,
`clientPrefix`, `logger`, and `logLevel`. The build validates the
environment loaded for that compile. Variables already set on
`process.env` win over env files.
	
	```ts
	import { arkenvPlugin } from "@arkenv/vite-plugin";
	
	export default {
	  plugins: [arkenvPlugin({ schemaPath: "src/env.ts" })],
	};
	```
	
Set `env`, `coerce`, `onUndeclaredKey`, `arrayFormat`,
`emptyAsUndefined`, `debugSecrets`, and `toJsonSchema` on `arkenv()` in
`env.ts`. The plugin rejects those keys.
	
	```ts
	import arkenv from "@arkenv/core";
	
	export const env = arkenv(
	  { PORT: "number" },
	  { coerce: true, onUndeclaredKey: "reject" },
	);
	```
	
**BREAKING CHANGE**: Plugin option types no longer include runtime
`arkenv()` fields, including `env`. Passing them now throws.
	
	```diff
	- arkenvPlugin({ env: { PORT: "3000" }, coerce: true })
	+ arkenvPlugin({ schemaPath: "src/env.ts" })
	```

### Patch Changes

<details><summary>Updated 3 dependencies</summary>

<small>


[`87f3743`](87f3743)
[`9483c3c`](9483c3c)
[`089ef43`](089ef43)

</small>

- `@arkenv/[email protected]`
- `@arkenv/[email protected]`
- `@arkenv/[email protected]`

</details>
## [email protected]

### Minor Changes

- #### Stop installing the agent skill during init
_[`#1984`](#1984)
[`2c1dd0f`](2c1dd0f)
[@yamcodes](https://github.com/yamcodes)_

	
`arkenv init` no longer prompts for or installs the ArkEnv agent skill,
including under `--yes`. When the skill is not already in the project,
the next-steps note still prints `npx skills add yamcodes/arkenv`.
`@arkenv/agent-plugin` already includes the skill.
- #### Scaffold `arkenvPlugin` in Vite and Rsbuild configs
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
`arkenv init` now writes `arkenvPlugin` into new Vite and Rsbuild config
entries. Vite binds the default import as `arkenvPlugin`. Rsbuild
imports the named `arkenvPlugin`.
	
	```ts
	import arkenvPlugin from "@arkenv/vite-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```

### Patch Changes

- #### Scaffold Zod and Valibot init on standard mode
_[`#2020`](#2020)
[`a3815e6`](a3815e6)
[@yamcodes](https://github.com/yamcodes)_

	
`arkenv init` no longer installs `arktype` when you choose Zod or
Valibot. Next.js, Nuxt, Vite, Rsbuild, and Bun now scaffold the
`/standard` integration entry, and Next.js and Nuxt also install
`@arkenv/standard`.
	
	```ts
	import arkenv from "@arkenv/nuxt/standard";
	import * as z from "zod";
	
	export const env = arkenv({
	  DATABASE_URL: z.url(),
	});
	```
	
Re-running init replaces the other engine's entry. A Nuxt app that still
registers `@arkenv/nuxt/module` switches to
`@arkenv/nuxt/standard/module` when you choose Zod or Valibot, and the
same replacement applies to the Next.js, Vite, and Rsbuild imports.
Choosing ArkType switches those entries back.
	
ArkType init is unchanged: it still installs `arktype` and uses the
ArkType integration entry.
## @arkenv/[email protected]

### Patch Changes

- #### Parse audit sources with the TypeScript 7 sync API
_[`#1990`](#1990)
[`f3039bf`](f3039bf)
[@yamcodes](https://github.com/yamcodes)_

	
The agent plugin audit now parses source files through
`typescript/unstable/sync` instead of the classic TypeScript compiler
API.
- #### Point init refusals at nextActions
_[`#1977`](#1977)
[`dd2fa82`](dd2fa82)
[@yamcodes](https://github.com/yamcodes)_

	
Agent instructions now tell you to retry only when a refusal's
`nextActions` include a `run-command` with `--force`.
## @arkenv/[email protected]

### Patch Changes

- #### Restore keyword suggestions inside inline schemas
_[`#1975`](#1975)
[`089ef43`](089ef43)
[@yamcodes](https://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",
	});
	```
## @arkenv/[email protected]

### Patch Changes

- #### Scaffold `arkenvPlugin` in the TanStack add-on
_[`#2015`](#2015)
[`7417dd7`](7417dd7)
[@yamcodes](https://github.com/yamcodes)_

	
The TanStack CLI add-on now registers the Vite plugin as `arkenvPlugin`.
	
	```ts
	import arkenvPlugin from "@arkenv/vite-plugin";
	
	export default defineConfig({
	  plugins: [arkenvPlugin()],
	});
	```
- #### Point TanStack add-on dependencies at the current release
_[`#1978`](#1978)
[`888e6c2`](888e6c2)
[@yamcodes](https://github.com/yamcodes)_

	
Scaffolded TanStack Start apps now install `@arkenv/core`,
`@arkenv/standard`, and `@arkenv/vite-plugin` at `^1.0.0-rc.2`, which
matches the versions on npm `latest` and still accepts `1.0.0` when it
publishes.
	
	Usage:
	
	```bash
npx @tanstack/cli create my-app --add-ons
https://arkenv.js.org/tanstack/info.json
	```
## @arkenv/[email protected]

No changes in this release.

Co-authored-by: arkenv-bot[bot] <237618717+arkenv-bot[bot]@users.noreply.github.com>
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

docs Adds or changes documentation, or acts as documentation in and of itself www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-enable @ark/attest completion snapshots for Issue #796

2 participants