Skip to content

Version Packages#585

Merged
yamcodes merged 1 commit intomainfrom
changeset-release/main
Dec 23, 2025
Merged

Version Packages#585
yamcodes merged 1 commit intomainfrom
changeset-release/main

Conversation

@arkenv-bot
Copy link
Contributor

@arkenv-bot arkenv-bot bot commented Dec 22, 2025

This PR was opened by the Changesets release 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 main, this PR will be updated.

Releases

arkenv@0.8.0

Minor Changes

  • Coercion #569 adaada4 @yamcodes

    Introduced Schema-Directed Coercion: now, environment variables defined as number or boolean in your schema are automatically parsed to their correct types.

    If you want to opt-out of this feature, pass config.coerce: false to createEnv() (arkenv()). Example:

    arkenv(schema, { coerce: false });

    To learn more about the new coercion system, read the docs.

    • BREAKING: The createEnv() function signature has changed to support a configuration object.
      Instead of createEnv(schema, env), use createEnv(schema, config) where config includes env (process.env by default, like before) and the newly added coerce option (true by default).
      For example, Vite users might need to update their vite.config.ts:
      const env = arkenv(Env, { env: loadEnv(mode, process.cwd(), "") });
    • BREAKING: The custom boolean morph has been removed. We now use arktype's standard boolean instead, which is coerced when used within createEnv / arkenv. This is only breaking if you specifically use boolean unrelated to createEnv / arkenv / our plugins and expect it to be coerced.
    • BREAKING: number.port is now a strict numeric refinement (0-65535). It no longer parses strings automatically outside of createEnv / arkenv. This is only breaking if you specifically use port unrelated to createEnv / arkenv / our plugins and expect it to be parsed as a number.

Patch Changes

  • Fix error formatting #582 674a2ad @aruaycodes

    The ArkEnv error message is now formatted better, using correct spacing and removing the f prefix.

    Before:

    apps/playgrounds/node on  main [$] via 🤖 v24.11.1
    ❯ ns
    
    > node-playground@ start /Users/yamcodes/code/arkenv/apps/playgrounds/node
    > tsx --env-file .env index.ts
    
    /Users/yamcodes/code/arkenv/packages/arkenv/src/create-env.ts:49
                    throw new ArkEnvError(validatedEnv);
                          ^
    
    f [ArkEnvError]: Errors found while validating environment variables
      ZED_ENV must be present (was missing)
    
        at m (/Users/yamcodes/code/arkenv/packages/arkenv/src/create-env.ts:49:9)
        at <anonymous> (/Users/yamcodes/code/arkenv/apps/playgrounds/node/index.ts:4:13)
        at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
        at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:671:26)
        at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
    
    Node.js v24.11.1
     ELIFECYCLE  Command failed with exit code 1.
    

    After:

    apps/playgrounds/node on  improve-error-formatting [$?] via 🤖 v24.11.1
    ❯ ns
    
    > node-playground@ start /Users/yamcodes/code/arkenv/apps/playgrounds/node
    > tsx --env-file .env index.ts
    
    /Users/yamcodes/code/arkenv/packages/arkenv/src/create-env.ts:49
                    throw new ArkEnvError(validatedEnv);
                          ^
    
    ArkEnvError: Errors found while validating environment variables
      ZED_ENV must be present (was missing)
    
        at m (/Users/yamcodes/code/arkenv/packages/arkenv/src/create-env.ts:49:9)
        at <anonymous> (/Users/yamcodes/code/arkenv/apps/playgrounds/node/index.ts:4:13)
        at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
        at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:671:26)
        at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
    
    Node.js v24.11.1
     ELIFECYCLE  Command failed with exit code 1.
    

@arkenv/bun-plugin@0.0.5

Patch Changes

Updated 1 dependency

adaada4 674a2ad

  • arkenv@0.8.0

@arkenv/vite-plugin@0.0.22

Patch Changes

Updated 1 dependency

adaada4 674a2ad

  • arkenv@0.8.0

@repo/keywords@0.1.0

Minor Changes

  • Simplify keywords for central coercion #569 adaada4 @yamcodes

    • BREAKING: The boolean keyword has been removed. Universal boolean coercion is now handled by the arkenv package.
    • BREAKING: The port keyword has been changed from a string -> number morph to a pure number refinement. Numeric coercion is now handled centrally.
    • Added maybeParsedNumber and maybeParsedBoolean internal morphs to support central coercion (including specific "NaN" support).

@repo/scope@0.1.0

Minor Changes

  • Align scope with central coercion #569 adaada4 @yamcodes

    • BREAKING: Removed the custom boolean keyword from the root scope. ArkEnv now uses the standard ArkType boolean primitive combined with global coercion.
    • Updated number.port to use the new strict numeric refinement, as string parsing is now handled by global coercion.

Patch Changes

Updated 1 dependency

adaada4

  • @repo/keywords@0.1.0

@repo/types@1.0.0

Patch Changes

Updated 1 dependency

adaada4

  • @repo/scope@0.1.0

@vercel
Copy link

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
arkenv Ready Ready Preview, Comment Dec 22, 2025 6:25pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 22, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added docs Improvements or additions to documentation arkenv Changes to the `arkenv` npm package. @arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv labels Dec 22, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 22, 2025

Open in StackBlitz

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

commit: a4a5c79

@arkenv-bot
Copy link
Contributor Author

arkenv-bot bot commented Dec 22, 2025

📦 Bundle Size Report

Package Size Limit Diff Status
arkenv 1.41 kB 2 kB +98.3%
@arkenv/bun-plugin 2.06 kB 2.2 kB +47.9%
@arkenv/vite-plugin 1.54 kB 2 kB +77.8%

All size limits passed!

@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from b256d20 to f9ec01b Compare December 22, 2025 17:15
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from f9ec01b to ee530f8 Compare December 22, 2025 17:26
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from ee530f8 to 85c8f84 Compare December 22, 2025 17:29
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch 2 times, most recently from 7d30f62 to f568887 Compare December 22, 2025 17:40
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from f568887 to 81e5e35 Compare December 22, 2025 17:48
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from 81e5e35 to 7aff4ca Compare December 22, 2025 17:54
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from 7aff4ca to ad6c075 Compare December 22, 2025 18:02
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch 2 times, most recently from 495b720 to c15cca7 Compare December 22, 2025 18:08
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from c15cca7 to 43a398a Compare December 22, 2025 18:17
@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from 43a398a to c805830 Compare December 22, 2025 22:46
@vercel
Copy link

vercel bot commented Dec 22, 2025

Deployment failed with the following error:

Resource is limited - try again in 13 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/yamcodes?upgradeToPro=build-rate-limit

@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch from c805830 to 7406372 Compare December 23, 2025 07:10
@vercel
Copy link

vercel bot commented Dec 23, 2025

Deployment failed with the following error:

Resource is limited - try again in 5 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/yamcodes?upgradeToPro=build-rate-limit

@arkenv-bot arkenv-bot bot force-pushed the changeset-release/main branch 2 times, most recently from 73a18e1 to 15c2c02 Compare December 23, 2025 07:15
@yamcodes
Copy link
Owner

Damn it, Vercel is rate limiting us, because of the constant preview deployments which now blocked our production deployment :/

I opened #605 to discuss some solutions

@yamcodes yamcodes merged commit ca993ab into main Dec 23, 2025
17 of 18 checks passed
@yamcodes yamcodes deleted the changeset-release/main branch December 23, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv arkenv Changes to the `arkenv` npm package. docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant