@contrail/util 1.2.0-dev-flatten-object-2 → 1.2.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +1 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ ## 1.2.0 (2026-03-09)
4
+
5
+ ### Added
6
+
7
+ - `ObjectUtil.flattenObject` — Recursively flattens a nested object into a single-level object with dot-notation keys. Designed for use with structured logging (OpenTelemetry log attributes).
8
+ - Converts nested objects to dot-separated keys (e.g. `user.profile.name`)
9
+ - JSON-stringifies arrays
10
+ - Converts `Date` to ISO string, extracts `Error` message and stack
11
+ - Handles circular references and enforces a max depth of 10
12
+ - Converts `bigint`, `symbol`, and `function` values to strings
13
+ - Skips `null` and `undefined` values
14
+
15
+ ## 1.1.19
16
+
17
+ - Previous stable release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.2.0-dev-flatten-object-2",
3
+ "version": "1.2.0",
4
4
  "description": "General JavaScript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",