Skip to content

Version Packages#383

Merged
yamcodes merged 1 commit intomainfrom
changeset-release/main
Nov 20, 2025
Merged

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

Conversation

@arkenv-bot
Copy link
Contributor

@arkenv-bot arkenv-bot bot commented Nov 19, 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.7.6

Patch Changes

  • Support type definitions for schema reuse 2424391 @yamcodes

    arkenv() and @arkenv/vite-plugin now accept both raw schema objects and type definitions created with ArkType's type() function. This allows you to define your schema once and reuse it across your application, which is especially useful for multi-runtime setups like Vite where you need the same schema in both vite.config.ts and client code.

    import arkenv, { type } from "arkenv";
    
    // Define schema once
    const Env = type({
      PORT: "number.port",
      HOST: "string.host",
    });
    
    // Reuse it in multiple places
    const configEnv = arkenv(Env, process.env);
    const testEnv = arkenv(Env, { PORT: "3000", HOST: "localhost" });

@arkenv/vite-plugin@0.0.17

Patch Changes

  • Support type definitions for schema reuse 2424391 @yamcodes

    arkenv() and @arkenv/vite-plugin now accept both raw schema objects and type definitions created with ArkType's type() function. This allows you to define your schema once and reuse it across your application, which is especially useful for multi-runtime setups like Vite where you need the same schema in both vite.config.ts and client code.

    import arkenv, { type } from "arkenv";
    
    // Define schema once
    const Env = type({
      PORT: "number.port",
      HOST: "string.host",
    });
    
    // Reuse it in multiple places
    const configEnv = arkenv(Env, process.env);
    const testEnv = arkenv(Env, { PORT: "3000", HOST: "localhost" });
  • Fix security issue where server-only environment variables were exposed to client code #386 efc75c9 @yamcodes

    The plugin now automatically filters to only expose variables matching Vite's configured prefix (defaults to VITE_), preventing sensitive server-side configuration from leaking into the client bundle.

Updated 1 dependency

2424391

  • arkenv@0.7.6

@vercel
Copy link

vercel bot commented Nov 19, 2025

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

Project Deployment Preview Comments Updated (UTC)
arkenv Ready Ready Preview Comment Nov 20, 2025 10:03pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 19, 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 Nov 19, 2025
@arkenv-bot
Copy link
Contributor Author

arkenv-bot bot commented Nov 19, 2025

📦 Bundle Size Report

Package Size Limit Diff Status
@arkenv/vite-plugin 828 B 2 kB
arkenv 729 B 2 kB

All size limits passed!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 19, 2025

Open in StackBlitz

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

commit: 978f15a

@github-actions github-actions bot force-pushed the changeset-release/main branch from 936782d to 564217b Compare November 20, 2025 22:02
@yamcodes yamcodes merged commit 8e6a724 into main Nov 20, 2025
3 checks passed
@yamcodes yamcodes deleted the changeset-release/main branch November 20, 2025 22:13
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