@thi.ng/color 5.6.41 → 5.6.42

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-20T14:42:45Z
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
+ ### [5.6.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.42) (2024-04-20)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update type usage ([39494f2](https://github.com/thi-ng/umbrella/commit/39494f2))
17
+
12
18
  ### [5.6.40](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.40) (2024-04-08)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -665,10 +665,10 @@ import * as color from "@thi.ng/color";
665
665
  Browser ESM import:
666
666
 
667
667
  ```html
668
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/color"></script>
668
+ <script type="module" src="https://esm.run/@thi.ng/color"></script>
669
669
  ```
670
670
 
671
- [Skypack documentation](https://docs.skypack.dev/)
671
+ [JSDelivr documentation](https://www.jsdelivr.com/)
672
672
 
673
673
  For Node.js REPL:
674
674
 
package/analog.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { Fn3, Fn4, FnU3 } from "@thi.ng/api";
1
+ import type { Fn3, Fn4, FnU3, Maybe } from "@thi.ng/api";
2
2
  import type { IRandom } from "@thi.ng/random";
3
3
  import type { Color, ReadonlyColor, TypedColor } from "./api.js";
4
- export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<Color | null, TypedColor<any>, number, IRandom | undefined, Color>>;
4
+ export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<Color | null, TypedColor<any>, number, Maybe<IRandom>, Color>>;
5
5
  /**
6
6
  * Returns a random analog color based on given `src` color and variance
7
7
  * `delta`. Each channel will be randomized by +/- `delta`, optionally using
@@ -13,7 +13,7 @@ export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<C
13
13
  * If `out` is null, the resulting color will be written back into `src`.
14
14
  *
15
15
  */
16
- export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng/vectors").Vec | null, TypedColor<any>, number, IRandom | undefined, import("@thi.ng/vectors").Vec>;
16
+ export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng/vectors").Vec | null, TypedColor<any>, number, Maybe<IRandom>, import("@thi.ng/vectors").Vec>;
17
17
  /**
18
18
  * Similar to {@link analogRgb}. Returns an analog color based on given HSVA
19
19
  * color, with each channel randomly varied by given channel-specific delta
package/is-black.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Maybe } from "@thi.ng/api";
1
2
  import type { TypedColor } from "./api.js";
2
- export declare const isBlack: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, number | undefined, boolean>;
3
+ export declare const isBlack: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, Maybe<number>, boolean>;
3
4
  //# sourceMappingURL=is-black.d.ts.map
package/is-gray.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Maybe } from "@thi.ng/api";
1
2
  import type { TypedColor } from "./api.js";
2
- export declare const isGray: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, number | undefined, boolean>;
3
+ export declare const isGray: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, Maybe<number>, boolean>;
3
4
  //# sourceMappingURL=is-gray.d.ts.map
package/is-white.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Maybe } from "@thi.ng/api";
1
2
  import type { TypedColor } from "./api.js";
2
- export declare const isWhite: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, number | undefined, boolean>;
3
+ export declare const isWhite: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, Maybe<number>, boolean>;
3
4
  //# sourceMappingURL=is-white.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.6.41",
3
+ "version": "5.6.42",
4
4
  "description": "Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,19 +40,19 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.10.1",
44
- "@thi.ng/arrays": "^2.9.3",
45
- "@thi.ng/binary": "^3.4.22",
46
- "@thi.ng/checks": "^3.6.1",
47
- "@thi.ng/compare": "^2.3.2",
48
- "@thi.ng/compose": "^3.0.1",
49
- "@thi.ng/defmulti": "^3.0.36",
50
- "@thi.ng/errors": "^2.5.4",
51
- "@thi.ng/math": "^5.10.10",
52
- "@thi.ng/random": "^3.7.3",
53
- "@thi.ng/strings": "^3.7.30",
54
- "@thi.ng/transducers": "^9.0.1",
55
- "@thi.ng/vectors": "^7.10.27"
43
+ "@thi.ng/api": "^8.11.0",
44
+ "@thi.ng/arrays": "^2.9.4",
45
+ "@thi.ng/binary": "^3.4.23",
46
+ "@thi.ng/checks": "^3.6.2",
47
+ "@thi.ng/compare": "^2.3.3",
48
+ "@thi.ng/compose": "^3.0.2",
49
+ "@thi.ng/defmulti": "^3.0.37",
50
+ "@thi.ng/errors": "^2.5.5",
51
+ "@thi.ng/math": "^5.10.11",
52
+ "@thi.ng/random": "^3.7.4",
53
+ "@thi.ng/strings": "^3.7.31",
54
+ "@thi.ng/transducers": "^9.0.2",
55
+ "@thi.ng/vectors": "^7.10.28"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@microsoft/api-extractor": "^7.43.0",
@@ -446,5 +446,5 @@
446
446
  "vectors"
447
447
  ]
448
448
  },
449
- "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
449
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
450
450
  }