@thi.ng/compose 2.1.20 → 2.1.22

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**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-20T16:33:11Z
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.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![compose](https://media.thi.ng/umbrella/banners-20220914/thing-compose.svg?0e8a3fa1)
3
+ # ![@thi.ng/compose](https://media.thi.ng/umbrella/banners-20220914/thing-compose.svg?0e8a3fa1)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/compose.svg)](https://www.npmjs.com/package/@thi.ng/compose)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/compose.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
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
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -19,7 +19,7 @@ This project is part of the
19
19
 
20
20
  ## About
21
21
 
22
- Optimized functional composition helpers.
22
+ Optimized functional composition helpers
23
23
 
24
24
  ## Status
25
25
 
@@ -43,11 +43,8 @@ ES module import:
43
43
 
44
44
  For Node.js REPL:
45
45
 
46
- ```text
47
- # with flag only for < v16
48
- node --experimental-repl-await
49
-
50
- > const compose = await import("@thi.ng/compose");
46
+ ```js
47
+ const compose = await import("@thi.ng/compose");
51
48
  ```
52
49
 
53
50
  Package sizes (brotli'd, pre-treeshake): ESM: 751 bytes
@@ -71,7 +68,7 @@ Package sizes (brotli'd, pre-treeshake): ESM: 751 bytes
71
68
 
72
69
  ## Authors
73
70
 
74
- Karsten Schmidt
71
+ - [Karsten Schmidt](https://thi.ng)
75
72
 
76
73
  If this project contributes to an academic publication, please cite it as:
77
74
 
@@ -86,4 +83,4 @@ If this project contributes to an academic publication, please cite it as:
86
83
 
87
84
  ## License
88
85
 
89
- &copy; 2016 - 2022 Karsten Schmidt // Apache Software License 2.0
86
+ &copy; 2016 - 2022 Karsten Schmidt // Apache License 2.0
package/comp.d.ts CHANGED
@@ -18,7 +18,7 @@ export declare function comp<A, B, C, D, E, F, G, H, I>(a: Fn<B, A>, b: Fn<C, B>
18
18
  export declare function comp<A, B, C, D, E, F, G, H, I, J>(a: Fn<B, A>, b: Fn<C, B>, c: Fn<D, C>, d: Fn<E, D>, e: Fn<F, E>, f: Fn<G, F>, g: Fn<H, G>, h: Fn<I, H>, i: Fn<J, I>, j: FnAny<J>): FnAny<A>;
19
19
  export declare function comp<A, B, C, D, E, F, G, H, I, J>(a: Fn<B, A>, b: Fn<C, B>, c: Fn<D, C>, d: Fn<E, D>, e: Fn<F, E>, f: Fn<G, F>, g: Fn<H, G>, h: Fn<I, H>, i: Fn<J, I>, j: Fn<any, J>, ...fns: FnAny<any>[]): FnAny<A>;
20
20
  /**
21
- * Similar to {@link (comp:1)}, but composes given functions in left-to-right order.
21
+ * Similar to {@link comp}, but composes given functions in left-to-right order.
22
22
  */
23
23
  export declare function compL<A>(a: FnAny<A>): FnAny<A>;
24
24
  export declare function compL<A, B>(a: FnAny<A>, b: Fn<A, B>): FnAny<B>;
@@ -32,7 +32,7 @@ export declare function compL<A, B, C, D, E, F, G, H, I>(a: FnAny<A>, b: Fn<A, B
32
32
  export declare function compL<A, B, C, D, E, F, G, H, I, J>(a: FnAny<A>, b: Fn<A, B>, c: Fn<B, C>, d: Fn<C, D>, e: Fn<D, E>, f: Fn<E, F>, g: Fn<F, G>, h: Fn<G, H>, i: Fn<H, I>, j: Fn<I, J>): FnAny<J>;
33
33
  export declare function compL<A, B, C, D, E, F, G, H, I, J>(a: FnAny<A>, b: Fn<A, B>, c: Fn<B, C>, d: Fn<C, D>, e: Fn<D, E>, f: Fn<E, F>, g: Fn<F, G>, h: Fn<G, H>, i: Fn<H, I>, j: Fn<I, J>, ...xs: Fn<any, any>[]): FnAny<any>;
34
34
  /**
35
- * @deprecated renamed to {@link (compL:1)}
35
+ * @deprecated renamed to {@link compL}
36
36
  */
37
37
  export declare const compI: typeof compL;
38
38
  //# sourceMappingURL=comp.d.ts.map
package/comp.js CHANGED
@@ -32,6 +32,6 @@ export function compL(...fns) {
32
32
  return comp.apply(null, fns.reverse());
33
33
  }
34
34
  /**
35
- * @deprecated renamed to {@link (compL:1)}
35
+ * @deprecated renamed to {@link compL}
36
36
  */
37
37
  export const compI = compL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/compose",
3
- "version": "2.1.20",
3
+ "version": "2.1.22",
4
4
  "description": "Optimized functional composition helpers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,16 +34,16 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.1",
38
- "@thi.ng/errors": "^2.2.5"
37
+ "@thi.ng/api": "^8.6.1",
38
+ "@thi.ng/errors": "^2.2.6"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.33.5",
42
- "@thi.ng/testament": "^0.3.6",
41
+ "@microsoft/api-extractor": "^7.33.7",
42
+ "@thi.ng/testament": "^0.3.7",
43
43
  "rimraf": "^3.0.2",
44
44
  "tools": "^0.0.1",
45
- "typedoc": "^0.23.20",
46
- "typescript": "^4.8.4"
45
+ "typedoc": "^0.23.22",
46
+ "typescript": "^4.9.4"
47
47
  },
48
48
  "keywords": [
49
49
  "async",
@@ -105,5 +105,5 @@
105
105
  "default": "./trampoline.js"
106
106
  }
107
107
  },
108
- "gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n"
108
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
109
109
  }