Skip to content

Version Packages#130

Merged
yamcodes merged 1 commit intomainfrom
changeset-release/main
Sep 8, 2025
Merged

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

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 8, 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.4.0

Minor Changes

  • Improved type inference and scope-based validation #129 dd15b60 @yamcodes

    The createEnv function got a facelift with better TypeScript inference and introduced a new scope-based validation system.

    Key improvements:

    • Better ecosystem integration: Use string.host and number.port in your schemas, as if they were native ArkType keywords
    • Cleaner API: No need to awkwardly import host and port types anymore

    Before:

    host and port had to be manually imported from the arkenv package, and used as arguments to the createEnv function.

    import { createEnv, host, port } from "arkenv";
    
    const env = createEnv({
      HOST: host, // Validates IP addresses or "localhost"
      PORT: port, // Validates port numbers (0-65535)
      NODE_ENV: "string", // Standard string validation
    });

    After:

    Now you can use string.host and number.port in your schemas, in a way that is much more natural and idiomatic within the ArkType ecosystem.

    import { createEnv } from "arkenv";
    
    const env = createEnv({
      HOST: "string.host", // Validates IP addresses or "localhost"
      PORT: "number.port", // Validates port numbers (0-65535)
      NODE_ENV: "string", // Standard string validation
    });

    BREAKING CHANGE:

    • We are no longer exporting host and port types. Use string.host and number.port instead.

@arkenv/vite-plugin@0.0.7

Patch Changes

  • Upgraded ArkType peer dependency from ^2.0.0 to ^2.1.22 for compatibility with the latest version of ArkEnv #129 dd15b60 @yamcodes
Updated 1 dependency

dd15b60

  • arkenv@0.4.0

@vercel
Copy link

vercel bot commented Sep 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
arkenv Error Error Sep 8, 2025 6:43pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 8, 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.

@yamcodes yamcodes merged commit 1e43212 into main Sep 8, 2025
2 of 3 checks passed
@yamcodes yamcodes deleted the changeset-release/main branch September 8, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant