@thi.ng/checks 3.5.4 → 3.6.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-18T08:40:00Z
3
+ - **Last updated**: 2024-04-08T14:59:29Z
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
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 190 standalone projects, maintained as part
10
+ > This is one of 191 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
- ES module import:
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 checks = await import("@thi.ng/checks");
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<any>;
1
+ export declare const isArrayLike: <T = any>(x: any) => x is ArrayLike<T>;
2
2
  //# sourceMappingURL=is-arraylike.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const isAsyncIterable: (x: any) => x is AsyncIterable<any>;
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
@@ -4,5 +4,5 @@
4
4
  *
5
5
  * @param x
6
6
  */
7
- export declare const isGenerator: (x: any) => x is Generator<unknown, any, unknown>;
7
+ export declare const isGenerator: <T = any>(x: any) => x is Generator<T, any, unknown>;
8
8
  //# sourceMappingURL=is-generator.d.ts.map
package/is-iterable.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const isIterable: (x: any) => x is Iterable<any>;
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<any, any>;
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<any>;
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<any>;
1
+ export declare const isPromise: <T = any>(x: any) => x is Promise<T>;
2
2
  //# sourceMappingURL=is-promise.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const isPromiseLike: (x: any) => x is Promise<any>;
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<any>;
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.5.4",
3
+ "version": "3.6.0",
4
4
  "description": "Collection of 70+ type, feature & value checks",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,12 +43,12 @@
43
43
  "tslib": "^2.6.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@microsoft/api-extractor": "^7.42.3",
47
- "@types/node": "^20.11.26",
48
- "esbuild": "^0.20.1",
46
+ "@microsoft/api-extractor": "^7.43.0",
47
+ "@types/node": "^20.11.30",
48
+ "esbuild": "^0.20.2",
49
49
  "rimraf": "^5.0.5",
50
50
  "typedoc": "^0.25.12",
51
- "typescript": "^5.4.2"
51
+ "typescript": "^5.4.3"
52
52
  },
53
53
  "keywords": [
54
54
  "detect",
@@ -286,5 +286,8 @@
286
286
  "default": "./is-zero.js"
287
287
  }
288
288
  },
289
- "gitHead": "4b3d4ab6ce373ca817ad780f679572169a9ed733\n"
289
+ "thi.ng": {
290
+ "alias": "ch"
291
+ },
292
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
290
293
  }