Added safe parser support for async
- ✨ Added dependency postcss-safe-parser which creates a more fault tolerant CSS parser. So now when postcss parsers a CSS syntax error, it will try to fix it before throwing an error.
- 🚀 Added id attribute selector support, e.g.
div[id="foobar"]
- 🚀 Added
asteriskName
to options which will allow ability to customize the wildcard scoped name - 🐛 We have to convert all class attribute selectors
[class="someClass"]
into[class~="someClass"]
because we are almost always adding more classes to the element which breaks theclass=
rule. Most of the time the CSS works withclass~=
which is the same as.someClass {}
it's just that people are confused about the syntax. - 🐛 h1, h2, h3, etc. were not getting recognized by the type selector algorithm
- 🐛 Passing nothing into the api would crash the library
- 🐛 Mixing both attribute selectors and normal element selectors would cause the library to ignore the element selectors
- 🚀 Added asterisk
*
selector support, which will convert an asterisk into a class - 🐛 Some attribute class selectors with hyphen were not being scopeified properly
- 🚀 Added
font-face
scopeify support - 🐛 Now properly scopeifing class selectors
div[class="selector"]
- BUGFIX: strict mode for
let
andconst
on older versions of node
- Initial release