@thi.ng/checks 3.5.5 → 3.6.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 +7 -1
- package/README.md +9 -3
- package/is-arraylike.d.ts +1 -1
- package/is-async-iterable.d.ts +1 -1
- package/is-generator.d.ts +1 -1
- package/is-iterable.d.ts +1 -1
- package/is-map.d.ts +1 -1
- package/is-not-string-iterable.d.ts +1 -1
- package/is-promise.d.ts +1 -1
- package/is-promiselike.d.ts +1 -1
- package/is-set.d.ts +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-
|
|
3
|
+
- **Last updated**: 2024-04-11T12:32:44Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.6.0) (2024-04-08)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- add optional generics for collection checks ([8d55530](https://github.com/thi-ng/umbrella/commit/8d55530))
|
|
17
|
+
|
|
12
18
|
## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.5.0) (2024-02-22)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 192 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -38,7 +38,13 @@ Collection of 70+ type, feature & value checks.
|
|
|
38
38
|
yarn add @thi.ng/checks
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
ESM import:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import * as ch from "@thi.ng/checks";
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Browser ESM import:
|
|
42
48
|
|
|
43
49
|
```html
|
|
44
50
|
<script type="module" src="https://cdn.skypack.dev/@thi.ng/checks"></script>
|
|
@@ -49,7 +55,7 @@ ES module import:
|
|
|
49
55
|
For Node.js REPL:
|
|
50
56
|
|
|
51
57
|
```js
|
|
52
|
-
const
|
|
58
|
+
const ch = await import("@thi.ng/checks");
|
|
53
59
|
```
|
|
54
60
|
|
|
55
61
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.65 KB
|
package/is-arraylike.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isArrayLike: (x: any) => x is ArrayLike<
|
|
1
|
+
export declare const isArrayLike: <T = any>(x: any) => x is ArrayLike<T>;
|
|
2
2
|
//# sourceMappingURL=is-arraylike.d.ts.map
|
package/is-async-iterable.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isAsyncIterable: (x: any) => x is AsyncIterable<
|
|
1
|
+
export declare const isAsyncIterable: <T = any>(x: any) => x is AsyncIterable<T>;
|
|
2
2
|
//# sourceMappingURL=is-async-iterable.d.ts.map
|
package/is-generator.d.ts
CHANGED
package/is-iterable.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isIterable: (x: any) => x is Iterable<
|
|
1
|
+
export declare const isIterable: <T = any>(x: any) => x is Iterable<T>;
|
|
2
2
|
//# sourceMappingURL=is-iterable.d.ts.map
|
package/is-map.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isMap: (x: any) => x is Map<
|
|
1
|
+
export declare const isMap: <K = any, V = any>(x: any) => x is Map<K, V>;
|
|
2
2
|
//# sourceMappingURL=is-map.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isNotStringAndIterable: (x: any) => x is Iterable<
|
|
1
|
+
export declare const isNotStringAndIterable: <T = any>(x: any) => x is Iterable<T>;
|
|
2
2
|
//# sourceMappingURL=is-not-string-iterable.d.ts.map
|
package/is-promise.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isPromise: (x: any) => x is Promise<
|
|
1
|
+
export declare const isPromise: <T = any>(x: any) => x is Promise<T>;
|
|
2
2
|
//# sourceMappingURL=is-promise.d.ts.map
|
package/is-promiselike.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isPromiseLike: (x: any) => x is Promise<
|
|
1
|
+
export declare const isPromiseLike: <T = any>(x: any) => x is Promise<T>;
|
|
2
2
|
//# sourceMappingURL=is-promiselike.d.ts.map
|
package/is-set.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isSet: (x: any) => x is Set<
|
|
1
|
+
export declare const isSet: <T = any>(x: any) => x is Set<T>;
|
|
2
2
|
//# sourceMappingURL=is-set.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/checks",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Collection of 70+ type, feature & value checks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -286,5 +286,8 @@
|
|
|
286
286
|
"default": "./is-zero.js"
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
"
|
|
289
|
+
"thi.ng": {
|
|
290
|
+
"alias": "ch"
|
|
291
|
+
},
|
|
292
|
+
"gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
|
|
290
293
|
}
|