All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- treat
:import
and :export
statements as pure
- better handle invalid syntax
- adds safety check before accessing "rule parent"
- handles properly selector with escaping characters (like:
.\31 a2b3c { color: red }
)
- Inappropriate modification of
steps
function arguments
- Don't modify inappropriate animation keywords
- Don't break unicode characters.
- Handle uppercase
keyframes
at rule.
- Drop support
nodejs@4
.
- Update
postcss
version to 7
.
- Localisation of animation properties.
- Using global selectors outside of a global context no longer triggers warnings. Instead, this functionality will be provided by a CSS Modules linter.
- Pure mode where only local scope is allowed.
- Using global selectors outside of a global context now triggers warnings.
- Migrated to
css-selector-tokenizer
.
- Renamed project to
postcss-modules-local-by-default
.
- Hide global leak detection behind undocumented
lint
option until it's more robust.
- Transformer output now uses the new
:local(.identifier)
syntax.
- Simple global leak detection. Non-local selectors like
input{}
and [data-foobar]
now throw when not marked as global.
- Support for global selectors appended directly to locals, e.g.
.foo:global(.bar)
- Automatic local classes
- Explicit global selectors with
:global