Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.79.94 #106

Merged
merged 171 commits into from
Jan 13, 2024
Merged

Release v1.79.94 #106

merged 171 commits into from
Jan 13, 2024

Conversation

prjctimg
Copy link
Owner

No description provided.

prjctimg and others added 30 commits November 20, 2023 11:56
…tion simplifying how to simulate cvd by using simple parameters. Adding support for adaptive palettes soon
Refactored toHex to do a ternary check on the hue channel instead of shortcircuiting and disjunctioning
…to inject typedoc results into template files. Still working out some kinks and removing redundant information
… dependencies. Next commit will add emoji injections to beautify the docs
… dependencies. Next commit will add emoji injections to beautify the docs
@prjctimg prjctimg enabled auto-merge (squash) January 13, 2024 16:18
@prjctimg prjctimg disabled auto-merge January 13, 2024 16:18
@prjctimg prjctimg enabled auto-merge (squash) January 13, 2024 16:20
@prjctimg prjctimg requested a review from foss2cyber January 13, 2024 16:20
@prjctimg prjctimg disabled auto-merge January 13, 2024 16:21
@prjctimg
Copy link
Owner Author

prjctimg commented Jan 13, 2024

1.79.94

  • Deprecated temperature based utilities due to inconsistent results.
  • Rewrote the type declarations to make them simpler and more generic.
  • Lightness and chroma channels are now normalized against passed in extremums in the filtering utilities.
  • toHex now supports RGB channel in the [0,255] range and [0,1] as well. Values above 1 are normalized using a simple formula. ch / 255.
  • Removed unnecessary submodules and joined them into grouped modules
  • Added Typedoc as the documentation generator of choice.
  • Added getNearestColor which uses the differenceHyab metric to get the nearest color against a collection.
  • Collection based utilities that took arrays of colors are now generic! If an object is passed its keys are passsed as an index and the values are treated as valid color tokens. Objects can only have a depth of 1 ie nested properties are not supported (yet).
  • Added color vision deficiency simulation support (stable)
  • Added a ColorArray class that has all collection based methods on its prototype as methods. The chain is lazy and requires output() to be called to retun the final result. Its aliased as load() which simply wraps around the class and invoking a new instance under the hood.
    -Added some notes to the docs explaining how some of the utilities work as well as other behaviours of the library.
  • Slimmer bundle size.
  • Fixed import errors. The library is now fully ESM with a UMD build for CDN and minified version for browser.
  • Added support for more uniform colorspaces in hueShift. Jch is currently unsupported because of lightness mapping issues. Support is coming soon though.
  • Removed cyclic dependencies that caused a stackoverflow error.

@prjctimg prjctimg merged commit 1c79c2c into main Jan 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants