v0.4.1: TypeScript support, legacy builds
The main new feature of this release is Typescript support, added in this Herculean PR by @MysteryBlokHed and reviewed by @jgerigmeyer.
Other new features and changes:
deltaPhi
contrast method now supported, thanks to a PR by @Myndex- Node v12 and somewhat older browsers are now supported, through separate
.legacy
builds, thanks to a PR by @jgerigmeyer - The
premultiplied
option is now supported inmix()
, thanks to a PR by @redneb - Support both number and percent in (ok)lab and (ok)lch lightness. Serialize as number, per spec.
- Lab-D65 is now serialized as
lab-d65()
and notlab()
.
All merged pull requests
- [contrast / deltaPhi] by @Myndex in #209
- Fix missing import by @Myndex in #210
- Add Carbon by @sayzlim in #211
- Fix some typos in contrast docs by @xi in #216
- Contrast docs by @svgeesus in #214
- Add Babel with support for Node v12. by @jgerigmeyer in #215
- Update z-index by @mixalistzikas in #222
- [types] Add type definitions from DefinitelyTyped/DefinitelyTyped#62510 by @MysteryBlokHed in #221
- support the premultiplied option in mix by @redneb in #219
- [spaces] Lab,LCH,Oklab,Oklch lightness is number or percent. Fix #225 by @svgeesus in #227
- [tests] correct an XYZ test, now passes by @svgeesus in #229
New Contributors
- @Myndex made their first contribution in #209
- @sayzlim made their first contribution in #211
- @xi made their first contribution in #216
- @jgerigmeyer made their first contribution in #215
- @mixalistzikas made their first contribution in #222
- @MysteryBlokHed made their first contribution in #221
- @redneb made their first contribution in #219
Full Changelog: v0.4.0...v0.4.1