@thi.ng/color 5.7.20 → 5.7.21

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 (2) hide show
  1. package/CHANGELOG.md +3 -474
  2. package/package.json +16 -17
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-21T15:46:52Z
3
+ - **Last updated**: 2025-01-23T13:39: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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -184,476 +186,3 @@ and/or version bumps of transitive dependencies.
184
186
  - `triadicStrategy()`
185
187
  - `tetradicStrategy()`
186
188
  - `squareStrategy()`
187
-
188
- ## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@4.1.0) (2021-11-17)
189
-
190
- #### 🚀 Features
191
-
192
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
193
- Improving the overall build ergonomics
194
- - introduced a tools workspaces
195
- - imported it in all needed packages/examples
196
- - inclusive project root
197
-
198
- #### ♻️ Refactoring
199
-
200
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
201
- this commit reverts (partly) changes made in:
202
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
203
- overall purpose is better testament ergonomics:
204
- instead of having to pass NODE_OPTIONS with every invocation
205
- having a binary to handle this for us.
206
-
207
- ### [4.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@4.0.9) (2021-11-10)
208
-
209
- #### ♻️ Refactoring
210
-
211
- - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
212
-
213
- ### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@4.0.1) (2021-10-13)
214
-
215
- #### ♻️ Refactoring
216
-
217
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
218
- - add .js suffix for all relative imports
219
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
220
-
221
- # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@4.0.0) (2021-10-12)
222
-
223
- #### 🛑 Breaking changes
224
-
225
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
226
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
227
- - only ESM modules will be published from now on
228
- - CJS obsolete due to ESM support in recent versions of node:
229
- - i.e. launch NodeJS via:
230
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
231
- - in the node REPL use `await import(...)` instead of `require()`
232
- - UMD obsolete due to widespread browser support for ESM
233
- Also:
234
- - normalize/restructure/reorg all package.json files
235
- - cleanup all build scripts, remove obsolete
236
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
237
-
238
- #### 🚀 Features
239
-
240
- - add mandatory toRgb conversions ([6c4c13b](https://github.com/thi-ng/umbrella/commit/6c4c13b))
241
- - due to defColor() dynamically registering related conversions for
242
- a given color mode, deep imports might not make conversion routes
243
- available
244
- - new mandatory `toRgb` key in ColorSpec offers a fallback solution
245
- - Int32/ABGR/ARGB updates/fixes ([d20e77c](https://github.com/thi-ng/umbrella/commit/d20e77c))
246
- - update TypedColor (add IEqualsDelta, Iterable parents)
247
- - add shared Int32.eqDelta() impl
248
- - add ARGB/ABGR normalized channel value accessors
249
- - fix various bugs in defInt() factory
250
- - return correct type if no args given
251
- - update return type in .mapBuffer()
252
- - add internal __scale8bit() helper fn
253
-
254
- #### ♻️ Refactoring
255
-
256
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
257
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
258
- - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
259
- - update imports ([1736278](https://github.com/thi-ng/umbrella/commit/1736278))
260
- - update imports ([00188f4](https://github.com/thi-ng/umbrella/commit/00188f4))
261
- - update imports ([c642082](https://github.com/thi-ng/umbrella/commit/c642082))
262
- - update imports (transducers) ([0bc002c](https://github.com/thi-ng/umbrella/commit/0bc002c))
263
- - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
264
- - largely related to recent updates/restructuring of these packages:
265
- - api
266
- - defmulti
267
- - errors
268
- - logger
269
- - sideeffect-free defmulti specs ([9909909](https://github.com/thi-ng/umbrella/commit/9909909))
270
- - restructure package ([bf9edcb](https://github.com/thi-ng/umbrella/commit/bf9edcb))
271
- - migrate/lift `/src/ops` source files to `/src` for easier use
272
- - rename/migrate internal fns ([5faa747](https://github.com/thi-ng/umbrella/commit/5faa747))
273
-
274
- ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@3.2.0) (2021-08-04)
275
-
276
- #### 🚀 Features
277
-
278
- - add/update swatch functions ([391ae4a](https://github.com/thi-ng/umbrella/commit/391ae4a))
279
- - add dotsH/V()
280
- - update swatchesH/V(), add `gap` arg
281
-
282
- ### [3.1.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@3.1.12) (2021-04-03)
283
-
284
- #### ♻️ Refactoring
285
-
286
- - minor updates ([7575146](https://github.com/thi-ng/umbrella/commit/7575146))
287
-
288
- ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@3.1.0) (2021-02-24)
289
-
290
- #### 🚀 Features
291
-
292
- - add .toString() impl ([cc65bf0](https://github.com/thi-ng/umbrella/commit/cc65bf0))
293
-
294
- ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@3.0.1) (2021-02-22)
295
-
296
- #### 🩹 Bug fixes
297
-
298
- - update compileThemePart() ([b8ceed6](https://github.com/thi-ng/umbrella/commit/b8ceed6))
299
- - don't mutate original theme part if given as object
300
-
301
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@3.0.0) (2021-02-20)
302
-
303
- #### 🛑 Breaking changes
304
-
305
- - new parseCSS(), add SRGBA, update conversions ([f748d65](https://github.com/thi-ng/umbrella/commit/f748d65))
306
- - BREAKING CHANGE: parseCSS() now returns wrapped color types,
307
- not raw RGBA arrays as previously
308
- - parseCSS() now returns SRGBA, HSLA, LAB or LCH color types and supports more CSS syntax opts
309
- - all asXXX() functions also return wrapped colors,
310
- only asCSS() still returns strings
311
- - add SRGBA type/color mode reserve existing RGBA for
312
- linear colors (non-gamma corrected)
313
- - rename existing conversions, now using SRGBA (i.e. srgbaCss(),
314
- srgbaInt()), add new versions for (now linear) RGBA
315
- - parseCSS() RGB colors now result in SRGB instances,
316
- use asRGBA() or srgbRgba() to convert to linear RGB
317
- - add multiColorGradient(), update cos version ([dc88f37](https://github.com/thi-ng/umbrella/commit/dc88f37))
318
- - BREAKING CHANGE: multiCosineGradient() args now given as options object
319
- - add MultiGradientOpts
320
- - add support for per-interval easing
321
- - add support for result color coercion
322
- - major update/rename all types/conversions ([4143c8f](https://github.com/thi-ng/umbrella/commit/4143c8f))
323
- - BREAKING CHANGE: update/rename all color types/conversions
324
- - rename YCbCrA => YCC
325
- - remove `A` suffix from all color types
326
- (e.g. `HSVA` => `HSV`, `XYZA` => `XYZ` etc.)
327
- - accordingly, rename all conversions (e.g. `rgbaHsva()` => `rgbHsv()`)
328
- - rename `.alpha` accessor in all color types
329
- (previously a mixture of `.a` vs `.alpha`, now always latter)
330
- - standardize casing in all function names (now always camelCase)
331
- e.g. `asCSS()` => `asCss()`
332
- - resolveAsCss() untyped default now sRGB
333
- - rename distSatHsv() => distHsvSat()
334
- - rename distLumaHsv() => distHsvLuma()
335
- - rename distLumaRGB() => distRgbLuma()
336
- - add distChannel() HOF
337
- - add basic convert() support for Lab<>LCH<>CSS
338
- - add/update docstrings
339
- - rename RANGES => COLOR_RANGES
340
- - update colorFromRange(), colorsFromRange() and
341
- colorsFromTheme() to return wrapped HSV colors
342
- - major restructure, new types/conversions ([6389f7c](https://github.com/thi-ng/umbrella/commit/6389f7c))
343
- - BREAKING CHANGE: replace color classes w/ dynamically generated impls
344
- - add ColorSpec, ColorType, ColorFactory types
345
- - add defColor() color type factory based on declarative ColorSpec
346
- - all color types now based on defColor()
347
- - remove obsolete AColor class
348
- - color factories now also act as converters
349
- - add color() factory to wrap color in class for given mode
350
- - remove CSS and Int types (use plain strings/ints now, and use css()
351
- or resolveAsCss() to convert to CSS strings)
352
- - parseCss() now returns ParsedColor (circumvents circular deps)
353
- - replace convert() w/ new simplified version
354
- - add/update generic isGray(), isBlack(), isWhite(), luminance()
355
- - update types, CSS formatting ([f0502a2](https://github.com/thi-ng/umbrella/commit/f0502a2))
356
- - BREAKING CHANGE: remove obsolete resolveAsCss(), use css() instead
357
- - update MaybeColor alias
358
- - update TypedColor
359
- - merge resolveAsCss() cases into css()
360
- - fix color factory for int args
361
-
362
- #### 🚀 Features
363
-
364
- - add Oklab color space support ([57a5bad](https://github.com/thi-ng/umbrella/commit/57a5bad))
365
- - add XYZ/Oklab conversions, update/fix XYZ matrices ([e07a038](https://github.com/thi-ng/umbrella/commit/e07a038))
366
- - add/refactor oklab conversions (XYZ / RGBA / CSS)
367
- - RGB_XYZ / XYZ_RGB matrices were row-major, now correctly column major
368
- - add barebones support for LAB & LCH ([6e3b8c9](https://github.com/thi-ng/umbrella/commit/6e3b8c9))
369
- - update CSS_NAMES ([7ea0cf0](https://github.com/thi-ng/umbrella/commit/7ea0cf0))
370
- - add SystemColors and defaults ([16bad21](https://github.com/thi-ng/umbrella/commit/16bad21))
371
- - add wavelengthXyza() ([d29ce23](https://github.com/thi-ng/umbrella/commit/d29ce23))
372
- - add AColor.toJSON() ([ee96412](https://github.com/thi-ng/umbrella/commit/ee96412))
373
- - better handling for memory mapped colors
374
- - add AColor.set() ([7e7a05c](https://github.com/thi-ng/umbrella/commit/7e7a05c))
375
- - add XYY mode ([7a743f2](https://github.com/thi-ng/umbrella/commit/7a743f2))
376
- - currently only conversions from/to XYZ
377
- - add rgbSrgbApprox() and vice versa ([c1efada](https://github.com/thi-ng/umbrella/commit/c1efada))
378
- - add/update Lab/XYZ/LCH conversions ([9feb251](https://github.com/thi-ng/umbrella/commit/9feb251))
379
- - add D50/D65 white points & matrices
380
- - add Lab<>XYZ<>RGB conversions (for diff white points)
381
- - update/fix Lab/LCH CSS formatting
382
- - update mulV33 to NOT clamp result by default
383
- - add/update luminance & YCC conversion ([89ca131](https://github.com/thi-ng/umbrella/commit/89ca131))
384
- - add SRGB luminance versions, update RGB version to
385
- use linear weights
386
- - update RGB<>YCC conversion fns (configurable luma)
387
- - update grayscale(), luminanceAlpha() default coeffs
388
- to use linear RGB weights
389
- - update/restructure types, add buffer mapping ([cebaafa](https://github.com/thi-ng/umbrella/commit/cebaafa))
390
- - add ColorFactory.mapBuffer()
391
- - add ColorFactory/TypedColor.random()
392
- - update all color class declarations
393
- - split api.ts into /api subdir
394
- - update css()
395
- - split Lab & XYZ types into D50/D65 ([29e1e74](https://github.com/thi-ng/umbrella/commit/29e1e74))
396
- - add LabD50/D65, add XYZD50/XYZD65
397
- - rename factory fns (labD50/D65, xyzD50/D65)
398
- - update/simplify ColorSpec in all color type defs
399
- - add tools/limits.ts to sample RGB gamut limits, add to color defs
400
- - add TypedColor.clamp(), update defColor()
401
- - fix Oklab<>XYZ conversions (use D65 as default)
402
- - add lab D50/65 conv, update HSx<>CSS conv ([014e41d](https://github.com/thi-ng/umbrella/commit/014e41d))
403
- - add labLabD50_65/D65_50()
404
- - add lab65 -> CSS conversion (always as D50)
405
- - since there's no official requirement, allow direct conversions
406
- from sRGB to various HSx modes (also to be backward compatible)
407
- - add sortMapped() for mapped memory cols ([9a548ec](https://github.com/thi-ng/umbrella/commit/9a548ec))
408
- - add ARGB32/ABGR32 int types/conversions ([1993beb](https://github.com/thi-ng/umbrella/commit/1993beb))
409
- - rename existing int conversion fns
410
- - add versions for ARGB/ABGR orders
411
- - add/update luminance fns
412
- - minor update defConversions()
413
- - improve int ARGB/ABGR support ([6460e4d](https://github.com/thi-ng/umbrella/commit/6460e4d))
414
- - add CSS conversions
415
- - add ARGB<>ABGR swapping
416
- - add converters for RGB/SRGB
417
- - add setPrecision(), LCH cleanup ([778f84a](https://github.com/thi-ng/umbrella/commit/778f84a))
418
- - add gradient and mix fns ([f31966c](https://github.com/thi-ng/umbrella/commit/f31966c))
419
- - add cosineGradientBuffer()
420
- - add multiColorGradientBuffer()
421
- - add defMix(), mixHsl(), mixLch() fns
422
- - remove obsolete mixAlpha() (use porter-duff pkg for alpha blending)
423
- - convert mix() to defmulti, color mode aware ([faed98b](https://github.com/thi-ng/umbrella/commit/faed98b))
424
- - add TypedColor/ColorFactory.range impls ([7ecfa0c](https://github.com/thi-ng/umbrella/commit/7ecfa0c))
425
- - add Int32.alpha accessor, minor update int->srgb ([b65f9ee](https://github.com/thi-ng/umbrella/commit/b65f9ee))
426
- - use RGB fallbacks for Lab/LCH CSS ([53ddaeb](https://github.com/thi-ng/umbrella/commit/53ddaeb))
427
- - keep existing conversions, but disable until browser support is ready
428
- - add generic analog() (for all color types) ([117a5bc](https://github.com/thi-ng/umbrella/commit/117a5bc))
429
- - generic isBlack/Gray/White, LCH color ranges ([598afdf](https://github.com/thi-ng/umbrella/commit/598afdf))
430
- - update ColorRange, ColorRangeOpts and related fns to switch HSV -> LCH
431
- - update ColorFactory, TypedColor ([8c5f8fb](https://github.com/thi-ng/umbrella/commit/8c5f8fb))
432
- - add `Symbol.toStringTag` impl
433
- - expose `.class` in color factories
434
- - add support for longer conversions (2-4 steps) in defConversions()
435
- - add/update conversions ([e979044](https://github.com/thi-ng/umbrella/commit/e979044))
436
- - update ColorMix & gradient types/functions ([829fcf6](https://github.com/thi-ng/umbrella/commit/829fcf6))
437
- - add/update distance functions ([6d15065](https://github.com/thi-ng/umbrella/commit/6d15065))
438
- - add distCIEDE2000()
439
- - add distCMC()
440
- - rename distRgb() => distEucledian3
441
- - add distEucledian4
442
- - replace proximity functions ([7a0be62](https://github.com/thi-ng/umbrella/commit/7a0be62))
443
- - add new proximity() HOF to replace proximityHsv/Rgb()
444
-
445
- #### 🩹 Bug fixes
446
-
447
- - fix resolveAsCSS() ([7b1eeff](https://github.com/thi-ng/umbrella/commit/7b1eeff))
448
- - color mode field is a string now, not number anymore
449
- - wi/o this fix any non-RGB color would be wrongly interpreted as RGBA
450
- - normalize LCH hue channel ([c0b9e9d](https://github.com/thi-ng/umbrella/commit/c0b9e9d))
451
- - update resolveAsCss() ([0e7e955](https://github.com/thi-ng/umbrella/commit/0e7e955))
452
- - constrain arg type, add string test/case
453
- - update Lab/LCH rules in parseCss() ([cb7f15e](https://github.com/thi-ng/umbrella/commit/cb7f15e))
454
- - div-by-zero in XYY<>XYZ conversions ([8a71c6e](https://github.com/thi-ng/umbrella/commit/8a71c6e))
455
- - fix typo in parseHex, update parse helpers ([a7315c0](https://github.com/thi-ng/umbrella/commit/a7315c0))
456
- - rescale labXyz(), use D50 for LCH->RGB ([9e59545](https://github.com/thi-ng/umbrella/commit/9e59545))
457
- - unconstrained analog() for some modes ([439265b](https://github.com/thi-ng/umbrella/commit/439265b))
458
- - don't clamp Oklab/XYZ<>RGB conversions ([fab3639](https://github.com/thi-ng/umbrella/commit/fab3639))
459
- - kelvinRgb() results are sRGB ([31cd4b5](https://github.com/thi-ng/umbrella/commit/31cd4b5))
460
-
461
- #### ⏱ Performance improvements
462
-
463
- - make defColor() fixed for 4 channels ([4ea77ef](https://github.com/thi-ng/umbrella/commit/4ea77ef))
464
-
465
- #### ♻️ Refactoring
466
-
467
- - minor update mode getter impls ([bacc446](https://github.com/thi-ng/umbrella/commit/bacc446))
468
- - add/update pkg exports ([f6826dd](https://github.com/thi-ng/umbrella/commit/f6826dd))
469
- - update args for swatch fns ([e5b1b9b](https://github.com/thi-ng/umbrella/commit/e5b1b9b))
470
- - rename GRADIENTS => COSINE_GRADIENTS ([22fe0de](https://github.com/thi-ng/umbrella/commit/22fe0de))
471
- - migrate multiColorGradient() to separate file
472
- - update ColorSpec handling ([d5d605e](https://github.com/thi-ng/umbrella/commit/d5d605e))
473
- - make ChannelSpecs optional, update defaults handling in defColor()
474
- - simplify int24Css() ([ebe3948](https://github.com/thi-ng/umbrella/commit/ebe3948))
475
- - simplify defColor() factory fn ([afc300c](https://github.com/thi-ng/umbrella/commit/afc300c))
476
- - update css() ([655dd32](https://github.com/thi-ng/umbrella/commit/655dd32))
477
- - rename dynamic class in defColor() ([4c846d6](https://github.com/thi-ng/umbrella/commit/4c846d6))
478
- - update backing buffer types ([b5661db](https://github.com/thi-ng/umbrella/commit/b5661db))
479
- - use NumericArray (see related change in [0e4edb793](https://github.com/thi-ng/umbrella/commit/0e4edb793))
480
- - update sortMapped() ([6b5fed9](https://github.com/thi-ng/umbrella/commit/6b5fed9))
481
- - rename fns in gradient gen tool ([69e2287](https://github.com/thi-ng/umbrella/commit/69e2287))
482
- - update int-int fns, docs, readme ([1ef7341](https://github.com/thi-ng/umbrella/commit/1ef7341))
483
- - re-use swapLane13() for ARGB<>ABGR
484
- - update deps
485
- - update CSS ref links
486
- - update readme
487
- - replace ensureHue() w/ fract() ([1499904](https://github.com/thi-ng/umbrella/commit/1499904))
488
- - add/rename luminance consts, add docs ([9d43274](https://github.com/thi-ng/umbrella/commit/9d43274))
489
- - update colorFromRange(), asThemePart() ([2e4e14d](https://github.com/thi-ng/umbrella/commit/2e4e14d))
490
- - add ColorRangeOpts.base, update related fns ([e06c7ee](https://github.com/thi-ng/umbrella/commit/e06c7ee))
491
- - move base arg into ColorRangeOpts
492
- - update colorFromRange(), colorsFromRange(), colorsFromTheme()
493
- - update LAB<>LCH conversions ([eb03c89](https://github.com/thi-ng/umbrella/commit/eb03c89))
494
- - update types ([729db15](https://github.com/thi-ng/umbrella/commit/729db15))
495
- - update parseHex 3/4 digit handling ([7424906](https://github.com/thi-ng/umbrella/commit/7424906))
496
- - update color range presets ([9353c93](https://github.com/thi-ng/umbrella/commit/9353c93))
497
- - adjust/balance settings for LCH (from former HSV configs)
498
-
499
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@2.1.0) (2021-01-02)
500
-
501
- #### 🚀 Features
502
-
503
- - add HSV/RGB distance fns ([3bd3969](https://github.com/thi-ng/umbrella/commit/3bd3969))
504
- - add HSV/RGB gray axis checks ([927202b](https://github.com/thi-ng/umbrella/commit/927202b))
505
- - add declarative range/theme iterators ([971d5dc](https://github.com/thi-ng/umbrella/commit/971d5dc))
506
- - add ColorRange related types
507
- - add ColorRange presets
508
- - add colorFromRange()
509
- - add colorsFromRange(), colorsFromTheme() iterators
510
- - add analogHSV(), analogRGB() functions
511
- - add sortColors(), comparators ([6761feb](https://github.com/thi-ng/umbrella/commit/6761feb))
512
- - add color swatch hiccup helpers ([5ecc528](https://github.com/thi-ng/umbrella/commit/5ecc528))
513
- - update ColorRangeOpts, add docstrings ([350fbe5](https://github.com/thi-ng/umbrella/commit/350fbe5))
514
-
515
- #### 🩹 Bug fixes
516
-
517
- - fix cosineGradient() return type ([651590c](https://github.com/thi-ng/umbrella/commit/651590c))
518
-
519
- #### ♻️ Refactoring
520
-
521
- - add/migrate types for presets ([a8e815b](https://github.com/thi-ng/umbrella/commit/a8e815b))
522
- - update color range iterators ([ea1acc8](https://github.com/thi-ng/umbrella/commit/ea1acc8))
523
- - update colorsFromTheme() & asThemePart() to precompute spec details
524
- - minor update colorFromRange() (opts)
525
- - replace ColorThemePartString ([efbb6f3](https://github.com/thi-ng/umbrella/commit/efbb6f3))
526
- - add ColorThemePartTuple
527
- - update asThemePart() to convert tuple versions
528
- - to avoid TS typecheck perf issues w/ the template literal string,
529
- switch to a tuple format for theme parts
530
- - update swatch tool
531
-
532
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@2.0.0) (2020-12-22)
533
-
534
- #### 🛑 Breaking changes
535
-
536
- - fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([17e2449](https://github.com/thi-ng/umbrella/commit/17e2449))
537
- - BREAKING CHANGE: replace ColorMode w/ type alias
538
-
539
- ### [1.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.3.2) (2020-12-07)
540
-
541
- #### ♻️ Refactoring
542
-
543
- - update type-only imports ([2808adf](https://github.com/thi-ng/umbrella/commit/2808adf))
544
-
545
- ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.3.0) (2020-11-24)
546
-
547
- #### 🚀 Features
548
-
549
- - add GradientPresets type, update GRADIENTS ([985b719](https://github.com/thi-ng/umbrella/commit/985b719))
550
- - allows for autocomplete of gradient IDs
551
-
552
- ### [1.2.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.2.16) (2020-09-13)
553
-
554
- #### ♻️ Refactoring
555
-
556
- - update types, imports ([f0fa5b0](https://github.com/thi-ng/umbrella/commit/f0fa5b0))
557
-
558
- ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.2.0) (2020-05-29)
559
-
560
- #### 🚀 Features
561
-
562
- - add gradient presets ([2f93581](https://github.com/thi-ng/umbrella/commit/2f93581))
563
-
564
- ### [1.1.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.1.12) (2020-04-05)
565
-
566
- #### ♻️ Refactoring
567
-
568
- - switch to non-const enums ([1802fbe](https://github.com/thi-ng/umbrella/commit/1802fbe))
569
-
570
- ### [1.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.1.6) (2020-02-25)
571
-
572
- #### ♻️ Refactoring
573
-
574
- - update imports, internal restruct ([592409c](https://github.com/thi-ng/umbrella/commit/592409c))
575
-
576
- ### [1.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.1.2) (2019-11-09)
577
-
578
- #### 🩹 Bug fixes
579
-
580
- - update/rename imports (vectors pkg) ([7cb8877](https://github.com/thi-ng/umbrella/commit/7cb8877))
581
- - values() => stridedValues()
582
-
583
- #### ♻️ Refactoring
584
-
585
- - update wrapSides/tween call sites in various pkgs ([ee8200c](https://github.com/thi-ng/umbrella/commit/ee8200c))
586
- - update multiCosineGradient() ([0359d4a](https://github.com/thi-ng/umbrella/commit/0359d4a))
587
- - update tween() args due to API change
588
-
589
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.1.0) (2019-08-21)
590
-
591
- #### 🚀 Features
592
-
593
- - add resolveAsCSS(), update deps ([f96ac92](https://github.com/thi-ng/umbrella/commit/f96ac92))
594
- - add [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/main/packages/checks) as explicit dep
595
-
596
- ### [1.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.0.2) (2019-08-16)
597
-
598
- #### 🩹 Bug fixes
599
-
600
- - add proper rounding to rgbaInt() ([d956954](https://github.com/thi-ng/umbrella/commit/d956954))
601
-
602
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@1.0.0) (2019-07-31)
603
-
604
- #### 🛑 Breaking changes
605
-
606
- - remove PD related functions, update readme ([5d868db](https://github.com/thi-ng/umbrella/commit/5d868db))
607
- - BREAKING CHANGE: Porter-Duff ops & pre/post-multiply moved to
608
- new package [@thi.ng/porter-duff](https://github.com/thi-ng/umbrella/tree/main/packages/porter-duff)
609
-
610
- #### 🚀 Features
611
-
612
- - ([#106](https://github.com/thi-ng/umbrella/issues/106)) add PD int ops, clamp existing `porterDuff()` ([4c975b2](https://github.com/thi-ng/umbrella/commit/4c975b2))
613
- - add premultiplyInt / postmultiplyInt
614
-
615
- #### 🩹 Bug fixes
616
-
617
- - update factory fn args for mem-mapped colors ([eae671e](https://github.com/thi-ng/umbrella/commit/eae671e))
618
- - add support for opt offset/stride (was already supported by class ctors)
619
- - update shared `ensureArgs()` helper
620
-
621
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@0.2.0) (2019-07-07)
622
-
623
- #### 🚀 Features
624
-
625
- - enable TS strict compiler flags (refactor) ([8c13166](https://github.com/thi-ng/umbrella/commit/8c13166))
626
- - reformat color matrices in transform.ts
627
- - TS strictNullChecks, update color conversion fns ([04dc356](https://github.com/thi-ng/umbrella/commit/04dc356))
628
-
629
- ### [0.1.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@0.1.11) (2019-03-10)
630
-
631
- #### ♻️ Refactoring
632
-
633
- - update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
634
-
635
- ### [0.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@0.1.10) (2019-03-04)
636
-
637
- #### 🩹 Bug fixes
638
-
639
- - add/update luminanceRGB/luminanceInt, add to re-exports ([566cf02](https://github.com/thi-ng/umbrella/commit/566cf02))
640
-
641
- ### [0.1.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@0.1.7) (2019-02-28)
642
-
643
- #### 🩹 Bug fixes
644
-
645
- - update ColorMode & Hue const enum handling ([bb71b7c](https://github.com/thi-ng/umbrella/commit/bb71b7c))
646
- - remove reverse `__ColorMode` hack
647
- - should fix bundling issues w/ webpack
648
-
649
- ### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@0.1.3) (2019-02-05)
650
-
651
- #### ♻️ Refactoring
652
-
653
- - update imports (zip) ([2904590](https://github.com/thi-ng/umbrella/commit/2904590))
654
-
655
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@0.1.0) (2019-01-21)
656
-
657
- #### ♻️ Refactoring
658
-
659
- - remove circular dependencies, update parseCss() ([5ca5803](https://github.com/thi-ng/umbrella/commit/5ca5803))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.7.20",
3
+ "version": "5.7.21",
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",
@@ -44,25 +44,24 @@
44
44
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
45
45
  },
46
46
  "dependencies": {
47
- "@thi.ng/api": "^8.11.17",
48
- "@thi.ng/arrays": "^2.10.12",
49
- "@thi.ng/binary": "^3.4.40",
50
- "@thi.ng/checks": "^3.6.20",
51
- "@thi.ng/compare": "^2.4.9",
52
- "@thi.ng/compose": "^3.0.20",
53
- "@thi.ng/defmulti": "^3.0.56",
54
- "@thi.ng/errors": "^2.5.23",
55
- "@thi.ng/math": "^5.11.17",
56
- "@thi.ng/random": "^4.1.8",
57
- "@thi.ng/strings": "^3.9.2",
58
- "@thi.ng/transducers": "^9.2.15",
59
- "@thi.ng/vectors": "^7.12.17"
47
+ "@thi.ng/api": "^8.11.18",
48
+ "@thi.ng/arrays": "^2.10.13",
49
+ "@thi.ng/binary": "^3.4.41",
50
+ "@thi.ng/checks": "^3.6.21",
51
+ "@thi.ng/compare": "^2.4.10",
52
+ "@thi.ng/compose": "^3.0.21",
53
+ "@thi.ng/defmulti": "^3.0.57",
54
+ "@thi.ng/errors": "^2.5.24",
55
+ "@thi.ng/math": "^5.11.18",
56
+ "@thi.ng/random": "^4.1.9",
57
+ "@thi.ng/strings": "^3.9.3",
58
+ "@thi.ng/transducers": "^9.2.16",
59
+ "@thi.ng/vectors": "^7.12.18"
60
60
  },
61
61
  "devDependencies": {
62
- "@microsoft/api-extractor": "^7.48.1",
63
62
  "esbuild": "^0.24.2",
64
63
  "typedoc": "^0.27.6",
65
- "typescript": "^5.7.2"
64
+ "typescript": "^5.7.3"
66
65
  },
67
66
  "keywords": [
68
67
  "color",
@@ -448,5 +447,5 @@
448
447
  "vectors"
449
448
  ]
450
449
  },
451
- "gitHead": "22f6d518aed5951bb37b406c8ae85a6c3e6be517\n"
450
+ "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
452
451
  }