Releases: lffg/yiq
Releases · lffg/yiq
v4.0.0
See pre-releases 4.0.0-0
and 4.0.0-1
to the commit history.
Features
- Add
threshold
option. (#16) - Drop default export in favor or named export.
Breaking changes
This release contains two breaking changes:
Switch from default export to named export
To migrate, just change all yiq
imports:
- import yiq from 'yiq';
+ import { yiq } from 'yiq';
Or, if you are using CommonJS:
- const yiq = require('yiq');
+ const { yiq } = require('yiq');
Check the #17 pull request to learn more.
New YiqOptions
interface
Thanks to @m1010j!
Previously, the options
object was only used to define custom colors:
interface YiqOptions {
black: string;
white: string;
}
Now, with the addition of the threshold option, the YiqOptions
interface was changed to:
interface YiqOptions {
colors?: {
light: string;
dark: string;
};
threshold?: number;
}
Please note that the color option names were also changed, from black
to dark
and white
to light
.
Check the #16 pull request to learn more.
v4.0.0-1
v4.0.0-0
- docs: Add CI workflow badge 7baa12f
- Merge pull request #17 from lffg/refactor-project-dev 5f4e811
- chore: Add husky and lint-staged e4752b2
- chore: Bump devdeps f58b4e8
- chore: Move test files cf69721
- chore: Use Rollup to build project 12fbbb3
- refactor: Use named export to export
yiq
eea1a93 - ci: Add GitHub Actions CI workflow 9dcf9f7
- ci: Drop CircleCI 15b4b6d
- docs: Edit readme code examples 03fbca7
- chore: Get rid of ESLint dotfiles fcc1efb
- chore: Add new ignored files 71bf07a
- chore: Update ESLint version (7.x) 3e10f9c
- Merge pull request #16 from m1010j/m1010j/threshold-option 1954a51
- Update type in README d7e68a9
- Fix typo 09070de
- Rename white -> light and black -> dark a17acc0
- Move color options into separate options.colors object 49a5068
- Update README 140578e
- Add threshold option 18089cd
- Merge pull request #13 from lffg/dependabot/npm_and_yarn/handlebars-4.5.3 803eada
- chore(deps): bump handlebars from 4.1.2 to 4.5.3 3e01dc0
- Merge pull request #12 from aaronmgdr/patch-1 01c2840
- Fix documentation of options 3f6a3cb
- feat: Parse RGB colors a little bit more efficiently (#11) fedd8a1
- feat: Parse RGB colors a little bit more efficiently 2687cad
- chore(deps): Bump eslint-utils from 1.3.1 to 1.4.2 6899fce
- chore(deps): bump eslint-utils from 1.3.1 to 1.4.2 122b0a3
- chore(deps): Bump lodash from 4.17.11 to 4.17.14 195e56b
- chore(deps): bump lodash from 4.17.11 to 4.17.14 71d8e1e