Miscellaneous
Changelog#
V3.0.0 - Error handling#
- BREAKING CHANGE: Errors now have proper types, does not throw but uses process.exit.
- BREAKING CHANGE: Env files now handle quotes as you would expect. Using
dotenv
for parsing. - BREAKING CHANGE: Frozen configs are now default, To opt out, you can do
.unfreeze()
. Read more about freezing here.
- Errors are now logged with pretty colors and will exit the process by default. Read more about errors here.
- A new zod helper for easier boolean schemas:
zodCoercedBoolean
. Read more about it here.
V2.0.0 - File loader prefixes & freezing#
- BREAKING CHANGE: file loaders now take a options argument
- Make your configuration readonly with
.freeze()
. Read more about freezing here. - Strip prefixes from
.env
files. Read more about file loader prefixes here.
V1.1.0 - Documentation & zod schemas#
- Schema validation with zod:
.addZodSchema(schema)
(supports type inference)
- Documentation is now available (you're current reading it)
V1.0.0 - Initial release#
.env
file loader, with comment support.json
file loader- name convention agnostic, can set naming convention or uses the schema's
- Fragment support - which are like partial configuration snippets
- Load from environment
- Load from CLI arguments
- Load from directory structure
- Schema validation using joi