@thi.ng/arrays 2.13.2 → 2.13.4

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-10T14:20:23Z
3
+ - **Last updated**: 2025-07-20T14:56:01Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -11,6 +11,14 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [2.13.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.13.3) (2025-07-15)
15
+
16
+ #### ♻️ Refactoring
17
+
18
+ - add optional generics ([ba81685](https://github.com/thi-ng/umbrella/commit/ba81685))
19
+ - update `ensureArray()`/`ensureArrayLike()`
20
+ - update `ensureIterable()`
21
+
14
22
  ## [2.13.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.13.0) (2025-06-18)
15
23
 
16
24
  #### 🚀 Features
package/ensure-array.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @param x -
11
11
  */
12
- export declare const ensureArray: (x: any) => any[];
12
+ export declare const ensureArray: <T = any>(x: any) => T[];
13
13
  /**
14
14
  * Similar to {@link ensureArray}, but for `ArrayLike` types.
15
15
  *
@@ -17,5 +17,5 @@ export declare const ensureArray: (x: any) => any[];
17
17
  *
18
18
  * @param x -
19
19
  */
20
- export declare const ensureArrayLike: (x: any) => ArrayLike<any>;
20
+ export declare const ensureArrayLike: <T = any>(x: any) => ArrayLike<T>;
21
21
  //# sourceMappingURL=ensure-array.d.ts.map
@@ -4,5 +4,5 @@
4
4
  *
5
5
  * @param x -
6
6
  */
7
- export declare const ensureIterable: (x: any) => Iterable<any>;
7
+ export declare const ensureIterable: <T = any>(x: any) => Iterable<T>;
8
8
  //# sourceMappingURL=ensure-iterable.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/arrays",
3
- "version": "2.13.2",
3
+ "version": "2.13.4",
4
4
  "description": "Array / Arraylike utilities",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,15 +39,15 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.11.30",
43
- "@thi.ng/checks": "^3.7.10",
44
- "@thi.ng/compare": "^2.4.22",
45
- "@thi.ng/equiv": "^2.1.86",
46
- "@thi.ng/errors": "^2.5.36",
47
- "@thi.ng/random": "^4.1.21"
42
+ "@thi.ng/api": "^8.11.31",
43
+ "@thi.ng/checks": "^3.7.11",
44
+ "@thi.ng/compare": "^2.4.23",
45
+ "@thi.ng/equiv": "^2.1.87",
46
+ "@thi.ng/errors": "^2.5.37",
47
+ "@thi.ng/random": "^4.1.22"
48
48
  },
49
49
  "devDependencies": {
50
- "esbuild": "^0.25.6",
50
+ "esbuild": "^0.25.8",
51
51
  "typedoc": "^0.28.7",
52
52
  "typescript": "^5.8.3"
53
53
  },
@@ -187,5 +187,5 @@
187
187
  "tag": "array",
188
188
  "year": 2018
189
189
  },
190
- "gitHead": "56d8f088389b22192a06e9a395b5eecebf47697a\n"
190
+ "gitHead": "3cd1bea8b2bf6b859609f6d5c14b4eb64745681f\n"
191
191
  }