Update dependency arkenv to v0.12.3 #56
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/nuxx.lol!56
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/arkenv-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.8.3→0.12.3Release Notes
yamcodes/arkenv (arkenv)
v0.12.3Compare Source
Patch Changes
Improve npm keywords across published packages for discoverability
#1383bf60ab2@yamcodesClean up and extend the
keywordsfield of every published package so npm search, aggregators, and LLM-powered package discovery surface ArkEnv for the terms users actually search for.pnpmkeyword fromarkenvand addenv,environment-variables,dotenv,config,standard-schema, and the supported validatorszodandvalibot.arkenvkeyword in@arkenv/vite-plugin.env,environment-variables,dotenv,config,validation,typesafe,standard-schema) alongside their integration-specific terms.@arkenv/fumadocs-ui, which previously had none.v0.12.2Compare Source
Patch Changes
Expose
getSchemaKeyshelper#1191a3e32db@yamcodesExpose
getSchemaKeyshelper and widenRuntimeEnvironmenttype to support typed framework runtime configurations.Handle pre-parsed primitives gracefully in coercion logic
#120612ed4f3@yamcodesUpdated the core coercion logic to defensively skip values that are not strings. This ensures ArkEnv won't crash or behave unpredictably when passed configuration objects that have already been parsed into numbers, booleans, or complex objects by other systems (such as Nuxt's
runtimeConfig).Fix coercion to prevent in-place mutation of environment config objects
#120612ed4f3@yamcodesRefactor
applyCoercionto perform non-mutating updates on environment configuration data. Clone objects and arrays along the validation path instead of modifying them in-place, preventing runtime crashes on frozen configuration objects (e.g., framework runtime configurations) and avoiding side-effects on reusable config objects.Usage:
v0.12.1Compare Source
Patch Changes
Add
emptyAsUndefinedoption to treat empty env values as missing#11883bfbcb7@yamcodesAdd a new
emptyAsUndefinedconfiguration option to bothcreateEnv(ArkType mode) andarkenv/standard(Standard Schema mode). When enabled, environment variables set to empty strings (e.g.,PORT=in a.envfile) are treated as if they were missing, allowing defaults to apply and preventing unnecessary validation errors for numeric, boolean, or array types.Usage:
emptyAsUndefined: false).v0.12.0Compare Source
Minor Changes
Add Standard JSON Schema coercion to
arkenv/standard#115488b0eee@yamcodesIntroduce opt-out type coercion for standard mode (
arkenv/standard). This coercion only works if the validator is a standard JSON Schema compliant validator (e.g., Zod, Valibot, or custom schemas that implement theStandardJSONSchemaV1interface). This automatically enables coercion for environment variables without relying on ArkType's runtime footprint.If you need to disable coercion, explicitly pass
{ coerce: false }in your configuration:BREAKING CHANGE: Coercion is now enabled by default in
arkenv/standard. This will automatically coerce environment variables to their expected types (e.g., strings containing numbers, booleans, or dates will be converted to their respective types) based on the JSON Schema of your validators. It's unlikely to affect you unless you were relying on validation failing for uncoerced string inputs, or have custom schemas that expect raw strings instead of coerced values.v0.11.1Compare Source
Patch Changes
Add
Infer<T>helper to resolve environment variable types#1092c6c30ab@yamcodesIntroduce the
Infer<T>type helper, allowing developers to extract the inferred output types of their environment schemas. It supports both declarative schema shapes and compiled schemas (like Zod or ArkType types).Usage:
v0.11.0Compare Source
Minor Changes
Remove
ArkEnvErrorimport from "arkenv"#8155e8025f@yamcodesThe
ArkEnvErrorclass is now only available via:v0.10.0Compare Source
Minor Changes
arkenv/standardimport#806f9010d0@yamcodesarkenvnow ships three separate entry points:arkenv(main): ArkType-first. IncludescreateEnv(aliased toarkenvdefault import),type, andArkEnvError. Importing from this entry requires you to have ArkType installed.arkenv/standard: ArkType-free. A standalonecreateEnv(aliased toarkenvdefault import) for Standard Schema validators (Zod, Valibot, etc.), not requiring ArkType.arkenv/core: Mode-agnostic primitives -ArkEnvErrorandValidationIssue.Breaking changes
v0.9.3Compare Source
Patch Changes
Fix inline schema autocompletion
#7978f1b0dd@yamcodesFixed a regression where editor autocompletion for ArkType DSL strings (e.g.
"string","number.port") stopped working when usingarkenv()with an inline schema object. ThecreateEnvoverloads are now narrowed byvalidatorconfig type, making them mutually exclusive and order-independent.v0.9.2Compare Source
Patch Changes
Fix CommonJS bundling compatibility
#7561901321@yamcodesFixed 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
#7561901321@yamcodesRefined internal error handling logic with better TypeScript typesafety and guards.
v0.9.1Compare Source
Patch Changes
Fix Standard Schema type inference
#7583b747b0@yamcodesFixed type inference when using
validator: "standard"mode. Theenvobject now correctly infers types from Standard Schema validators like Zod or Valibot.v0.9.0Compare Source
Minor Changes
ArkType is now an optional peer dependency
#7236bd0741@yamcodesTo achieve a true zero-dependency core, ArkType is now an optional peer dependency.
typeexport has been moved from the mainarkenventry point toarkenv/arktype.Explicit Validator Modes: ArkEnv now supports an explicit
validatoroption.validator: "arktype"(default): Uses ArkType for validation and coercion. Requiresarktypeto 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 installarktypeand import ArkType-land helpers fromarkenv/arktype.Patch Changes
Remove internal
@repo/keywordspackage#726926ef9b@yamcodesThe internal
@repo/keywordspackage, which was compiled into thearkenvpackage, has been removed. The keywords are now either defined directly in thearkenvpackage or changed to pure functions.This change was made to simplify the package structure for the validator mode.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
The latest updates on your projects. Learn more about Vercel for GitHub.
Comment
@coderabbitai helpto get the list of available commands.All alerts resolved. Learn more about Socket for GitHub.
This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.
View full report
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Security
View full report
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.