This project uses semantic versioning.
- Recognized
light-dark()
,AccentColor
,AccentColorText
,SelectedItem
, andSelectedItemText
as color values
- BREAKING: Dropped support for Node.js 14 and 16, so Node.js 18 or greater is now supported.
- Removed the ESM exports. All Node.js versions support CommonJS, so this should not matter.
- The dedicated Deno version is discontinued.
Please import
npm:postcss-color-image@VERSION
instead.
- BREAKING: Renamed the recognized color
color-contrast()
tocontrast-color()
(w3c/csswg-drafts#7557) - BREAKING: Dropped the support for Node.js 12 and 17 (so Node.js 14, 16, and 18 or greater are now supported)
- BREAKING: Instead of duplicating the color in the output gradient,
a double-position color stop is now added
to make the output shorter and more DRY
- For example, the old output
linear-gradient(red, red)
is nowlinear-gradient(red 0 0)
- For wider browser support, you can use the old behavior
by setting the new option
compat: true
- For example, the old output
- BREAKING: Removed
color-adjust()
as a recognized color, because it has been removed from the spec - Added a new option
preserve: true
to keep the original CSS declaration alongside the transformed one - Changed the license from MIT to ISC
- Recognized
oklab()
andoklch()
as color values - Deprecated
color-adjust()
, which was removed from the spec and which will be removed in the next major version of this package
- Updated readme
- BREAKING: Dropped the support for Node.js 10 and 15 (so Node.js 12, 14, and 16 or greater are now supported)
- Added an ESM version for Node.js
- Added support for Deno 🦕
- Recognized
color-mix()
,color-contrast()
, andcolor-adjust()
as color values
- Fixed the
postcss
peer dependency version to be^8.0.0
- Removed the development fields from
package.json
before publishing
- BREAKING: Moved to PostCSS 8
- BREAKING: Removed the support for non-lowercase
image
function - BREAKING: Made
postcss
a peer dependency - BREAKING: Added support for Node.js 10 and dropped from v13
- Added tests
- Updated the dependencies
- Initial release