@calvear/env 3.0.0 → 3.1.0

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [3.1.0] - 2026-06-02
6
+
7
+ ### Added
8
+
9
+ - pretty environment render colorized by type at `--log debug` — strings in gray, numbers in orange, booleans `true`/`false` in green/red — sorted and masked; the `export` command shares the same render
10
+ - mask secrets by key regex: `logMaskValuesOfKeys` (`--mvk`) entries may now be a `/source/flags` regex matched against the key name (e.g. `/token/i`), in addition to exact key names
11
+ - `logMaskAnyRegEx` (`--mrx`) supports the `/source/flags` form and always forces the global flag, so **every** occurrence inside a value is masked
12
+ - case-insensitive key masking for `logMaskValuesOfKeys`
13
+
14
+ ### Fixed
15
+
16
+ - nested `$` global marker leaked into the variable name: `GROUP.$VAR1` was injected as `GROUP__$VAR1`. `flatten` now strips the marker per segment → `GROUP__VAR1` (the marker is still preserved in the secrets file storage)
17
+ - `flatSchema` strips the `$` marker as well, so schema-validation keys match the injected (stripped) environment keys and global keys are validated correctly
18
+
5
19
  ## [3.0.0] - 2026-05-31
6
20
 
7
21
  ### Breaking