Skip to content

Releases: CatchMe2/envase

v1.3.0

28 Jan 14:00

Choose a tag to compare

What's Changed

New Contributors

✨ Added

createConfig — Typed computed configuration values

  • Introduced createConfig, a new helper that builds on parseEnv to support computed (derived) configuration values.
  • Computed values:
    • Are calculated after schema validation
    • Receive the fully parsed and typed config (not raw strings)
    • Support flat and deeply nested structures
    • Are deep-merged with the parsed schema output
  • Full TypeScript type inference for:
    • Parsed environment variables
    • Computed values (including nested and mixed structures)
  • Computed functions are skipped if schema validation fails, ensuring safety and correctness.
const config = createConfig(process.env, {
  schema: {
    db: {
      host: envvar('DB_HOST', z.string()),
      port: envvar('DB_PORT', z.coerce.number()),
    },
  },
  computed: {
    dbUrl: (raw) => `${raw.db.host}:${raw.db.port}`,
  },
});

**Full Changelog**: https://github.com/CatchMe2/envase/compare/v1.2.2...v1.3.0

v1.2.2

27 Jan 14:04

Choose a tag to compare

What's Changed

Full Changelog: v1.2.1...v1.2.2

v1.2.1

23 Jan 15:57

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

23 Jan 12:09

Choose a tag to compare

What's Changed

Full Changelog: v1.1.4...v1.2.0

v1.1.4

22 Jan 21:46

Choose a tag to compare

What's Changed

Full Changelog: v1.1.3...v1.1.4

v1.1.3

22 Jan 21:05

Choose a tag to compare

What's Changed

Full Changelog: v1.1.2...v1.1.3

v1.1.2

22 Jan 15:06

Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

22 Jan 06:43

Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

21 Jan 11:43

Choose a tag to compare

What's Changed

Full Changelog: v1.0.2...v1.1.0

v1.0.2

07 Aug 21:23

Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.0.2