Skip to content

Releases: lostfictions/znv

v0.5.0

24 Mar 09:21
Compare
Choose a tag to compare

This release adds a few long-awaited features:

  • Edge runtimes and other non-Node.js environments are now supported! Import from znv/compat instead of znv.
  • Custom error formatting is now supported by passing a third parameter to parseEnv. This can be used to redact secrets in the error message, override the default terminal-friendly formatting, and more. See the documentation for the new parameter.
  • Missing env vars are now reported in a more compact form (thanks @cometkim!)
  • A longstanding type error that could arise with certain TypeScript project configurations is now fixed (thanks @adicco for reporting and @gyf304 for the fix!)
  • znv now has zero runtime dependencies.

I'm also happy to welcome as a co-maintainer for this project @BowlingX, who has previously made some great contributions and is already helping to shore up some repo tooling and maintenance work I haven't been able to take on in the past year.

As a side note, with ES module support and edge runtime compatibility now shipped, notwithstanding any new showstopping issues I expect our next release can be promoted to a stable 1.0.0. 🥳

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

30 Aug 02:47
Compare
Choose a tag to compare

ES Module support has been added! Thanks to @BowlingX for the contribution. CommonJS remains supported as well. This should not be a breaking change -- if you encounter any problems when upgrading please open an issue!

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.4.0

v0.3.2

12 Dec 09:24
Compare
Choose a tag to compare

What's Changed

  • fix: handle negative numbers correctly instead of failing to parse them
  • chore: bump colorette for better color support on windows
  • docs: amend examples in documentation to remove deprecated nonempty() by @reslear in #1

New Contributors

Full Changelog: v0.3.1...v0.3.2