Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 11:53
· 4 commits to main since this release
d51aec4

Major Changes

  • 996765e: Report a validation error when an empty or whitespace-only envvar is coerced to 0 (e.g. z.coerce.number() with PORT=), instead of silently resolving it to 0.

Minor Changes

  • 996765e: Add emptyStringAsUndefined option to parseEnv and createConfig that treats empty envvars as missing, so .default() and .optional() apply to them.
  • 9dedfbf: Add sensitive option to envvar that redacts the received value from validation errors and marks the envvar as sensitive in generated documentation.