@thi.ng/color 5.6.49 → 5.6.51

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 +7 -5
  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-16T13:09:33Z
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
@@ -1,13 +1,13 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- # ![@thi.ng/color](https://media.thi.ng/umbrella/banners-20230807/thing-color.svg?c4654abf)
3
+ # ![@thi.ng/color](https://media.thi.ng/umbrella/banners-20230807/thing-color.svg?38e130f4)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/color.svg)](https://www.npmjs.com/package/@thi.ng/color)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/color.svg)
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 188 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,9 +694,11 @@ 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
- Several projects in this repo's
701
+ 26 projects in this repo's
700
702
  [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
701
703
  directory are using this package:
702
704
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.6.49",
3
+ "version": "5.6.51",
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.5",
44
- "@thi.ng/arrays": "^2.9.10",
45
- "@thi.ng/binary": "^3.4.28",
46
- "@thi.ng/checks": "^3.6.7",
47
- "@thi.ng/compare": "^2.3.8",
48
- "@thi.ng/compose": "^3.0.8",
49
- "@thi.ng/defmulti": "^3.0.43",
50
- "@thi.ng/errors": "^2.5.11",
51
- "@thi.ng/math": "^5.11.3",
52
- "@thi.ng/random": "^3.8.4",
53
- "@thi.ng/strings": "^3.7.37",
54
- "@thi.ng/transducers": "^9.0.9",
55
- "@thi.ng/vectors": "^7.11.3"
43
+ "@thi.ng/api": "^8.11.7",
44
+ "@thi.ng/arrays": "^2.9.12",
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.0",
53
+ "@thi.ng/strings": "^3.8.1",
54
+ "@thi.ng/transducers": "^9.0.11",
55
+ "@thi.ng/vectors": "^7.11.5"
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": "ba4f2cd15eeb0cae30efe222524da4fed2a57267\n"
448
+ "gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
449
449
  }