Skip to content

Releases: yamcodes/arkenv

arkenv@0.9.2

21 Jan 20:40
d239dae

Choose a tag to compare

Patch Changes

  • Fix CommonJS bundling compatibility #756 1901321 @yamcodes

    Fixed a crash when ArkEnv is bundled into a CommonJS format using tools like esbuild. This improves compatibility with environments like AWS Lambda and ensures correct interoperability when ArkEnv is used as an external dependency in CommonJS bundles.

  • Improve internal error handling types #756 1901321 @yamcodes

    Refined internal error handling logic with better TypeScript typesafety and guards.

arkenv@0.9.1

21 Jan 18:49
e858969

Choose a tag to compare

Patch Changes

  • Fix Standard Schema type inference #758 3b747b0 @yamcodes

    Fixed type inference when using validator: "standard" mode. The env object now correctly infers types from Standard Schema validators like Zod or Valibot.

@arkenv/vite-plugin@0.0.29

21 Jan 20:40
d239dae

Choose a tag to compare

Patch Changes

Updated 1 dependency

1901321 1901321

  • arkenv@0.9.2

@arkenv/vite-plugin@0.0.28

21 Jan 18:49
e858969

Choose a tag to compare

Patch Changes

  • Support configuration bb832b1 @yamcodes

    Add support for an optional configuration object as the second argument. This allows you to set the validator mode to "standard", enabling support for libraries like Zod or Valibot without an ArkType dependency.

    import { z } from "zod";
    import arkenvVitePlugin from "@arkenv/vite-plugin";
    
    arkenvVitePlugin(
      {
        VITE_API_URL: z.string().url(),
      },
      {
        validator: "standard",
      }
    );
Updated 1 dependency

3b747b0

  • arkenv@0.9.1

@arkenv/bun-plugin@0.1.2

21 Jan 20:40
d239dae

Choose a tag to compare

Patch Changes

Updated 1 dependency

1901321 1901321

  • arkenv@0.9.2

@arkenv/bun-plugin@0.1.1

21 Jan 18:49
e858969

Choose a tag to compare

Patch Changes

  • Support configuration #763 06de0ef @yamcodes

    Add support for an optional configuration object as the second argument. This allows you to set the validator mode to "standard", enabling support for libraries like Zod or Valibot without an ArkType dependency.

    import { z } from "zod";
    import arkenv from "@arkenv/bun-plugin";
    
    arkenv(
      {
        BUN_PUBLIC_API_URL: z.string().url(),
      },
      {
        validator: "standard",
      }
    );
Updated 1 dependency

3b747b0

  • arkenv@0.9.1

arkenv@0.9.0

16 Jan 17:08
3c1e9dd

Choose a tag to compare

Minor Changes

  • ArkType is now an optional peer dependency #723 6bd0741 @yamcodes

    To achieve a true zero-dependency core, ArkType is now an optional peer dependency.

    • Breaking Change: The type export has been moved from the main arkenv entry point to arkenv/arktype.
    // ❌ Before
    import { type } from "arkenv";
    
    // ✅ After
    import { type } from "arkenv/arktype";
    • Explicit Validator Modes: ArkEnv now supports an explicit validator option.

      • validator: "arktype" (default): Uses ArkType for validation and coercion. Requires arktype to be installed.
      • validator: "standard": Uses Standard Schema validators directly (e.g., Zod, Valibot). Works without ArkType.

    Existing usage of arkenv() remains unchanged when ArkType is installed. Projects using ArkType features must now explicitly install arktype and import ArkType-land helpers from arkenv/arktype.

Patch Changes

  • Remove internal @repo/keywords package #726 926ef9b @yamcodes

    The internal @repo/keywords package, which was compiled into the arkenv package, has been removed. The keywords are now either defined directly in the arkenv package or changed to pure functions.

    This change was made to simplify the package structure for the validator mode.

@arkenv/vite-plugin@0.0.27

16 Jan 17:08
3c1e9dd

Choose a tag to compare

Patch Changes

Updated 1 dependency

6bd0741 926ef9b

  • arkenv@0.9.0

@arkenv/bun-plugin@0.1.0

16 Jan 20:33
f19ccee

Choose a tag to compare

Minor Changes

  • Refactoring + remove processEnvSchema export #739 16c6047 @copilot-swe-agent

    Breaking change: We've removed the processEnvSchema export from this library as it's an internal utility.

Patch Changes

  • Support for .mts and .cts extensions #739 16c6047 @copilot-swe-agent

    Updated the Bun plugin to correctly process and load .mts and .cts files. This ensures environment variables are properly injected when using these TypeScript file extensions.

Updated 1 dependency
  • arkenv@0.9.0

@arkenv/bun-plugin@0.0.9

16 Jan 17:08
3c1e9dd

Choose a tag to compare

Patch Changes

Updated 1 dependency

6bd0741 926ef9b

  • arkenv@0.9.0