- 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.
- BREAKING CHANGE: file loaders now take a options argument
- Schema validation with zod:
.addZodSchema(schema)
(supports type inference)
- Documentation is now available (you're current reading it)
.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