Skip to content

Enforce/check compatibility with secret/internal APIs#573

Closed
yamcodes wants to merge 22 commits intocoercionfrom
secret-api-compatibility
Closed

Enforce/check compatibility with secret/internal APIs#573
yamcodes wants to merge 22 commits intocoercionfrom
secret-api-compatibility

Conversation

@yamcodes
Copy link
Owner

@yamcodes yamcodes commented Dec 21, 2025

Since we are using secret/internal APIs in #228, we need to somehow enforce or check the compatibility, given that arktype is a peerDependency (and not a direct dependency we can pin).

Alternatively, avoid the usage of secret/internal APIs altogether, if possible. We are only using them for coercion currently (not in the main branch yet).

…chema definitions and refinements, and refine various type and regex functionalities.
…ort` to use `parsedNumber`, and integrate `port` into the ArkType scope.
…, and enhance `number` and `boolean` coercion in `arkenv`.
…ransformation, supporting numeric refinements.
…t coercion from their definitions and from the `type` export, relying on global coercion instead.
…bers, booleans, ranges, and optional properties.
…s in `createEnv` by introducing loose parsing keywords.
…ent its behavior, edge cases, and internal API reliance.
…nce coercion with internal property helpers and version checks.
…move the external compatibility workflow, and update related documentation and tests.
@changeset-bot
Copy link

changeset-bot bot commented Dec 21, 2025

🦋 Changeset detected

Latest commit: af0d408

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
arkenv Minor
@repo/keywords Minor
@repo/scope Minor
@arkenv/bun-plugin Patch
@arkenv/vite-plugin Patch
@repo/types Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Dec 21, 2025

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

Project Deployment Review Updated (UTC)
arkenv Ready Ready Preview, Comment Dec 21, 2025 11:24am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 21, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. 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.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch secret-api-compatibility

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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. github actions Pull requests that update GitHub Actions code example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) tests This issue or PR is about adding, removing or changing tests labels Dec 21, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 21, 2025

Open in StackBlitz

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

commit: af0d408

@yamcodes yamcodes changed the base branch from main to coercion-improvements December 21, 2025 11:22
@arkenv-bot
Copy link
Contributor

arkenv-bot bot commented Dec 21, 2025

📦 Bundle Size Report

Package Size Limit Diff Status
arkenv 1.2 kB 2 kB +68.8%

All size limits passed!

Base automatically changed from coercion-improvements to coercion December 21, 2025 13:45
@yamcodes
Copy link
Owner Author

Closing in favor of #578 which is uses 100% public API.

@yamcodes yamcodes closed this Dec 22, 2025
@yamcodes yamcodes deleted the secret-api-compatibility branch December 22, 2025 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arkenv Changes to the `arkenv` npm package. docs Improvements or additions to documentation example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) github actions Pull requests that update GitHub Actions code tests This issue or PR is about adding, removing or changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant