dotenv-diff 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/CHANGELOG.md +341 -536
  2. package/dist/bin/dotenv-diff.js +0 -0
  3. package/package.json +5 -1
  4. package/dist/cli.d.ts +0 -9
  5. package/dist/cli.js +0 -294
  6. package/dist/diffEnv.d.ts +0 -5
  7. package/dist/diffEnv.js +0 -7
  8. package/dist/index.d.ts +0 -2
  9. package/dist/index.js +0 -2
  10. package/dist/lib/checkGitignore.d.ts +0 -23
  11. package/dist/lib/checkGitignore.js +0 -73
  12. package/dist/lib/diffEnv.d.ts +0 -18
  13. package/dist/lib/diffEnv.js +0 -29
  14. package/dist/lib/parseEnv.d.ts +0 -10
  15. package/dist/lib/parseEnv.js +0 -25
  16. package/dist/parseEnv.d.ts +0 -1
  17. package/dist/parseEnv.js +0 -16
  18. package/dist/src/core/compareScan.d.ts +0 -10
  19. package/dist/src/core/compareScan.d.ts.map +0 -1
  20. package/dist/src/core/compareScan.js +0 -19
  21. package/dist/src/core/compareScan.js.map +0 -1
  22. package/dist/src/core/computeHealthScore.d.ts +0 -8
  23. package/dist/src/core/computeHealthScore.d.ts.map +0 -1
  24. package/dist/src/core/computeHealthScore.js +0 -35
  25. package/dist/src/core/computeHealthScore.js.map +0 -1
  26. package/dist/src/core/cspDetector.d.ts +0 -7
  27. package/dist/src/core/cspDetector.d.ts.map +0 -1
  28. package/dist/src/core/cspDetector.js +0 -38
  29. package/dist/src/core/cspDetector.js.map +0 -1
  30. package/dist/src/core/defaultExcludeKeys.d.ts +0 -7
  31. package/dist/src/core/defaultExcludeKeys.d.ts.map +0 -1
  32. package/dist/src/core/detectClientExposure.d.ts +0 -12
  33. package/dist/src/core/detectClientExposure.d.ts.map +0 -1
  34. package/dist/src/core/detectClientExposure.js +0 -62
  35. package/dist/src/core/detectClientExposure.js.map +0 -1
  36. package/dist/src/core/detectExpirations.d.ts +0 -14
  37. package/dist/src/core/detectExpirations.d.ts.map +0 -1
  38. package/dist/src/core/detectExpirations.js +0 -44
  39. package/dist/src/core/detectExpirations.js.map +0 -1
  40. package/dist/src/core/detectUppercaseKeys.d.ts +0 -9
  41. package/dist/src/core/detectUppercaseKeys.d.ts.map +0 -1
  42. package/dist/src/core/detectUppercaseKeys.js +0 -28
  43. package/dist/src/core/detectUppercaseKeys.js.map +0 -1
  44. package/dist/src/core/determineComparisonFile.d.ts +0 -13
  45. package/dist/src/core/determineComparisonFile.d.ts.map +0 -1
  46. package/dist/src/core/determineComparisonFile.js +0 -33
  47. package/dist/src/core/determineComparisonFile.js.map +0 -1
  48. package/dist/src/core/entropy.d.ts +0 -8
  49. package/dist/src/core/entropy.d.ts.map +0 -1
  50. package/dist/src/core/entropy.js +0 -23
  51. package/dist/src/core/entropy.js.map +0 -1
  52. package/dist/src/core/envDiscovery.d.ts +0 -19
  53. package/dist/src/core/envDiscovery.d.ts.map +0 -1
  54. package/dist/src/core/envDiscovery.js +0 -81
  55. package/dist/src/core/envDiscovery.js.map +0 -1
  56. package/dist/src/core/envPairing.d.ts +0 -8
  57. package/dist/src/core/envPairing.d.ts.map +0 -1
  58. package/dist/src/core/envPairing.js +0 -36
  59. package/dist/src/core/envPairing.js.map +0 -1
  60. package/dist/src/core/envValidator.d.ts +0 -9
  61. package/dist/src/core/envValidator.d.ts.map +0 -1
  62. package/dist/src/core/envValidator.js +0 -103
  63. package/dist/src/core/envValidator.js.map +0 -1
  64. package/dist/src/core/exampleSecretDetector.d.ts +0 -13
  65. package/dist/src/core/exampleSecretDetector.d.ts.map +0 -1
  66. package/dist/src/core/exampleSecretDetector.js +0 -61
  67. package/dist/src/core/exampleSecretDetector.js.map +0 -1
  68. package/dist/src/core/frameworkDetector.d.ts +0 -14
  69. package/dist/src/core/frameworkDetector.d.ts.map +0 -1
  70. package/dist/src/core/frameworkDetector.js +0 -40
  71. package/dist/src/core/frameworkDetector.js.map +0 -1
  72. package/dist/src/core/frameworkValidator.d.ts +0 -10
  73. package/dist/src/core/frameworkValidator.d.ts.map +0 -1
  74. package/dist/src/core/frameworkValidator.js +0 -21
  75. package/dist/src/core/frameworkValidator.js.map +0 -1
  76. package/dist/src/core/frameworks/angularRules.d.ts +0 -4
  77. package/dist/src/core/frameworks/angularRules.d.ts.map +0 -1
  78. package/dist/src/core/helpers/isAllOk.d.ts +0 -9
  79. package/dist/src/core/helpers/isAllOk.d.ts.map +0 -1
  80. package/dist/src/core/helpers/isAllOk.js +0 -16
  81. package/dist/src/core/helpers/isAllOk.js.map +0 -1
  82. package/dist/src/core/helpers/updateTotals.d.ts +0 -19
  83. package/dist/src/core/helpers/updateTotals.d.ts.map +0 -1
  84. package/dist/src/core/helpers/updateTotals.js +0 -37
  85. package/dist/src/core/helpers/updateTotals.js.map +0 -1
  86. package/dist/src/core/parseAndFilterEnv.d.ts +0 -20
  87. package/dist/src/core/parseAndFilterEnv.d.ts.map +0 -1
  88. package/dist/src/core/parseAndFilterEnv.js +0 -22
  89. package/dist/src/core/parseAndFilterEnv.js.map +0 -1
  90. package/dist/src/core/processComparisonFile.d.ts +0 -43
  91. package/dist/src/core/processComparisonFile.d.ts.map +0 -1
  92. package/dist/src/core/processComparisonFile.js +0 -170
  93. package/dist/src/core/processComparisonFile.js.map +0 -1
  94. package/dist/src/core/scan/scanJsonOutput.d.ts +0 -85
  95. package/dist/src/core/scan/scanJsonOutput.d.ts.map +0 -1
  96. package/dist/src/core/scan/scanJsonOutput.js +0 -97
  97. package/dist/src/core/scan/scanJsonOutput.js.map +0 -1
  98. package/dist/src/core/scan/secretDetectors.d.ts +0 -28
  99. package/dist/src/core/scan/secretDetectors.d.ts.map +0 -1
  100. package/dist/src/core/scan/secretDetectors.js +0 -272
  101. package/dist/src/core/scan/secretDetectors.js.map +0 -1
  102. package/dist/src/core/scanFile.d.ts +0 -10
  103. package/dist/src/core/scanFile.d.ts.map +0 -1
  104. package/dist/src/core/scanFile.js +0 -65
  105. package/dist/src/core/scanFile.js.map +0 -1
  106. package/dist/src/core/scanJsonOutput.d.ts +0 -85
  107. package/dist/src/core/scanJsonOutput.d.ts.map +0 -1
  108. package/dist/src/core/scanJsonOutput.js +0 -97
  109. package/dist/src/core/scanJsonOutput.js.map +0 -1
  110. package/dist/src/core/secretDetectors.d.ts +0 -28
  111. package/dist/src/core/secretDetectors.d.ts.map +0 -1
  112. package/dist/src/core/secretDetectors.js +0 -272
  113. package/dist/src/core/secretDetectors.js.map +0 -1
  114. package/dist/src/core/t3env/detectT3Env.d.ts +0 -12
  115. package/dist/src/core/t3env/detectT3Env.d.ts.map +0 -1
  116. package/dist/src/core/t3env/detectT3Env.js +0 -113
  117. package/dist/src/core/t3env/detectT3Env.js.map +0 -1
  118. package/dist/src/core/t3env/t3EnvRules.d.ts +0 -10
  119. package/dist/src/core/t3env/t3EnvRules.d.ts.map +0 -1
  120. package/dist/src/core/t3env/t3EnvRules.js +0 -61
  121. package/dist/src/core/t3env/t3EnvRules.js.map +0 -1
  122. package/dist/src/core/t3env/t3EnvValidator.d.ts +0 -9
  123. package/dist/src/core/t3env/t3EnvValidator.d.ts.map +0 -1
  124. package/dist/src/core/t3env/t3EnvValidator.js +0 -32
  125. package/dist/src/core/t3env/t3EnvValidator.js.map +0 -1
  126. package/dist/src/lib/diffEnv.d.ts +0 -19
  127. package/dist/src/lib/diffEnv.d.ts.map +0 -1
  128. package/dist/src/lib/diffEnv.js +0 -31
  129. package/dist/src/lib/diffEnv.js.map +0 -1
  130. package/dist/src/lib/parseEnv.d.ts +0 -11
  131. package/dist/src/lib/parseEnv.d.ts.map +0 -1
  132. package/dist/src/lib/parseEnv.js +0 -26
  133. package/dist/src/lib/parseEnv.js.map +0 -1
  134. package/dist/src/services/codeBaseScanner.d.ts +0 -8
  135. package/dist/src/services/codeBaseScanner.d.ts.map +0 -1
  136. package/dist/src/services/codeBaseScanner.js +0 -110
  137. package/dist/src/services/codeBaseScanner.js.map +0 -1
  138. package/dist/src/services/duplicates.d.ts +0 -12
  139. package/dist/src/services/duplicates.d.ts.map +0 -1
  140. package/dist/src/services/duplicates.js +0 -36
  141. package/dist/src/services/duplicates.js.map +0 -1
  142. package/dist/src/services/ensureFilesOrPrompt.d.ts +0 -22
  143. package/dist/src/services/ensureFilesOrPrompt.d.ts.map +0 -1
  144. package/dist/src/services/ensureFilesOrPrompt.js +0 -76
  145. package/dist/src/services/ensureFilesOrPrompt.js.map +0 -1
  146. package/dist/src/services/scanOutputToConsole.d.ts +0 -17
  147. package/dist/src/services/scanOutputToConsole.d.ts.map +0 -1
  148. package/dist/src/services/scanOutputToConsole.js +0 -127
  149. package/dist/src/services/scanOutputToConsole.js.map +0 -1
  150. package/dist/src/ui/compare/printAutoFix.d.ts +0 -16
  151. package/dist/src/ui/compare/printAutoFix.d.ts.map +0 -1
  152. package/dist/src/ui/compare/printAutoFix.js +0 -34
  153. package/dist/src/ui/compare/printAutoFix.js.map +0 -1
  154. package/dist/src/ui/compare/printAutoFixApplied.d.ts +0 -7
  155. package/dist/src/ui/compare/printAutoFixApplied.d.ts.map +0 -1
  156. package/dist/src/ui/compare/printAutoFixApplied.js +0 -22
  157. package/dist/src/ui/compare/printAutoFixApplied.js.map +0 -1
  158. package/dist/src/ui/compare/printDuplicates.d.ts +0 -17
  159. package/dist/src/ui/compare/printDuplicates.d.ts.map +0 -1
  160. package/dist/src/ui/compare/printDuplicates.js +0 -25
  161. package/dist/src/ui/compare/printDuplicates.js.map +0 -1
  162. package/dist/src/ui/compare/printFixTips.d.ts +0 -11
  163. package/dist/src/ui/compare/printFixTips.d.ts.map +0 -1
  164. package/dist/src/ui/compare/printFixTips.js +0 -46
  165. package/dist/src/ui/compare/printFixTips.js.map +0 -1
  166. package/dist/src/ui/compare/printSuccess.d.ts +0 -11
  167. package/dist/src/ui/compare/printSuccess.d.ts.map +0 -1
  168. package/dist/src/ui/compare/printSuccess.js +0 -27
  169. package/dist/src/ui/compare/printSuccess.js.map +0 -1
  170. package/dist/src/ui/scan/printCspWarning.d.ts +0 -9
  171. package/dist/src/ui/scan/printCspWarning.d.ts.map +0 -1
  172. package/dist/src/ui/scan/printCspWarning.js +0 -20
  173. package/dist/src/ui/scan/printCspWarning.js.map +0 -1
  174. package/dist/src/ui/scan/printEnvWarnings.d.ts +0 -8
  175. package/dist/src/ui/scan/printEnvWarnings.d.ts.map +0 -1
  176. package/dist/src/ui/scan/printEnvWarnings.js +0 -20
  177. package/dist/src/ui/scan/printEnvWarnings.js.map +0 -1
  178. package/dist/src/ui/scan/printExposedVars.d.ts +0 -8
  179. package/dist/src/ui/scan/printExposedVars.d.ts.map +0 -1
  180. package/dist/src/ui/scan/printExposedVars.js +0 -24
  181. package/dist/src/ui/scan/printExposedVars.js.map +0 -1
  182. package/dist/src/ui/scan/printT3EnvWarnings.d.ts +0 -8
  183. package/dist/src/ui/scan/printT3EnvWarnings.d.ts.map +0 -1
  184. package/dist/src/ui/scan/printT3EnvWarnings.js +0 -20
  185. package/dist/src/ui/scan/printT3EnvWarnings.js.map +0 -1
  186. package/dist/src/ui/scan/printUniqueVariables.d.ts +0 -7
  187. package/dist/src/ui/scan/printUniqueVariables.d.ts.map +0 -1
  188. package/dist/src/ui/scan/printUniqueVariables.js +0 -14
  189. package/dist/src/ui/scan/printUniqueVariables.js.map +0 -1
  190. package/dist/src/ui/scan/printVariables.d.ts +0 -10
  191. package/dist/src/ui/scan/printVariables.d.ts.map +0 -1
  192. package/dist/src/ui/scan/printVariables.js +0 -37
  193. package/dist/src/ui/scan/printVariables.js.map +0 -1
  194. package/dist/src/ui/shared/printProgress.d.ts +0 -24
  195. package/dist/src/ui/shared/printProgress.d.ts.map +0 -1
  196. package/dist/src/ui/shared/printProgress.js +0 -43
  197. package/dist/src/ui/shared/printProgress.js.map +0 -1
  198. package/dist/types/scanUsage.d.ts +0 -43
  199. package/dist/types/scanUsage.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,572 +1,377 @@
