Skip to content

Releases: mrsteele/dotenv-defaults

v6.0.0

02 Feb 03:20

Choose a tag to compare

modernize to ESM with Node.js 18+ and TypeScript support
BREAKING CHANGE: This release modernizes the package to current standards and introduces several breaking changes:

  • Minimum Node.js version is now 18.0.0 (previously 12+)
  • Package is now ESM-only, CommonJS (require()) is no longer supported
  • All imports must use ESM syntax (import instead of require)
  • CLI preload flag changed from -r to --import
  • Converted entire codebase from CommonJS to ES Modules

New features:

  • Full TypeScript support with included .d.ts files (no build step required)
  • Comprehensive JSDoc type annotations for better IDE support
  • Modern package exports for better import resolution
  • Updated dependencies to latest versions (dotenv ^16.4.7, jest ^29.7.0, standard ^17.1.2)
  • GitHub Actions workflow updated to test Node 18, 20, and 22

Migration guide included in MIGRATION.md for users upgrading from v2.x.

Users must update their code from:

require('dotenv-defaults/config')

To:

import 'dotenv-defaults/config'

See MIGRATION.md for complete upgrade instructions.

v5.0.2

27 Jun 03:43

Choose a tag to compare

5.0.2 (2022-06-27)

Bug Fixes

v5.0.1

27 Jun 03:40

Choose a tag to compare

5.0.1 (2022-06-27)

Bug Fixes

v5.0.0

17 Jan 17:24

Choose a tag to compare

5.0.0 (2022-01-17)

Bug Fixes

BREAKING CHANGES

  • just jumping to latest

v4.0.0

17 Jan 14:46

Choose a tag to compare

4.0.0 (2022-01-17)

Features

BREAKING CHANGES

  • dropped support for Node v10

v3.0.2

17 Jan 17:22

Choose a tag to compare

fix: resolving breaking change earlier

v3.0.1

17 Jan 14:39

Choose a tag to compare

3.0.1 (2022-01-17)

Bug Fixes

v3.0.0

17 Sep 16:47
1133101

Choose a tag to compare

3.0.0 (2021-09-17)

Features

  • Adding support for dotenv 10 (ae09754)

BREAKING CHANGES

  • dropping support for Node v8 and v9 as well as dotenv 8 and 9

v2.0.2

03 Jun 05:06
1c4090f

Choose a tag to compare

2.0.2 (2021-06-03)

Bug Fixes

v2.0.1

20 Aug 18:39
d14a885

Choose a tag to compare

2.0.1 (2020-08-20)

Bug Fixes