@contrail/util 1.3.3-alpha.7783621 → 2.0.1-alpha.1

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
@@ -7,12 +7,6 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [1.3.3] - 2026-09-03
11
-
12
- ### Fixed
13
-
14
- - `ObjectUtil.mergeDeep` no longer discards a value when the target cannot be merged into. An incoming object landing on an existing array, string, or number replaces it, instead of being silently skipped. Merging two objects is unchanged: keys the source omits still survive.
15
-
16
10
  ## [1.2.1] - 2026-03-25
17
11
 
18
12
  ### Added
@@ -9,7 +9,7 @@ function mergeDeep(target, ...sources) {
9
9
  if ((0, isObject_1.isObject)(target) && (0, isObject_1.isObject)(source)) {
10
10
  for (const key in source) {
11
11
  if ((0, isObject_1.isObject)(source[key]) && !isDate(source[key])) {
12
- if (!(0, isObject_1.isObject)(target[key]))
12
+ if (!target[key])
13
13
  Object.assign(target, { [key]: {} });
14
14
  mergeDeep(target[key], source[key]);
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.3.3-alpha.7783621",
3
+ "version": "2.0.1-alpha.1",
4
4
  "description": "General JavaScript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -39,9 +39,12 @@
39
39
  "testEnvironment": "node"
40
40
  },
41
41
  "dependencies": {
42
- "@contrail/types": "^3.4.0",
42
+ "@contrail/types": "^3.4.3",
43
43
  "fflate": "^0.8.2",
44
44
  "lodash": "^4.17.21",
45
45
  "p-limit": "^3.1.0"
46
+ },
47
+ "engines": {
48
+ "node": ">=24"
46
49
  }
47
50
  }