- Fixed: Preserve spaces in multi-part values (#218)
- Fixed: Preserve commas in multi-part values (#221)
- Fixed: Preserve spaces in multi-part values (#203)
- Added: Support for preserving trailing comments within a declaration.
- Updated:
postcss-values-parser
to 3.0.5 (patch)
- Updated:
postcss-values-parser
to 3.0.4 (major) - Updated: Node 8+ compatibility (major)
This release is identical to v9.0.0, only
npm publish
failed to publish v9.0.0 and threw the following error:You cannot publish over the previously published versions: 9.0.0.
I did not want this issue to distract me, and so I thoughtfully and impatiently published v9.0.0 as v9.0.1.
- Added: Synchronous transforms when async is unnecessary (thank @eteeselink)
- Fixed: Unexpected mutations to imported Custom Properties (thank @EECOLOR)
- Fixed: Transforms throwing over unknown Custom Properties
- Added: Support for ignoring lines and or blocks using
postcss-custom-properties
comments. - Updated:
postcss
to 7.0.14 (patch) - Updated:
postcss-values-parser
to 2.0.1 (patch)
- Fixed: Issue with duplicate custom property usage within a declaration
- Fixed: Issue with nested fallbacks
- Fixed: Issue with parsing custom properties that are not strings
- Updated:
postcss
to 7.0.5 (patch)
- Fixed: Issue with regular
:root
andhtml
properties not getting polyfilled - Updated:
postcss
to 7.0.3 (patch)
- Fixed: Issue with multiple
importFrom
not getting combined
- Fixed: Do not break on an empty
importFrom
object
- Updated: PostCSS Values Parser 2
- Fixed: Spacing is preserved before replaced variables.
- Fixed: Workaround issue in
postcss-values-parser
incorrectly cloning nodes.
- Added: New
exportTo
function to specify where to export custom properties to. - Added: New
importFrom
option to specify where to import custom properties from. - Added: Support for variables written within
html
- Added: Support for PostCSS v7.
- Added: Support for Node v6+.
- Removed:
strict
option, as using the fallback value isn’t necessarily more valid. - Removed:
preserve: "computed"
option, as there seems to be little use in preserving custom property declarations while removing all usages of them. - Removed:
warnings
andnoValueNotifications
options, as this should be the job of a linter tool. - Removed:
variables
option, which is now replaced byimportFrom
- Removed:
appendVariables
option, which is now replaced byexportTo
- Fixed: Custom Properties in
:root
are not also transformed. - Fixed: Declarations that do not change are not duplicated during preserve.
- Changed:
preserve
option defaults astrue
to reflect the browser climate - Changed:
warnings
option defaults tofalse
to reflect the browser climate
- Reverted:
preserve
andwarnings
option to be added in major release
- Fixed:
var()
captures strictlyvar()
functions and notxvar()
, etc - Fixed:
var()
better captures whitespace within the function - Fixed: comments within declarations using
var()
are now preserved - Changed:
preserve
option defaults astrue
to reflect the browser climate - Changed:
warnings
option defaults tofalse
to reflect the browser climate - Updated documentation
- Added:
noValueNotifications
option (#71) - Fixed: Typo in
prefixedVariables
variable name (#77)
- Added: Let "warnings" option silence all warnings (#67)
- Dependencies update (postcss, balanced-match)
- Fixed: incorrect export (#69)
- Added: compatibility with postcss v6.x
- Minor dependency update (#57)
- Fixed: trailing space after custom property name causes duplicate empty property (#43)
- Removed: compatibility with postcss v4.x
- Added: compatibility with postcss v5.x
- Added:
warnings
option allows you to disable warnings. (cssnext#186)
- Added: plugin now returns itself in order to expose a
setVariables
function that allow you to programmatically change the variables. (#35)
- Changed: messages and exceptions are now sent using postcss message API.
- Added:
preserve
now support"computed"
so only preserve resolved custom properties (see new option below) - Added:
appendVariables
allows you (whenpreserve
is truthy) to append your variables as custom properties - Added:
strict: false
allows your to avoid too many fallbacks added in your CSS.
- Added: JS defined variables are now resolved too (#22)
- Added: variables defined in JS are now automatically prefixed with
--
(0691784)
- Fixed: logs now have filename back (#19)
- Fixed: issue when multiples undefined custom properties are referenced (#16)
- Added: enhanced exceptions & messages
- Changed: upgrade to postcss 3
- Fixed: more clear message for warning about custom prop used in non top-level :root
- Fixed: warning about custom prop used in non :root
- Added: warning when a custom prop is used in another place than :root
- Added: handle !important
- Added: JS-defined properties override CSS-defined
- Added: nested custom properties usages are now correctly resolved
- Changed: undefined var doesn't throw error anymore (just a console warning) & are kept as is in the output
- Changed: fallback now are always added by default (see why)
- Changed:
map
option renamed tovariables
- Added:
map
option - Changed: GNU style error message
✨ First release based on rework-vars v3.1.1