@thi.ng/arrays 2.13.2 → 2.13.3
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 +9 -1
- package/ensure-array.d.ts +2 -2
- package/ensure-iterable.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-07-
|
|
3
|
+
- **Last updated**: 2025-07-15T09:30:47Z
|
|
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) =>
|
|
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<
|
|
20
|
+
export declare const ensureArrayLike: <T = any>(x: any) => ArrayLike<T>;
|
|
21
21
|
//# sourceMappingURL=ensure-array.d.ts.map
|
package/ensure-iterable.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/arrays",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.3",
|
|
4
4
|
"description": "Array / Arraylike utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"tag": "array",
|
|
188
188
|
"year": 2018
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "9ec4a5584ed6e59f2b74f4ca9726daef7e766974\n"
|
|
191
191
|
}
|