@thi.ng/color 5.6.50 → 5.6.52

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +5 -3
  3. package/package.json +15 -15
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-07-19T14:56:21Z
3
+ - **Last updated**: 2024-07-22T13:15:57Z
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
@@ -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 189 standalone projects, maintained as part
10
+ > This is one of 198 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
  >
@@ -347,7 +347,7 @@ Full example:
347
347
  import { colorsFromTheme, swatchesH, type ColorThemePartTuple } from "@thi.ng/color";
348
348
  import { serialize } from "@thi.ng/hiccup";
349
349
  import { svg } from "@thi.ng/hiccup-svg";
350
- import { writeFileSync } from "fs";
350
+ import { writeFileSync } "node:fs";
351
351
 
352
352
  // color theme definition using:
353
353
  // color range preset names, CSS colors and weights
@@ -474,7 +474,7 @@ delegates to type specific strategies. See `GradientOpts` for details.
474
474
  import { lch, multiColorGradient, swatchesH } from "@thi.ng/color";
475
475
  import { serialize } from "@thi.ng/hiccup";
476
476
  import { svg } from "@thi.ng/hiccup-svg";
477
- import { writeFileSync } from "fs";
477
+ import { writeFileSync } "node:fs";
478
478
 
479
479
  const L = 0.8;
480
480
  const C = 0.8;
@@ -694,6 +694,8 @@ Package sizes (brotli'd, pre-treeshake): ESM: 15.67 KB
694
694
  - [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers)
695
695
  - [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
696
696
 
697
+ Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
698
+
697
699
  ## Usage examples
698
700
 
699
701
  26 projects in this repo's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.6.50",
3
+ "version": "5.6.52",
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.11.6",
44
- "@thi.ng/arrays": "^2.9.11",
45
- "@thi.ng/binary": "^3.4.29",
46
- "@thi.ng/checks": "^3.6.8",
47
- "@thi.ng/compare": "^2.3.9",
48
- "@thi.ng/compose": "^3.0.9",
49
- "@thi.ng/defmulti": "^3.0.44",
50
- "@thi.ng/errors": "^2.5.12",
51
- "@thi.ng/math": "^5.11.4",
52
- "@thi.ng/random": "^3.8.5",
53
- "@thi.ng/strings": "^3.8.0",
54
- "@thi.ng/transducers": "^9.0.10",
55
- "@thi.ng/vectors": "^7.11.4"
43
+ "@thi.ng/api": "^8.11.7",
44
+ "@thi.ng/arrays": "^2.9.13",
45
+ "@thi.ng/binary": "^3.4.30",
46
+ "@thi.ng/checks": "^3.6.9",
47
+ "@thi.ng/compare": "^2.3.10",
48
+ "@thi.ng/compose": "^3.0.10",
49
+ "@thi.ng/defmulti": "^3.0.45",
50
+ "@thi.ng/errors": "^2.5.13",
51
+ "@thi.ng/math": "^5.11.5",
52
+ "@thi.ng/random": "^4.0.1",
53
+ "@thi.ng/strings": "^3.8.1",
54
+ "@thi.ng/transducers": "^9.0.12",
55
+ "@thi.ng/vectors": "^7.11.6"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@microsoft/api-extractor": "^7.47.0",
@@ -445,5 +445,5 @@
445
445
  "vectors"
446
446
  ]
447
447
  },
448
- "gitHead": "c7aaa453b01a45e5235517db9d2a283b97abac96\n"
448
+ "gitHead": "bd22b0826134b79064169371665b4d6caa9b6066\n"
449
449
  }