Release Notes - v2.3.0
Released on 2025-10-07. This version focuses on improving HTML file support, adding configuration file options, and enhancing secret detection with URL ignore capabilities.
- Fixed issue where .env.example would be ignored by git when using --fix flag.
- HTML comments to ignore secret detection in HTML lines (e.g.
<!-- dotenv-diff-ignore -->). - Also ignore html sections with
<!-- dotenv-diff-ignore-start -->and<!-- dotenv-diff-ignore-end -->. - Added option to have a dotenv-diff.config.json file for configuration.
- ignoreUrls option to ignore specific URLs in secret detection (e.g.
https://nomistake.com). - Added
--initflag to create a sample config file. --no-compareflag to disable comparison mode in scan usage, andnoCompareoption in config file.
The above configuration file is a sample config file that disables strict mode, specifies the example file as .env.example, ignores NODE_ENV and VITE_MODE variables, and ignores the URL https://example.com in secret detection. You can customize the settings as needed for your project. All flags you use in the CLI can also be set in the config file.