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

Pull request for patch release v1.7.4 #88

Merged
merged 34 commits into from
Nov 13, 2023
Merged

Pull request for patch release v1.7.4 #88

merged 34 commits into from
Nov 13, 2023

Conversation

prjctimg
Copy link
Owner

This commit is for v1.7.4

Here are some of the changes made in this patch

  • The library has deprecated the lodash package 📦 in favor of native JS. This will help keep our bundle small. Build is now 20kB minzipped from 70.7kB !
  • Use of the treeshaken version Culori to import only what we need
  • All widely used helper functions are now in a directory called fp/ and they are stored in modules of format [type].ts for example string.ts has functions that take in strings as parameters
  • Added thetoHex() utility which can parse colors in all the library supported formats which are plain objects, numbers (0 - 16,777,215), hex strings/ CSS named colors and even arrays (in the form [mode, number, number, number, number?] with the fourth number parameter being an optional alpha/opacity channel.
  • The build now exports other submodules to help make the library treeshakable for example you can now do something like this for every submodule
import { filterByHue } from 'huetiful-js/filterBy'
  • More changes in the commits 🚀

Let me know if anything can be improved!

@prjctimg prjctimg added this to the Improving documentation user experience and codebase. milestone Nov 12, 2023
Copy link
Collaborator

@adarshswaminath adarshswaminath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review: "Hex utility now supports RGB values not normalized to [0,1]"

Your recent commit expands the hex utility, now accommodating RGB values beyond the normalized [0,1] range. The code appears logically structured with clear comments, enhancing its versatility. Well done on the functional improvement!

@prjctimg
Copy link
Owner Author

Code Review: "Hex utility now supports RGB values not normalized to [0,1]"

Your recent commit expands the hex utility, now accommodating RGB values beyond the normalized [0,1] range. The code appears logically structured with clear comments, enhancing its versatility. Well done on the functional improvement!

Thanks @adarshswaminath ! The next patch will include reordering of the core-utils into more logical folder for even better treeshakability.

…NG.md for better project contribution guidelines. Next patch will update the CHANGELOG.md file
@foss2cyber foss2cyber merged commit b98031f into main Nov 13, 2023
2 checks passed
@foss2cyber foss2cyber deleted the dev branch November 13, 2023 16:11
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.

3 participants