Releases: lostfictions/znv
v0.5.0
This release adds a few long-awaited features:
- Edge runtimes and other non-Node.js environments are now supported! Import from
znv/compat
instead ofznv
. - 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
- Report description in more compact form by @cometkim in #13
- Export types in util.js by @gyf304 in #16
- Add edge runtime compatibility and allow custom formatters by @lostfictions in #15
- Fix type exports, run jobs on all pr's by @BowlingX in #20
New Contributors
Full Changelog: v0.4.0...v0.5.0
v0.4.0
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
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