Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 26 Jun 13:03
· 102 commits to main since this release

Changes

  • feat(kernel): ✨ Add typed environment schema

Release details

Pull request notes

Summary

  • Adds typed environment schemas for Kernel so applications can declare expected variables, types and required/default values.
  • Parses string, number and boolean environment values after loading dotenv files.
  • Throws KernelEnvironmentValidationError when required variables are missing or values cannot be parsed.
  • Updates the example and docs to use kernel.environment with inferred types.

Validation

  • yarn format:check
  • yarn lint
  • yarn typecheck
  • yarn test:coverage (100%)
  • yarn docs:build
  • yarn build
  • yarn --cwd example typecheck
  • npx -y depcheck --json