Repository navigation
fix(core): bump ArkType to 2.2.5 and restore DSL completions - #1975
Conversation
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 detectedLatest commit: 639bc76 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/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.
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 —
arktype2.2.0→2.2.5and@ark/attest0.56.0→0.56.5in the workspace catalog andapps/www;nub.lockresolves@ark/[email protected](duplicate gone) and.npmrcexcludes the fresh@ark/*/arkregexpins from the age gate. arkenvoverload removal — drops the catch-allEnvSchema<T> | CompiledEnvSchemaoverload inpackages/core/src/arkenv.tsandpackages/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 intype-regression.test-d.tsand theglobalSetupinpackages/core/vitest.config.ts; formatter switched tonubx prettier. - Changeset —
.changeset/restore-inline-completions.mdmarks@arkenv/coreaspatch.
ℹ️ 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?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
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]>
There was a problem hiding this comment.
ℹ️ 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.tsnow passestsconfig: packages/core/tsconfig.json(resolved fromimport.meta.url), so@ark/attest'ssetup()no longer falls back tomoduleResolution: "node10", which TypeScript 6 rejects.tsconfigis a supportedsetup()option and is parsed verbatim, so this targets the exactTS5107cause from the prior review. - Example pins resynced —
nub run sync:examplesregenerated the 11 generated examples (@arkenv/*1.0.0-rc.1→ published1.0.0-rc.2,arktype^2.2.0→^2.2.5) and theirpackage-lock.jsonfiles;sync:examples:checknow passes, clearing the priorcheck-syncfailure. - Changeset rewritten —
.changeset/restore-inline-completions.mdis recast around inline ArkType DSL completions with anumber.port = 3000example.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
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]>
There was a problem hiding this comment.
✅ 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/utilpin deduped —apps/www/package.jsonnow pins@ark/[email protected](was0.56.0), matching what[email protected]pulls;nub.lockdrops 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.mdgains a paragraph stating supported calls are unchanged and the union-typed catch-all was not a supported entry point, settling the prior body-levelpatch-vs-minorquestion. - Bun example lockfiles aligned —
examples/with-bun/bun.lockandexamples/with-bun-react/bun.locknow 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.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
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]>
There was a problem hiding this comment.
✅ 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.npmrcminimum-release-age-excludeedit is dropped in favor of basev1'sinstall.minimumReleaseAgeExclude; the merge adds exact pins@ark/[email protected]and@ark/[email protected]to the four ArkType pins base already carried..npmrcis no longer modified by this PR. - Lockfile re-resolved —
nub.lockresolves@ark/[email protected]/@ark/[email protected]and drops the duplicate0.56.0graph (@ark/[email protected],@ark/[email protected],[email protected],[email protected]). A grep ofnub.lockfor those stale specs comes back empty. - Core fix intact — the catch-all overload removal, attest
tsconfigpin,globalSetupre-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.
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 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>
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>

Fixes #895
ArkType
2.2.5and@ark/attest0.56.5are in the catalog (and the docs site pin). That pair resolves the@ark/schemaduplicate 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 restoresnever/null/numberfor 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 tomoduleResolution: node10. TypeScript 6 rejects that and abortedtest (lts)/test (latest).Example
package.jsonpins follow the catalog (arktype@^2.2.5, published@arkenv/*@1.0.0-rc.2) sosync:examples:checkpasses.Fresh ArkType packages are exact
name@versionpins innub.jsoncminimumReleaseAgeExcludeso install succeeds inside the 24-hour age gate.