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.

V2.0.0 - File loader prefixes & freezing#

  • BREAKING CHANGE: file loaders now take a options argument

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