1
1
  # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
- This project follows [Keep a Changelog](https://keepachangelog.com/) and [Semantic Versioning](https://semver.org/).
5
4
 
6
- ## [Unreleased]
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
7
8
 
8
- ### Added
9
+ ## [](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.1...vnull) (2026-01-26)
9
10
 
10
- - Added default excluded keys to filterIgnoredKeys (e.g. NODE_ENV, VITE_MODE, etc).
11
- - Added Warn if PUBLIC_ or VITE_ contains sensitive keywords in sveltekit framework rules.
11
+ ### Bug Fixes
12
12
 
13
- ### Changed
13
+ * scanning color magenta ([b90107b](https://github.com/Chrilleweb/dotenv-diff/commit/b90107b0163de3e0ce5def6f235bc40510be71b7))
14
14
 
15
- - Changed text to 'Scanning environment variable usage against:' in scan usage header.
15
+ ### Changelog
16
16
 
17
- ### Fixed
17
+ All notable changes to this project will be documented in this file. Dates are displayed in UTC.
18
18
 
19
- - Fixed `.env.example` creation prompt not appearing for variant `.env` files (e.g. `.env.local`).
19
+ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
20
20
 
21
- ## [2.5.0] - 2026-01-24
21
+ #### [v2.5.2](https://github.com/Chrilleweb/dotenv-diff/compare/v2.5.1...v2.5.2)
22
22
 
23
- ### Added
23
+ - fix: scanning color magenta [`#223`](https://github.com/Chrilleweb/dotenv-diff/pull/223)
24
+ - chore: trying with updated npm [`#222`](https://github.com/Chrilleweb/dotenv-diff/pull/222)
25
+ - chore: 2 workflows for npm publish and tags release [`#221`](https://github.com/Chrilleweb/dotenv-diff/pull/221)
24
26
 
25
- - Added default excluded keys to filterIgnoredKeys (e.g. NODE_ENV, VITE_MODE, etc).
26
- - Added Warn if PUBLIC_ or VITE_ contains sensitive keywords in sveltekit framework rules.
27
+ #### [v2.5.1](https://github.com/Chrilleweb/dotenv-diff/compare/2.5.0...v2.5.1)
27
28
 
28
- ### Changed
29
+ > 26 January 2026
29
30
 
30
- - Changed text to 'Scanning environment variable usage against:' in scan usage header.
31
+ - chore: removed publish fra package manager [`#220`](https://github.com/Chrilleweb/dotenv-diff/pull/220)
32
+ - chore: npm publish false [`#219`](https://github.com/Chrilleweb/dotenv-diff/pull/219)
33
+ - chore: package.json [`#217`](https://github.com/Chrilleweb/dotenv-diff/pull/217)
34
+ - chore: skipChek npm [`#216`](https://github.com/Chrilleweb/dotenv-diff/pull/216)
35
+ - chore: release yml [`#215`](https://github.com/Chrilleweb/dotenv-diff/pull/215)
36
+ - chore: release yml file [`#214`](https://github.com/Chrilleweb/dotenv-diff/pull/214)
37
+ - chore: updated release.yml [`#213`](https://github.com/Chrilleweb/dotenv-diff/pull/213)
38
+ - chore: updated pnpm in workflows [`#212`](https://github.com/Chrilleweb/dotenv-diff/pull/212)
39
+ - chore: pnpm frozen lockfile [`#211`](https://github.com/Chrilleweb/dotenv-diff/pull/211)
40
+ - chore: debug release yml file [`#210`](https://github.com/Chrilleweb/dotenv-diff/pull/210)
41
+ - chore: updated gitignore [`#209`](https://github.com/Chrilleweb/dotenv-diff/pull/209)
42
+ - fix: removed tests from release-it [`#208`](https://github.com/Chrilleweb/dotenv-diff/pull/208)
43
+ - fix: modifed release.yml [`#207`](https://github.com/Chrilleweb/dotenv-diff/pull/207)
44
+ - fix: standardize scan output colors [`#206`](https://github.com/Chrilleweb/dotenv-diff/pull/206)
45
+ - chore: setup release-it [`#204`](https://github.com/Chrilleweb/dotenv-diff/pull/204)
46
+ - chore: release v2.5.1 [`68723f6`](https://github.com/Chrilleweb/dotenv-diff/commit/68723f61dc7c426341fc13545de9f461aa964b5a)
47
+ - ci: release yml [`a1db55f`](https://github.com/Chrilleweb/dotenv-diff/commit/a1db55f7701f3328396359f90154cc3ecab5cb69)
48
+ - chore: release npm outside og release-it [`b685037`](https://github.com/Chrilleweb/dotenv-diff/commit/b685037b8a8f1e5a5fd59d21e7a877d11dc75196)
49
+
50
+ #### [2.5.0](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.11...2.5.0)
51
+
52
+ > 24 January 2026
53
+
54
+ - v2.5.0 [`#203`](https://github.com/Chrilleweb/dotenv-diff/pull/203)
55
+ - codecov in readme [`#202`](https://github.com/Chrilleweb/dotenv-diff/pull/202)
56
+ - added lcov for coverage data [`#201`](https://github.com/Chrilleweb/dotenv-diff/pull/201)
57
+ - coverage token [`#200`](https://github.com/Chrilleweb/dotenv-diff/pull/200)
58
+ - JSDoc for interface [`#199`](https://github.com/Chrilleweb/dotenv-diff/pull/199)
59
+ - JSDoc for diffEnv type [`#198`](https://github.com/Chrilleweb/dotenv-diff/pull/198)
60
+ - Improve documentation [`#197`](https://github.com/Chrilleweb/dotenv-diff/pull/197)
61
+ - added default exclude keys / framework rules / ISSUE templates [`#193`](https://github.com/Chrilleweb/dotenv-diff/pull/193)
62
+ - deter unit tests [`a5135e4`](https://github.com/Chrilleweb/dotenv-diff/commit/a5135e4b029ce86ad63a13593d21d9741e0299f9)
63
+ - calculate stats for compare [`70c8608`](https://github.com/Chrilleweb/dotenv-diff/commit/70c8608467f911c536f4d33864727bea2d8fae4a)
64
+ - updated tests [`6b0d0a2`](https://github.com/Chrilleweb/dotenv-diff/commit/6b0d0a226135b9a2884076f588eb0a8372a6e3b4)
65
+
66
+ #### [v2.4.11](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.10...v2.4.11)
67
+
68
+ > 20 January 2026
69
+
70
+ - v2.4.11 [`#192`](https://github.com/Chrilleweb/dotenv-diff/pull/192)
71
+ - sveltekit rules update [`#191`](https://github.com/Chrilleweb/dotenv-diff/pull/191)
72
+ - refactor of compareMany [`#190`](https://github.com/Chrilleweb/dotenv-diff/pull/190)
73
+ - scanJsonOutput tests coverage [`#189`](https://github.com/Chrilleweb/dotenv-diff/pull/189)
74
+ - changed image on clean output [`#188`](https://github.com/Chrilleweb/dotenv-diff/pull/188)
75
+ - secretDetectors unit tests [`bc73926`](https://github.com/Chrilleweb/dotenv-diff/commit/bc73926ee3d9ba574b9938daaf7f9af995bb8215)
76
+ - sveltekit rules opdate [`ef2f590`](https://github.com/Chrilleweb/dotenv-diff/commit/ef2f5906eeeaeda90ed79e40e102b8ba4659820c)
77
+ - sveltekit rules improved [`9db94dd`](https://github.com/Chrilleweb/dotenv-diff/commit/9db94dd7ee1bd1c8ea5ffb52583dc9e65bff8e7f)
31
78
 
32
- ### Fixed
79
+ #### [v2.4.10](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.9...v2.4.10)
33
80
 
34
- - Fixed `.env.example` creation prompt not appearing for variant `.env` files (e.g. `.env.local`).
81
+ > 19 January 2026
35
82
 
36
- ## [2.4.11] - 2026-01-20
83
+ - Updated dependencies + v2.4.10 [`#187`](https://github.com/Chrilleweb/dotenv-diff/pull/187)
84
+ - Fixed prompt bug [`#186`](https://github.com/Chrilleweb/dotenv-diff/pull/186)
85
+ - Compare tests and json fix [`#185`](https://github.com/Chrilleweb/dotenv-diff/pull/185)
86
+ - envPairing tests and rename [`#183`](https://github.com/Chrilleweb/dotenv-diff/pull/183)
87
+ - envDiscovery tests and moved to service folder [`#182`](https://github.com/Chrilleweb/dotenv-diff/pull/182)
88
+ - detectEnvExp [`#181`](https://github.com/Chrilleweb/dotenv-diff/pull/181)
89
+ - compareScan unit tests [`#180`](https://github.com/Chrilleweb/dotenv-diff/pull/180)
90
+ - scanCodebase tests + optinal files [`#179`](https://github.com/Chrilleweb/dotenv-diff/pull/179)
91
+ - frameworkValidator 100% test coverage [`#178`](https://github.com/Chrilleweb/dotenv-diff/pull/178)
92
+ - frameworkDetector unit tests [`#177`](https://github.com/Chrilleweb/dotenv-diff/pull/177)
93
+ - Secret detector unit tests [`#176`](https://github.com/Chrilleweb/dotenv-diff/pull/176)
94
+ - code of conduct [`#174`](https://github.com/Chrilleweb/dotenv-diff/pull/174)
95
+ - added test for scanFile + fixed regex for .env matches [`#173`](https://github.com/Chrilleweb/dotenv-diff/pull/173)
96
+ - Test coverage [`#172`](https://github.com/Chrilleweb/dotenv-diff/pull/172)
97
+ - compare unit tests [`4631d29`](https://github.com/Chrilleweb/dotenv-diff/commit/4631d29c368151ba6e50d18f4e2f05a27a3fd772)
98
+ - filwalker test coverage [`9a2a20d`](https://github.com/Chrilleweb/dotenv-diff/commit/9a2a20d4a5f6f48215ec703fa903a77888f30bce)
99
+ - updated dependencies + v2.4.10 [`251ebad`](https://github.com/Chrilleweb/dotenv-diff/commit/251ebad56acc34cecf3a5b1eb2472c1b930c8ddb)
37
100
 
38
- ### Added
101
+ #### [v2.4.9](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.8...v2.4.9)
39
102
 
40
- - SvelteKit framework rule (PUBLIC_ env vars cant be accessed through $env/dynamic/private).
103
+ > 13 January 2026
41
104
 
42
- ### Fixed
105
+ - fixed repo url in package json [`#171`](https://github.com/Chrilleweb/dotenv-diff/pull/171)
106
+ - fixed sveltekit bug [`#170`](https://github.com/Chrilleweb/dotenv-diff/pull/170)
107
+ - updated dev depen [`12fc9b4`](https://github.com/Chrilleweb/dotenv-diff/commit/12fc9b4818fe66ca97f6bdb1a58d7a6151095162)
43
108
 
44
- - Fixed sveltekit framework rules - $env imports were not being detected correctly in some edge cases.
109
+ #### [v2.4.8](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.7...v2.4.8)
110
+
111
+ > 13 January 2026
112
+
113
+ - Fixed test [`#169`](https://github.com/Chrilleweb/dotenv-diff/pull/169)
114
+ - Fixed Sveltekit rules [`#168`](https://github.com/Chrilleweb/dotenv-diff/pull/168)
115
+ - Renamed function [`#166`](https://github.com/Chrilleweb/dotenv-diff/pull/166)
116
+ - moved framework core files to framework folder [`#165`](https://github.com/Chrilleweb/dotenv-diff/pull/165)
117
+ - test coverage [`3bd5312`](https://github.com/Chrilleweb/dotenv-diff/commit/3bd53126617e9d58b08e1cc79412f3450199b79d)
118
+ - updated sveltekit rules [`3db16fe`](https://github.com/Chrilleweb/dotenv-diff/commit/3db16fee1a05fc1f6dcbc3cbf4152e5cfbd22c36)
119
+ - parseEnv error handling [`14dc4f7`](https://github.com/Chrilleweb/dotenv-diff/commit/14dc4f7daa65c18945fc1c92a4905d63c802cba8)
120
+
121
+ #### [v2.4.7](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.6...v2.4.7)
122
+
123
+ > 11 January 2026
124
+
125
+ - v2.4.7 [`#164`](https://github.com/Chrilleweb/dotenv-diff/pull/164)
126
+ - Updated README [`#163`](https://github.com/Chrilleweb/dotenv-diff/pull/163)
127
+ - Added Progressbar for scan mode [`#162`](https://github.com/Chrilleweb/dotenv-diff/pull/162)
128
+ - Moved constants to constants file [`#161`](https://github.com/Chrilleweb/dotenv-diff/pull/161)
129
+ - exitresult + type + exit decision [`#160`](https://github.com/Chrilleweb/dotenv-diff/pull/160)
130
+ - interfaces, types and documentation + constants [`#159`](https://github.com/Chrilleweb/dotenv-diff/pull/159)
131
+ - Fixed path normalization issue [`#158`](https://github.com/Chrilleweb/dotenv-diff/pull/158)
132
+ - Added PR template [`#156`](https://github.com/Chrilleweb/dotenv-diff/pull/156)
133
+ - moved scanjson output out of types [`e0d80c0`](https://github.com/Chrilleweb/dotenv-diff/commit/e0d80c09c1d6d8d3a62a1e606cad4bf5ae22bd1b)
134
+ - Moved types arround for better readability [`e9d6424`](https://github.com/Chrilleweb/dotenv-diff/commit/e9d6424477a702798182efee46f7634996310471)
135
+ - framework rules cross-platform consistency. [`4939788`](https://github.com/Chrilleweb/dotenv-diff/commit/4939788e120fb17fcb0d807ade599bf9f7af88ad)
136
+
137
+ #### [v2.4.6](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.5...v2.4.6)
138
+
139
+ > 6 January 2026
140
+
141
+ - added BOM hadnling [`#155`](https://github.com/Chrilleweb/dotenv-diff/pull/155)
142
+ - removed unused await + added comment for documentation [`#153`](https://github.com/Chrilleweb/dotenv-diff/pull/153)
143
+ - bump(deps-dev): bump the dev-dependencies group with 2 updates [`#154`](https://github.com/Chrilleweb/dotenv-diff/pull/154)
144
+ - scan output to json modified [`#152`](https://github.com/Chrilleweb/dotenv-diff/pull/152)
145
+ - scanFile [`#151`](https://github.com/Chrilleweb/dotenv-diff/pull/151)
146
+ - Maintiance code [`#150`](https://github.com/Chrilleweb/dotenv-diff/pull/150)
147
+ - refactor [`#149`](https://github.com/Chrilleweb/dotenv-diff/pull/149)
148
+ - README update [`#148`](https://github.com/Chrilleweb/dotenv-diff/pull/148)
149
+ - updated vitest timeout + Set array + maintaince [`c117cb2`](https://github.com/Chrilleweb/dotenv-diff/commit/c117cb27a1df7736a97e40bdab4994fd7c833338)
150
+ - updated readme [`2f8abb8`](https://github.com/Chrilleweb/dotenv-diff/commit/2f8abb84084d129414456e2cf47f6a8297625fcd)
151
+ - Discovery type into types file [`32ff023`](https://github.com/Chrilleweb/dotenv-diff/commit/32ff02364e54e8b63e9fece82c2bd955eb68ef89)
152
+
153
+ #### [v2.4.5](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.4...v2.4.5)
154
+
155
+ > 29 December 2025
156
+
157
+ - bump(deps-dev): bump the dev-dependencies group with 2 updates [`#146`](https://github.com/Chrilleweb/dotenv-diff/pull/146)
158
+ - v2.4.5 [`#147`](https://github.com/Chrilleweb/dotenv-diff/pull/147)
159
+ - Update framework rules. [`#145`](https://github.com/Chrilleweb/dotenv-diff/pull/145)
160
+ - Changed UI for framework warnings [`#144`](https://github.com/Chrilleweb/dotenv-diff/pull/144)
161
+ - updated next js rules reason text [`ce91701`](https://github.com/Chrilleweb/dotenv-diff/commit/ce9170122a59779d5811cd0f4f463a52fb258e9e)
162
+ - updated sveltekit framework warnings [`ffaa28b`](https://github.com/Chrilleweb/dotenv-diff/commit/ffaa28bcbcf8fa3e910baa3d5eb20abfd757314b)
163
+ - updated changelog [`0af3bce`](https://github.com/Chrilleweb/dotenv-diff/commit/0af3bced6f5783b73bb9139efe313b9c91a0262b)
164
+
165
+ #### [v2.4.4](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.3...v2.4.4)
166
+
167
+ > 27 December 2025
168
+
169
+ - Fixed bug in next js framework rules [`#143`](https://github.com/Chrilleweb/dotenv-diff/pull/143)
170
+ - fixed nextjs warnings bug [`53df709`](https://github.com/Chrilleweb/dotenv-diff/commit/53df709714f99359061bb9b99a02e30e7c0c3c62)
171
+
172
+ #### [v2.4.3](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.1...v2.4.3)
173
+
174
+ > 27 December 2025
175
+
176
+ - removed t3-env integration [`#142`](https://github.com/Chrilleweb/dotenv-diff/pull/142)
177
+ - fixed t3env bugs [`#141`](https://github.com/Chrilleweb/dotenv-diff/pull/141)
45
178
 
46
- ## [2.4.10] - 2026-01-19
179
+ #### [v2.4.1](https://github.com/Chrilleweb/dotenv-diff/compare/v2.4.0...v2.4.1)
47
180
 
48
- ### Changed
181
+ > 27 December 2025
182
+
183
+ - v2.4.1 [`#140`](https://github.com/Chrilleweb/dotenv-diff/pull/140)
184
+ - T3-env bug fix på false positive in secret detection [`#139`](https://github.com/Chrilleweb/dotenv-diff/pull/139)
185
+ - Scan stats [`#138`](https://github.com/Chrilleweb/dotenv-diff/pull/138)
186
+ - fixed t3env mutible bug + secret detection false potitive warning [`01f0c13`](https://github.com/Chrilleweb/dotenv-diff/commit/01f0c1313b8449d33e6f91ddfd738f614df5856d)
187
+ - changed scan stats name [`c821d85`](https://github.com/Chrilleweb/dotenv-diff/commit/c821d8564bfef9c6826c7d00a357022b507cc745)
49
188
 
50
- - Changed total variables to total variable references in scan statistics output.
189
+ #### [v2.4.0](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.12...v2.4.0)
51
190
 
52
- ### Fixed
191
+ > 27 December 2025
53
192
 
54
- - Fixed compare mode json output missing stats
55
- - Fixed compare mode issue where it would warn about .env.example not being gitignored in edgde cases.
56
- - Fixed create example file prompt bug.
193
+ - Example warnings to json [`#137`](https://github.com/Chrilleweb/dotenv-diff/pull/137)
194
+ - fixed bug where it would give double warnings on framework specific w… [`#136`](https://github.com/Chrilleweb/dotenv-diff/pull/136)
195
+ - v2.4.0 [`#135`](https://github.com/Chrilleweb/dotenv-diff/pull/135)
196
+ - Fixed compare mode value mismatch count [`#134`](https://github.com/Chrilleweb/dotenv-diff/pull/134)
197
+ - fixed CLI UI bug [`#133`](https://github.com/Chrilleweb/dotenv-diff/pull/133)
198
+ - nextjs and t3env rules fixed [`3678e4d`](https://github.com/Chrilleweb/dotenv-diff/commit/3678e4d83ab97c25ac4bc9e44dfdaad9e14196a6)
199
+ - fixed bug where it would give double warnings on framework specific warnings [`21c5d73`](https://github.com/Chrilleweb/dotenv-diff/commit/21c5d7367de064d4a2ff1c7f3d777ea2dd142db9)
200
+ - also added test for sveltekit for double warnings [`4d311ff`](https://github.com/Chrilleweb/dotenv-diff/commit/4d311ff28763b056dcfc671b1ebc43d668d9d389)
57
201
 
58
- ## [2.4.9] - 2026-01-13
202
+ #### [v2.3.12](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.11...v2.3.12)
59
203
 
60
- ### Fixed
204
+ > 18 December 2025
61
205
 
62
- - Fixed sveltekit framework bug where process.env usage in +server.ts files were given a false warning.
206
+ - v2.3.12 [`#131`](https://github.com/Chrilleweb/dotenv-diff/pull/131)
207
+ - bump(deps-dev): bump @types/node from 24.10.4 to 25.0.2 in the dev-dependencies group across 1 directory [`#119`](https://github.com/Chrilleweb/dotenv-diff/pull/119)
208
+ - Updated README [`#130`](https://github.com/Chrilleweb/dotenv-diff/pull/130)
209
+ - Changelog + Fixed false positive secret detection [`#129`](https://github.com/Chrilleweb/dotenv-diff/pull/129)
210
+ - Removed used variables output from scan usage to reduce noise. [`#128`](https://github.com/Chrilleweb/dotenv-diff/pull/128)
211
+ - Added warnings to scan stats. [`#126`](https://github.com/Chrilleweb/dotenv-diff/pull/126)
212
+ - Shortened config file path in CLI output to show only the filename. [`#127`](https://github.com/Chrilleweb/dotenv-diff/pull/127)
213
+ - Moved healthscore down on output [`#125`](https://github.com/Chrilleweb/dotenv-diff/pull/125)
214
+ - docs: shorten resolveFromCwd JSDoc [`#123`](https://github.com/Chrilleweb/dotenv-diff/pull/123)
215
+ - Updated dependencies [`#118`](https://github.com/Chrilleweb/dotenv-diff/pull/118)
216
+ - Format code for tests --format flag [`#115`](https://github.com/Chrilleweb/dotenv-diff/pull/115)
217
+ - small fix for runScanMode function [`#111`](https://github.com/Chrilleweb/dotenv-diff/pull/111)
218
+ - test(sveltekit): allow private env vars in +page.server.ts [`#112`](https://github.com/Chrilleweb/dotenv-diff/pull/112)
219
+ - docs: improve README wording and clarity [`#109`](https://github.com/Chrilleweb/dotenv-diff/pull/109)
220
+ - added contribution.md [`#106`](https://github.com/Chrilleweb/dotenv-diff/pull/106)
221
+ - Codebase + readme update + security.md [`#104`](https://github.com/Chrilleweb/dotenv-diff/pull/104)
222
+ - code maintaince [`#102`](https://github.com/Chrilleweb/dotenv-diff/pull/102)
223
+ - format code for tests --format flag [`48a9b55`](https://github.com/Chrilleweb/dotenv-diff/commit/48a9b55b9b063649dc3f2693bfd53d47c1643567)
224
+ - Fixed false positive secret detection [`0591e7e`](https://github.com/Chrilleweb/dotenv-diff/commit/0591e7ef8584380bd0cc501778fc5c047c244758)
225
+ - bump(deps-dev): bump @types/node [`09abdb8`](https://github.com/Chrilleweb/dotenv-diff/commit/09abdb8857b818a2c7c8641a0e65976ffe0bfcf8)
63
226
 
64
- ## [2.4.8] - 2026-01-13
227
+ #### [v2.3.11](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.10...v2.3.11)
65
228
 
66
- ### Added
229
+ > 13 December 2025
67
230
 
68
- - Added duplicated warnings to decrease health score.
231
+ - Removed low severity secrets from codebase scanner results, because i… [`#101`](https://github.com/Chrilleweb/dotenv-diff/pull/101)
232
+ - Removed low severity secrets from codebase scanner results, because it made too much noise. [`8ccbe16`](https://github.com/Chrilleweb/dotenv-diff/commit/8ccbe16a1942065a6b187fe48e0c14426aa7e312)
69
233
 
70
- ### Fixed
234
+ #### [v2.3.10](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.9...v2.3.10)
71
235
 
72
- - Fixed rules for sveltekit framework to correctly identify environment variable usage in $env/static/private and $env/dynamic/private imports.
73
- - Fixed secret detection to ignore environment variable usage in HTML tag content.
74
- - Fixed duplicate warnings on nextjs framework rules and logged env vars in console warnings.
75
- - Fixed nextjs framework rules to follow the documentation more closely.
236
+ > 11 December 2025
76
237
 
77
- ## [2.4.7] - 2026-01-11
78
-
79
- ### Added
80
-
81
- - Added progress bar to codebase scanner.
82
-
83
- ### Fixed
84
-
85
- - Fixed path normalization issue where file paths were not consistently displayed across different operating systems.
86
-
87
- ## [2.4.6] - 2026-01-06
88
-
89
- ### Fixed
90
-
91
- - Modified JSON output for scan usage.
92
-
93
- ## [2.4.5] - 2025-12-29
94
-
95
- ### Changed
96
-
97
- - Changed UI for framework warnings to include framework name + better formatting.
98
- - Updated nextjs framework rules.
99
- - Updated sveltekit framework rules.
100
-
101
- ## [2.4.4] - 2025-12-27
102
-
103
- ### Fixed
104
-
105
- - Fixed bug in next js framework rules
106
-
107
- ## [2.4.3] - 2025-12-27
108
-
109
- ### Changed
110
-
111
- - Removed T3-env specific warnings and related code from the codebase scanner.
112
-
113
- ## [2.4.2] - 2025-12-27
114
-
115
- ### Fixed
116
-
117
- - Fixed bug where t3-env schema was not loaded correctly in some edge cases.
118
- - Fixed duplicate t3-env warnings being shown for the same variable.
119
-
120
- ## [2.4.1] - 2025-12-26
121
-
122
- ### Changed
123
-
124
- - Added Example warings to JSON output of scan usage.
125
- - Changed scan statistics name from "Total usages found" to "Total variables".
126
-
127
- ### Fixed
128
-
129
- - Fixed nextjs framework rules bug where multiple warnings could be generated for the same usage.
130
- - Fixed t3-env framework rules bug where multiple warnings could be generated for the same usage.
131
- - Fixed false positive secret detection for certain harmless attribute keys in codebase scanner.
132
-
133
- ## [2.4.0] - 2025-12-26
134
-
135
- ### Changed
136
-
137
- - Added spacing before missing example file message in scan usage output.
138
- - Changed path display for print missing example file message to show only filename instead of full path.
139
-
140
- ### Fixed
141
-
142
- - Fixed compare mode value mismatch count not showing in stats output if --check-values flag isn't used.
143
- - Fixed t3-env integration not working as expected in some edge cases.
144
- - Fixed nextjs framework validator not working as expected in some edge cases.
145
-
146
- ## [2.3.12] - 2025-12-18
147
-
148
- ### Added
149
-
150
- - Added warnings count to scan usage stats.
151
-
152
- ### Changed
153
-
154
- - Updated dependencies to latest versions.
155
- - Moved `healthScore` further down on the console output for better visibility of issues.
156
- - Removed used variables output from scan usage to reduce noise.
157
- - Removed header output from scan usage to reduce noise.
158
- - Shortened config file path in CLI output to show only the filename.
159
- - Updated README documentation for better clarity.
160
-
161
- ### Fixed
162
-
163
- - Fixed false positive secret detection for certain harmless attribute keys in codebase scanner.
164
- - Fixed print fix bug
165
-
166
- ## [2.3.11] - 2025-12-13
167
-
168
- ### Changed
169
-
170
- - Removed low severity secrets from codebase scanner results, because it made too much noise.
171
-
172
- ## [2.3.10] - 2025-12-11
173
-
174
- ### Added
175
-
176
- - More jsDocs for better code documentation.
177
- - t3-env integration to validate environment variable usage against T3 stack schema.
178
-
179
- ### Fixed
180
-
181
- - Removed unused code for old --no-compare option.
182
-
183
- ## [2.3.9] - 2025-12-09
184
-
185
- ### Added
186
-
187
- - Added expiration date warnings for environment variables in codebase scanner.
188
- - Added inconsistent naming warnings for environment variables in codebase scanner.
189
-
190
- ### Changed
191
-
192
- - Changed health score calculation weights for better accuracy.
193
- - Removed CSP detection from codebase scanner, as it was causing false positives in some cases for backend frameworks.
194
-
195
- ## [2.3.8] - 2025-12-08
196
-
197
- ### Added
198
-
199
- - Added variables not using uppercase letters warning to codebase scanner.
200
- - Added health score feature to codebase scanner.
201
-
202
- ### Changed
203
-
204
- - Removed --no-compare option from CLI and config file.
205
- - Updated dependencies to latest versions.
206
-
207
- ### Fixed
208
-
209
- - Fixed issue where show-stats and show-unused options were not working as expected in config file.
210
-
211
- ## [2.3.7] - 2025-12-03
212
-
213
- ### Added
214
-
215
- - Added warning for environment variables logged to console in codebase scanner.
216
-
217
- ### Changed
218
-
219
- - Updated dependencies to latest versions.
220
-
221
- ### Fixed
222
-
223
- - Updated jsDocs for better code documentation.
224
- - Updated some functions for better type safety.
225
-
226
- ## [2.3.6] - 2025-12-02
227
-
228
- ### Added
229
-
230
- - Added strict mode handling for framework specific warnings.
231
- - Added Next.js specific warnings to framework validator.
232
-
233
- ### Fixed
234
-
235
- - Nameing convention fix in frameworkValidator.ts
236
-
237
- ## [2.3.5] - 2025-12-01
238
-
239
- ### Added
240
-
241
- - Added more sveltekit specific warnings to codebase scanner.
242
- - Added warning for potential secrets in .env.example file.
243
-
244
- ### Fixed
245
-
246
- - Duration refactored for better code maintainability.
247
-
248
- ## [2.3.4] - 2025-11-05
249
-
250
- ### Fixed
251
-
252
- - Fixed issue where CSP detection was not working as expected in some file types.
253
-
254
- ## [2.3.3] - 2025-11-30
255
-
256
- ### Added
257
-
258
- - Added Content-Security-Policy (CSP) detection to codebase scanner.
259
- - Warns if no CSP is found in HTML/JS/TS files.
260
-
261
- ### Changed
262
-
263
- - No breaking changes.
264
-
265
- ## [2.3.2] - 2025-11-01
266
-
267
- ### Added
268
-
269
- - Added duration output to scan statistics.
270
- - Severity levels for secret findings: high, medium, low.
271
-
272
- ### Changed
273
-
274
- - Updated dependencies to latest versions.
275
- - Improved README documentation for clarity.
276
- - No breaking changes.
277
-
278
- ## [2.3.1] - 2025-10-08
279
-
280
- ### Fixed
281
-
282
- - Fixed dotenv-diff.config.json not found in monorepo root when running from apps.
283
-
284
- ## [2.3.0] - 2025-10-07
285
-
286
- ### Fixed
287
-
288
- - Fixed issue where .env.example would be ignored by git when using --fix flag.
289
-
290
- ### Added
291
-
292
- - HTML comments to ignore secret detection in HTML lines (e.g. `<!-- dotenv-diff-ignore -->`).
293
- - Also ignore html sections with `<!-- dotenv-diff-ignore-start -->` and `<!-- dotenv-diff-ignore-end -->`.
294
- - Added option to have a dotenv-diff.config.json file for configuration.
295
- - ignoreUrls option to ignore specific URLs in secret detection. (e.g. `https://nomistake.com`).
296
- - Added `--init` flag to create a sample config file.
297
- - --no-compare flag to disable comparison mode in scan usage. and noCompare option in config file.
298
-
299
- ## [2.2.8] - 2025-09-30
300
-
301
- ### Added
302
-
303
- - Fix .env is not ignored by git when using --fix flag.
304
-
305
- ### Changed
306
-
307
- - No breaking changes.
308
-
309
- ### Fixed
310
-
311
- - Refactored codebase for better maintainability.
312
-
313
- ## [2.2.7] - 2025-09-28
314
-
315
- ### Added
316
-
317
- - Added warning on .env not ignored by .gitignore on default.
318
- - added `dotenv-diff-ignore` comment to ignore lines from secret detection.
319
-
320
- ### Fixed
321
-
322
- - Fixed `--strict` error output to console when no warnings are found.
323
-
324
- ### Changed
325
-
326
- - No breaking changes.
327
- - Updated dependencies to latest versions.
328
-
329
- ## [2.2.6] - 2025-09-25
330
-
331
- ### Added
332
-
333
- - Added `placeholder`, `127.0.0.1`, and `example` to `looksHarmless` secret detection rule.
334
- - Added `HTTP URL detected` message to potential secrets output.
335
-
336
- ### Fixed
337
-
338
- - Removed `All used environment variables are defined in {.env}` when there are no used variables found.
339
-
340
- ### Changed
341
-
342
- - No breaking changes.
343
-
344
- ## [2.2.5] - 2025-09-18
345
-
346
- ### Added
347
-
348
- - Updated README with `--strict` flag documentation.
349
-
350
- ### Fixed
351
-
352
- - Fixed false positives for HTTPS URLs in SVG files and SVG namespace URLs.
353
-
354
- ### Changed
355
-
356
- - No breaking changes.
357
-
358
- ## [2.2.4] - 2025-09-13
359
-
360
- ### Fixed
361
-
362
- - Fixed found variable count did not show when there were missing variables in .env
363
- - Will now not says "Found 2 unique environment variables in use" if there are found in commented out code.
364
- - Fixed bug where it would say "no unused variables" if there where no found variables at all.
365
-
366
- ### Changed
367
-
368
- - No breaking changes.
369
-
370
- ## [2.2.3] - 2025-09-08
371
-
372
- ### Added
373
-
374
- - Warning for HTTPS URLs detected in codebase.
375
- - Added duplicate key detection to codebase scanner.
376
- - added `--strict` flag to enable strict mode (treat warnings as errors).
377
- - duplicate key detection for `.env.example` files.
378
-
379
- ### Fixed
380
-
381
- - Fixed issue with false warnings on secrets in certain edge cases.
382
- - Updated README
383
-
384
- ### Changed
385
-
386
- - No breaking changes.
387
- - `--compare` feature coloring improved for better readability.
388
- - added `duplicate` warnings to scan results.
389
-
390
- ## [2.2.2] - 2025-09-07
391
-
392
- ### Fixed
393
-
394
- - Fixed issue where it would give a false warning on secrets with process.env
395
- - Code cleanup.
396
- - exclude `.svelte-kit` from codebase scan by default.
397
- - Updated README
398
-
399
- ### Changed
400
-
401
- - No breaking changes.
402
-
403
- ## [2.2.1] - 2025-09-06
404
-
405
- ### Changed
406
-
407
- - tsconfig updates for improved type checking.
408
- - Updated codebase for new tsconfig rules
409
- - No breaking changes.
410
-
411
- ### Added
412
-
413
- - Improved jsDocs for better code documentation.
414
-
415
- ## [2.2.0] - 2025-08-30
416
-
417
- ### Added
418
-
419
- - `--compare` flag to enable comparison mode.
420
- - `dotenv-diff` will now detect potential secrets in your codebase.
421
-
422
- ### Changed
423
-
424
- - Default behavior is now **scan-usage** (you no longer need `--scan-usage`), but you can still use it for clarity.
425
- - `--compare` flag is now required for all comparison operations.
426
-
427
- ## [2.1.7] - 2025-08-28
428
-
429
- ### Added
430
-
431
- - gif to README file.
432
-
433
- ### Changed
434
-
435
- - No breaking changes. Existing functionality remains intact.
436
-
437
- ## [2.1.6] - 2025-08-26
438
-
439
- ### fixed
440
-
441
- - Fixed issue where prompts were disabled when using `--env` and `--example` flags.
442
-
443
- ## Changed
444
-
445
- - No breaking changes. Existing functionality remains intact.
446
-
447
- ## [2.1.5] - 2025-08-25
448
-
449
- ### Added
450
-
451
- - Added `--no-color` option to disable colored output.
452
-
453
- ### Changed
454
-
455
- - No breaking changes. Existing functionality remains intact.
456
-
457
- ## [2.1.4] - 2025-08-19
458
-
459
- ### Added
460
-
461
- - the `--fix` flag to automatically fix common issues:
462
- - Remove duplicate keys (keeping the last occurrence).
463
- - Add missing keys from the example file with empty values.
464
-
465
- ### Changed
466
-
467
- - No breaking changes. Existing functionality remains intact.
468
-
469
- ## [2.1.3] - 2025-08-19
470
-
471
- ### Added
472
-
473
- - Added `.sveltekit` and `_actions` to default exclude patterns in codebase scanner.
474
-
475
- ### Changed
476
-
477
- - No breaking changes. Existing functionality remains intact.
478
-
479
- ### Fixed
480
-
481
- - Fixed issue where `--include-files` and `--exclude-files` were not properly documented in README.
482
-
483
- ## [2.1.2] - 2025-08-16
484
-
485
- ### Changed
486
-
487
- - Updated README with Turborepo usage example.
488
-
489
- ## [2.1.1] - 2025-08-16
490
-
491
- ### Added
492
-
493
- - `--files` option to **completely override** the default file patterns.
494
- Useful for including files that are normally excluded (e.g. `*.test.js`).
495
-
496
- ### Changed
497
-
498
- - Clarified behavior of `--include-files`: now explicitly extends the default patterns instead of replacing them.
499
- - Updated README with usage examples for `--files`, `--include-files`, and `--exclude-files`.
500
-
501
- ## [2.1.0] - 2025-08-15
502
-
503
- ### Added
504
-
505
- - `--ci` option for non-interactive mode in CI environments.
506
-
507
- ### Changed
508
-
509
- - No breaking changes. Existing functionality remains intact.
510
-
511
- ## [2.0.0] - 2025-08-14
512
-
513
- ### Added
514
-
515
- - `--scan-usage` option to scan codebase for environment variable usage.
516
- - `--include-files` and `--exclude-files` options to specify which files to include or exclude from the scan.
517
- - `--show-unused` option to display variables defined in `.env` but not used in code.
518
- - `--show-stats` option to display scan statistics.
519
-
520
- ### Changed
521
-
522
- - No breaking changes. Existing functionality remains intact.
523
-
524
- ## [1.6.5] - 2025-08-13
525
-
526
- ### Added
527
-
528
- - `--only` flag to restrict output to specific categories (e.g., `missing`, `extra`, `empty`, `mismatches`, `duplicates`, `gitignore`).
529
-
530
- ## [1.6.4] - 2025-08-12
531
-
532
- ### Added
533
-
534
- - `--ignore` and `--ignore-regex` options to specify files or directories to ignore during comparison.
535
-
536
- ## [1.6.3] - 2025-08-11
537
-
538
- ### Added
539
-
540
- - `--json` option to output results in JSON format. (Non-breaking)
541
-
542
- ## [1.6.2] - 2025-08-10
543
-
544
- ### Added
545
-
546
- - Duplicate key detection for `.env*` files.
547
- - Prints warnings listing duplicate keys (last occurrence wins).
548
- - Suppress via `--allow-duplicates`.
549
-
550
- ### Changed
551
-
552
- - No breaking changes. Exit codes and diff behavior unchanged.
553
-
554
- ## [1.6.1] - 2025-08-09
555
-
556
- ### Build
557
-
558
- - Updated TypeScript configuration to include `bin` directory.
559
- - Switched CLI path to `bin/dotenv-diff.js` for consistency.
560
- - Refactored folder structure for better organization.
561
-
562
- ## [1.6.0] - 2025-08-08
563
-
564
- ### Added
565
-
566
- - `--env` and `--example` for direct file comparison; autoscan overridden when both are provided.
567
-
568
- ## [1.5.0] - 2025-08-07
569
-
570
- ### Added
571
-
572
- - Non-interactive modes: `--ci` and `--yes`.
238
+ - fix spelling mistake [`#100`](https://github.com/Chrilleweb/dotenv-diff/pull/100)
239
+ - t3-env integration [`#99`](https://github.com/Chrilleweb/dotenv-diff/pull/99)
240
+ - small refactor for old noCompare option [`484de37`](https://github.com/Chrilleweb/dotenv-diff/commit/484de37f3e8c18835e2aee3190a569f8d5de38b1)
241
+ - format [`f834df6`](https://github.com/Chrilleweb/dotenv-diff/commit/f834df67edea193812aabeb2343f15f48e7731c5)
242
+ - detect also with pacakge.json [`bc06522`](https://github.com/Chrilleweb/dotenv-diff/commit/bc0652207e0fe4d6b1d5c35e838a5b4b81278ee1)
243
+
244
+ #### [v2.3.9](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.8...v2.3.9)
245
+
246
+ > 9 December 2025
247
+
248
+ - v2.3.9 [`#98`](https://github.com/Chrilleweb/dotenv-diff/pull/98)
249
+ - Added dotenv-diff to ci + more tests [`#97`](https://github.com/Chrilleweb/dotenv-diff/pull/97)
250
+ - added CHANGELOG.md to package.json files [`#96`](https://github.com/Chrilleweb/dotenv-diff/pull/96)
251
+ - added inconsistent naming warning for env codebase scanner [`f5acae0`](https://github.com/Chrilleweb/dotenv-diff/commit/f5acae000c80c5e33765e090ac944c9171af857b)
252
+ - expiration date warnings for .env files [`7a3727e`](https://github.com/Chrilleweb/dotenv-diff/commit/7a3727e237e0dd41ce36944145b8e160f3bc937f)
253
+ - removed csp because of backend frameworks [`592b8a2`](https://github.com/Chrilleweb/dotenv-diff/commit/592b8a268c1c6f609b7dc55c6f98e5d268e46abf)
254
+
255
+ #### [v2.3.8](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.7...v2.3.8)
256
+
257
+ > 8 December 2025
258
+
259
+ - updated dependencies [`#95`](https://github.com/Chrilleweb/dotenv-diff/pull/95)
260
+ - healthscore 2.3.8 [`#94`](https://github.com/Chrilleweb/dotenv-diff/pull/94)
261
+ - caps warning [`#93`](https://github.com/Chrilleweb/dotenv-diff/pull/93)
262
+ - warning on env var that are not uppercase + config fix [`41278d0`](https://github.com/Chrilleweb/dotenv-diff/commit/41278d0a8d6b362e112e72520eaa2b6999eefee2)
263
+ - new ui for potential secret detected [`68f1a9a`](https://github.com/Chrilleweb/dotenv-diff/commit/68f1a9a4a1089ee90cff671bffd155d62003d3cb)
264
+ - changed ui for missing keys [`23f4a15`](https://github.com/Chrilleweb/dotenv-diff/commit/23f4a1520970beba8274a5a99c04855ab87da554)
265
+
266
+ #### [v2.3.7](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.6...v2.3.7)
267
+
268
+ > 4 December 2025
269
+
270
+ - v2.3.7 [`#92`](https://github.com/Chrilleweb/dotenv-diff/pull/92)
271
+ - format code + better type safety [`#91`](https://github.com/Chrilleweb/dotenv-diff/pull/91)
272
+ - updated dependencies [`01b1097`](https://github.com/Chrilleweb/dotenv-diff/commit/01b1097b0425905a575dd692476b581f33900611)
273
+ - console log warnings [`55227ba`](https://github.com/Chrilleweb/dotenv-diff/commit/55227ba8dc58e2981593ddfdaaec88bcabc957c4)
274
+ - updated dependencies [`938298c`](https://github.com/Chrilleweb/dotenv-diff/commit/938298c30b2418675d9f5c6884d59643d9a3040a)
275
+
276
+ #### [v2.3.6](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.5...v2.3.6)
277
+
278
+ > 2 December 2025
279
+
280
+ - modifed changelog [`#90`](https://github.com/Chrilleweb/dotenv-diff/pull/90)
281
+ - Framework for sveltekit and next.js [`#89`](https://github.com/Chrilleweb/dotenv-diff/pull/89)
282
+ - framework for sveltekit and angular [`db202a3`](https://github.com/Chrilleweb/dotenv-diff/commit/db202a315fe4c9c9cd125685a9e6aaa3af99634c)
283
+ - switched to next insted of angular [`15f6fff`](https://github.com/Chrilleweb/dotenv-diff/commit/15f6fffd914f0b8a3836093c750ae10a1aa9a20a)
284
+ - fixed strixt mode framework validator [`c2a0b83`](https://github.com/Chrilleweb/dotenv-diff/commit/c2a0b837e9fbbeb9b7620231e91eea359ed85dd1)
285
+
286
+ #### [v2.3.5](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.4...v2.3.5)
287
+
288
+ > 1 December 2025
289
+
290
+ - bump(deps-dev): bump the dev-dependencies group with 4 updates [`#87`](https://github.com/Chrilleweb/dotenv-diff/pull/87)
291
+ - Cmn/dev [`#88`](https://github.com/Chrilleweb/dotenv-diff/pull/88)
292
+ - warning on potential secrets in .env.example file [`8ccf9fa`](https://github.com/Chrilleweb/dotenv-diff/commit/8ccf9fa04b6c68e5ea677fc8d0d55760384026c2)
293
+ - sveltekit warnings [`3fa3d57`](https://github.com/Chrilleweb/dotenv-diff/commit/3fa3d5722f67608dda59b259ca28b25239d00944)
294
+ - more sveltekit rules [`40d7cda`](https://github.com/Chrilleweb/dotenv-diff/commit/40d7cda46e208611e7a31d29e560c986e613b60f)
295
+
296
+ #### [v2.3.4](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.2...v2.3.4)
297
+
298
+ > 30 November 2025
299
+
300
+ - updated version [`#86`](https://github.com/Chrilleweb/dotenv-diff/pull/86)
301
+ - fixed csp [`#85`](https://github.com/Chrilleweb/dotenv-diff/pull/85)
302
+ - csp detector [`#84`](https://github.com/Chrilleweb/dotenv-diff/pull/84)
303
+ - bump(deps): bump actions/checkout from 5 to 6 [`#83`](https://github.com/Chrilleweb/dotenv-diff/pull/83)
304
+ - bump(deps-dev): bump the dev-dependencies group across 1 directory with 5 updates [`#82`](https://github.com/Chrilleweb/dotenv-diff/pull/82)
305
+ - updated version to 2.3.3 [`90d5afb`](https://github.com/Chrilleweb/dotenv-diff/commit/90d5afba613b5357638eb81ef02e434c7871df9b)
306
+
307
+ #### [v2.3.2](https://github.com/Chrilleweb/dotenv-diff/compare/v2.3.1...v2.3.2)
308
+
309
+ > 6 November 2025
310
+
311
+ - bump(deps-dev): bump the dev-dependencies group with 3 updates [`#80`](https://github.com/Chrilleweb/dotenv-diff/pull/80)
312
+ - added duration + serverity levels [`#79`](https://github.com/Chrilleweb/dotenv-diff/pull/79)
313
+ - bump(deps): bump commander from 14.0.1 to 14.0.2 in the production-dependencies group [`#78`](https://github.com/Chrilleweb/dotenv-diff/pull/78)
314
+ - bump(deps-dev): bump the dev-dependencies group with 4 updates [`#77`](https://github.com/Chrilleweb/dotenv-diff/pull/77)
315
+ - bump(deps-dev): bump the dev-dependencies group with 4 updates [`#76`](https://github.com/Chrilleweb/dotenv-diff/pull/76)
316
+ - bump(deps): bump actions/setup-node from 5 to 6 [`#75`](https://github.com/Chrilleweb/dotenv-diff/pull/75)
317
+ - severity for secrets findings: high, medium, low. [`74dfc86`](https://github.com/Chrilleweb/dotenv-diff/commit/74dfc86d5384ebdca6c229769a85855ac334e4ba)
318
+ - added duration [`3b45599`](https://github.com/Chrilleweb/dotenv-diff/commit/3b45599c1c2db1385b5f62b1c017a547410bee4c)
319
+ - bump(deps): bump commander in the production-dependencies group [`b6a53eb`](https://github.com/Chrilleweb/dotenv-diff/commit/b6a53ebc92aa30394e66f08519ff5802d36a1068)
320
+
321
+ #### v2.3.1
322
+
323
+ > 16 October 2025
324
+
325
+ - bump(deps-dev): bump the dev-dependencies group with 3 updates [`#74`](https://github.com/Chrilleweb/dotenv-diff/pull/74)
326
+ - fixed issue where config not found in monorepo [`#73`](https://github.com/Chrilleweb/dotenv-diff/pull/73)
327
+ - bump(deps-dev): bump the dev-dependencies group with 5 updates [`#72`](https://github.com/Chrilleweb/dotenv-diff/pull/72)
328
+ - small fixes [`#71`](https://github.com/Chrilleweb/dotenv-diff/pull/71)
329
+ - moved to shared folder [`#70`](https://github.com/Chrilleweb/dotenv-diff/pull/70)
330
+ - hook timeout increased [`#69`](https://github.com/Chrilleweb/dotenv-diff/pull/69)
331
+ - fix flag for .env not ignored .gitignore [`#68`](https://github.com/Chrilleweb/dotenv-diff/pull/68)
332
+ - refactor code [`#67`](https://github.com/Chrilleweb/dotenv-diff/pull/67)
333
+ - dotenv-diff-ignore [`#66`](https://github.com/Chrilleweb/dotenv-diff/pull/66)
334
+ - added warning on .env missing on gitignore [`#65`](https://github.com/Chrilleweb/dotenv-diff/pull/65)
335
+ - bump(deps): bump actions/setup-node from 4 to 5 [`#54`](https://github.com/Chrilleweb/dotenv-diff/pull/54)
336
+ - bump(deps): bump pnpm/action-setup from 2 to 4 [`#53`](https://github.com/Chrilleweb/dotenv-diff/pull/53)
337
+ - fixed --strict output [`#64`](https://github.com/Chrilleweb/dotenv-diff/pull/64)
338
+ - bump(deps-dev): bump the dev-dependencies group with 3 updates [`#63`](https://github.com/Chrilleweb/dotenv-diff/pull/63)
339
+ - bump(deps): bump the production-dependencies group with 2 updates [`#62`](https://github.com/Chrilleweb/dotenv-diff/pull/62)
340
+ - dependabot update [`#61`](https://github.com/Chrilleweb/dotenv-diff/pull/61)
341
+ - bump(deps): bump actions/checkout from 4 to 5 [`#55`](https://github.com/Chrilleweb/dotenv-diff/pull/55)
342
+ - bump(deps-dev): bump eslint from 9.32.0 to 9.36.0 [`#58`](https://github.com/Chrilleweb/dotenv-diff/pull/58)
343
+ - dependabot [`#52`](https://github.com/Chrilleweb/dotenv-diff/pull/52)
344
+ - Cmn/dev [`#51`](https://github.com/Chrilleweb/dotenv-diff/pull/51)
345
+ - Refactor [`#50`](https://github.com/Chrilleweb/dotenv-diff/pull/50)
346
+ - Cmn/dev [`#49`](https://github.com/Chrilleweb/dotenv-diff/pull/49)
347
+ - Cmn/dev [`#48`](https://github.com/Chrilleweb/dotenv-diff/pull/48)
348
+ - Cmn/dev [`#47`](https://github.com/Chrilleweb/dotenv-diff/pull/47)
349
+ - fixed .svelte-kit + false warning [`#46`](https://github.com/Chrilleweb/dotenv-diff/pull/46)
350
+ - updated tsconfig [`#45`](https://github.com/Chrilleweb/dotenv-diff/pull/45)
351
+ - default behavior is now scan usage [`#44`](https://github.com/Chrilleweb/dotenv-diff/pull/44)
352
+ - updated readme with gif [`#39`](https://github.com/Chrilleweb/dotenv-diff/pull/39)
353
+ - fixed --env and --example to create file if not exist [`#38`](https://github.com/Chrilleweb/dotenv-diff/pull/38)
354
+ - added --no-color flag [`#36`](https://github.com/Chrilleweb/dotenv-diff/pull/36)
355
+ - --fix flag [`#34`](https://github.com/Chrilleweb/dotenv-diff/pull/34)
356
+ - Small fixes - version 2.1.3 [`#33`](https://github.com/Chrilleweb/dotenv-diff/pull/33)
357
+ - readme update [`#32`](https://github.com/Chrilleweb/dotenv-diff/pull/32)
358
+ - --files and changed --include-files behavior [`#31`](https://github.com/Chrilleweb/dotenv-diff/pull/31)
359
+ - --ci flag [`#30`](https://github.com/Chrilleweb/dotenv-diff/pull/30)
360
+ - Version 2 scan usage [`#26`](https://github.com/Chrilleweb/dotenv-diff/pull/26)
361
+ - -- only flag [`#25`](https://github.com/Chrilleweb/dotenv-diff/pull/25)
362
+ - Cmn/dev [`#24`](https://github.com/Chrilleweb/dotenv-diff/pull/24)
363
+ - feat: allow ignoring env keys [`#23`](https://github.com/Chrilleweb/dotenv-diff/pull/23)
364
+ - test: reorganize and expand test suite [`#22`](https://github.com/Chrilleweb/dotenv-diff/pull/22)
365
+ - json flag [`#20`](https://github.com/Chrilleweb/dotenv-diff/pull/20)
366
+ - Cmn/dev [`#19`](https://github.com/Chrilleweb/dotenv-diff/pull/19)
367
+ - feat: warn on duplicate env keys [`#18`](https://github.com/Chrilleweb/dotenv-diff/pull/18)
368
+ - Refactor: reorganize CLI entry [`#17`](https://github.com/Chrilleweb/dotenv-diff/pull/17)
369
+ - feat: add env/example flags for targeted comparisons [`#16`](https://github.com/Chrilleweb/dotenv-diff/pull/16)
370
+ - CI-mode (--ci / --yes) [`#15`](https://github.com/Chrilleweb/dotenv-diff/pull/15)
371
+ - Add CI and yes non-interactive modes to dotenv-diff CLI [`#14`](https://github.com/Chrilleweb/dotenv-diff/pull/14)
372
+ - added issue 8 feature [`#10`](https://github.com/Chrilleweb/dotenv-diff/pull/10)
373
+ - check gitIgnore feature [`#9`](https://github.com/Chrilleweb/dotenv-diff/pull/9)
374
+ - eslint + new feature [`#6`](https://github.com/Chrilleweb/dotenv-diff/pull/6)
375
+ - initial commit [`e827a13`](https://github.com/Chrilleweb/dotenv-diff/commit/e827a136c13eaae64c744b9db0b3f2dcacf009a4)
376
+ - scan-usage [`e947336`](https://github.com/Chrilleweb/dotenv-diff/commit/e947336e28f1b5856ad63df41a256c9025c6b3c9)
377
+ - src + chalk [`1f867d7`](https://github.com/Chrilleweb/dotenv-diff/commit/1f867d7f750d1bcab217d7acf139cf36304d3955)