Merge pull request #411 from toddbluhm/release-11.0.0

feat: version 11.0.0 release
This commit is contained in:
Todd Bluhm 2025-08-22 19:02:50 -08:00 committed by GitHub
commit 6ced969122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 7 deletions

View File

@ -1,12 +1,23 @@
# Changelog
## Landed in master
## 11.0.0
- **Upgrade**: Upgraded dependency `commander` to `13.x`
- **Upgrade**: Upgraded dependency `cross-spawn` to `7.x`
- **Upgrade**: Upgraded all devDependencies `ts-standard`, `sinon`
- **Feature**: support both `$var` and `${var}` when expanding vars
- **Feature**: Added support for nested env variables with the `--recursive` flag
- **BREAKING**: Drop support for nodejs `v8` to `v20.9`. The minimum supported nodejs version is now `v20.10`.
- **BREAKING**: Removed `-r` flag and use only `-f` flag.
- **BREAKING**: Support inline comments in `.env` files. A `#` character now signifies the start of an inline comment, unless the value is surrounded by quotation marks (`"`).
- **BREAKING**: Migrated the repository to ESM modules instead of CommonJS.
- **BREAKING**: Support variable expansion using curly-brace syntax (`${MY_VAR}`), when the `-x` option is enabled.
- **Feature**: Support loading env variables from `.cjs` and `.mjs` files.
- **Feature**: Support loading env variables from `.ts`, `.cts`, and `.mts` files.
- **Feature**: When loading an invalid JSON file, show the original parse error.
- **Feature**: Add a more helpful error message when trying to invoke env-cmd as a standalone command.
- **Feature**: Added support for nested env variables within env files with the `--recursive` flag
- **Docs**: clarify how variable expansion works.
- **Internal**: Replaced Travis CI with GitHub Actions, run unit tests on windows.
- **Internal**: Configure automatic releases to npm from GitHub Actions
- **Internal**: Refactor the loader logic, to make it easier to add other loaders.
- **Upgrade**: Update all dependencies.
- **Upgrade**: Upgraded all devDependencies
## 10.1.0

View File

@ -1,6 +1,6 @@
{
"name": "env-cmd",
"version": "10.1.0",
"version": "11.0.0",
"description": "Executes a command using the environment variables in an env file",
"main": "dist/index.js",
"types": "dist/index.d.ts",