@thi.ng/compose 3.0.1 → 3.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-11T12:32:44Z
3
+ - **Last updated**: 2024-04-23T07:02:17Z
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.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/compose@3.0.2) (2024-04-20)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update type usage ([6a151a5](https://github.com/thi-ng/umbrella/commit/6a151a5))
17
+
12
18
  # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compose@3.0.0) (2024-04-08)
13
19
 
14
20
  #### 🛑 Breaking changes
package/README.md CHANGED
@@ -72,10 +72,10 @@ import * as comp from "@thi.ng/compose";
72
72
  Browser ESM import:
73
73
 
74
74
  ```html
75
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/compose"></script>
75
+ <script type="module" src="https://esm.run/@thi.ng/compose"></script>
76
76
  ```
77
77
 
78
- [Skypack documentation](https://docs.skypack.dev/)
78
+ [JSDelivr documentation](https://www.jsdelivr.com/)
79
79
 
80
80
  For Node.js REPL:
81
81
 
package/ifdef.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { Fn } from "@thi.ng/api";
1
+ import type { Fn, Nullable } from "@thi.ng/api";
2
2
  /**
3
3
  * Returns f(x) iff `x` is not null or undefined.
4
4
  *
5
5
  * @param f - function
6
6
  * @param x - value
7
7
  */
8
- export declare const ifDef: <A, B>(f: Fn<A, B>, x: A | null | undefined) => B | undefined;
8
+ export declare const ifDef: <A, B>(f: Fn<A, B>, x: Nullable<A>) => B | undefined;
9
9
  //# sourceMappingURL=ifdef.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/compose",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Optimized functional composition helpers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -27,7 +27,7 @@
27
27
  "build": "yarn build:esbuild && yarn build:decl",
28
28
  "build:decl": "tsc --declaration --emitDeclarationOnly",
29
29
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
30
- "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
30
+ "clean": "bun ../../tools/src/clean-package.ts",
31
31
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
32
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
33
33
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
@@ -36,13 +36,12 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.10.1",
40
- "@thi.ng/errors": "^2.5.4"
39
+ "@thi.ng/api": "^8.11.1",
40
+ "@thi.ng/errors": "^2.5.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.43.0",
44
44
  "esbuild": "^0.20.2",
45
- "rimraf": "^5.0.5",
46
45
  "typedoc": "^0.25.12",
47
46
  "typescript": "^5.4.3"
48
47
  },
@@ -106,5 +105,5 @@
106
105
  "thi.ng": {
107
106
  "alias": "comp"
108
107
  },
109
- "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
108
+ "gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
110
109
  }