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 --init flag to create a sample config file.
  • --no-compare flag to disable comparison mode in scan usage, and noCompare option in config file.
  • dotenv-diff.config.json
    {
      "strict": false,
      "example": ".env.example",
      "ignore": [
        "NODE_ENV",
        "VITE_MODE"
      ],
      "ignoreUrls": [
        "https://example.com"
      ]
    }

    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.