Releases: yamcodes/arkenv
arkenv@0.11.0
@arkenv/vite-plugin@0.0.32
Patch Changes
@arkenv/bun-plugin@0.1.6
Patch Changes
@arkenv/bun-plugin@0.1.5
Patch Changes
-
Support
NODE_ENVin schema#8046f8b4f0@joakimbengWhen
NODE_ENVis included in your schema, it is now validated at startup and correctly typed.// src/env.ts import { type } from "arkenv"; export default type({ BUN_PUBLIC_API_URL: "string.url", NODE_ENV: "'development' | 'production' | 'test'", });
// process.env.NODE_ENV is now typed as "development" | "production" | "test" <p>Mode: {process.env.NODE_ENV}</p>
arkenv@0.10.0
Minor Changes
-
arkenv/standardimport#806f9010d0@yamcodesarkenvnow ships three separate entry points:arkenv(main): ArkType-first. IncludescreateEnv(aliased toarkenvdefault import),type, andArkEnvError. Importing from this entry requires you to have ArkType installed.arkenv/standard: ArkType-free. A standalonecreateEnv(aliased toarkenvdefault import) for Standard Schema validators (Zod, Valibot, etc.), not requiring ArkType.arkenv/core: Mode-agnostic primitives -ArkEnvErrorandValidationIssue.
Breaking changes
1.
validator: "standard"option removed;arkenvnow statically requires ArkType.
Thevalidatorconfig option has been removed - ArkType is now always required when importing fromarkenv. For a zero-ArkType bundle, usearkenv/standard:// ❌ Before import arkenv from "arkenv"; import { z } from "zod"; const env = arkenv({ PORT: z.coerce.number() }, { validator: "standard" }); // ✅ After import arkenv from "arkenv/standard"; import { z } from "zod"; const env = arkenv({ PORT: z.coerce.number() });
2.
typemoved fromarkenv/arktypetoarkenv.
Thetypehelper is now exported from the main entry. Thearkenv/arktypesub-path is no longer public:// ❌ Before import { type } from "arkenv/arktype"; // ✅ After import { type } from "arkenv"; // 'type' is the ArkEnv helper, not a TS type modifier
@arkenv/vite-plugin@0.0.31
Patch Changes
-
arkenv/standardimport#806f9010d0@yamcodesarkenvnow ships three separate entry points:arkenv(main): ArkType-first. IncludescreateEnv(aliased toarkenvdefault import),type, andArkEnvError. Importing from this entry requires you to have ArkType installed.arkenv/standard: ArkType-free. A standalonecreateEnv(aliased toarkenvdefault import) for Standard Schema validators (Zod, Valibot, etc.), not requiring ArkType.arkenv/core: Mode-agnostic primitives -ArkEnvErrorandValidationIssue.
Breaking changes
1.
validator: "standard"option removed;arkenvnow statically requires ArkType.
Thevalidatorconfig option has been removed - ArkType is now always required when importing fromarkenv. For a zero-ArkType bundle, usearkenv/standard:// ❌ Before import arkenv from "arkenv"; import { z } from "zod"; const env = arkenv({ PORT: z.coerce.number() }, { validator: "standard" }); // ✅ After import arkenv from "arkenv/standard"; import { z } from "zod"; const env = arkenv({ PORT: z.coerce.number() });
2.
typemoved fromarkenv/arktypetoarkenv.
Thetypehelper is now exported from the main entry. Thearkenv/arktypesub-path is no longer public:// ❌ Before import { type } from "arkenv/arktype"; // ✅ After import { type } from "arkenv"; // 'type' is the ArkEnv helper, not a TS type modifier
@arkenv/fumadocs-ui@0.0.3
@arkenv/bun-plugin@0.1.4
Patch Changes
arkenv@0.9.3
Patch Changes
-
Fix inline schema autocompletion
#7978f1b0dd@yamcodesFixed a regression where editor autocompletion for ArkType DSL strings (e.g.
"string","number.port") stopped working when usingarkenv()with an inline schema object. ThecreateEnvoverloads are now narrowed byvalidatorconfig type, making them mutually exclusive and order-independent.