Releases: kevinkace/posthtml-pseudo
Releases · kevinkace/posthtml-pseudo
npm audit fix
Update main in package.json
This resolves some conflicts in different v8 environments.
Filter by tag
This plugin now supports filtering by tag type. This required restructuring the config:
let config = {
include : {
classNames : [ "all" ],
tags : [ "td", "th" ]
}
};
Custom class names
Now supports custom class names, such as:
let config = {
include : [
{ ":last-child" : "last" }, // specific replacement
{ "firstLastOnly" : "first-last" }, // replace all in group
{ "all" : (pseudoClass) => pseudoClass.replace(":", "") } // function returning class name
]
};
Resolves #3.
Cleanup .npmignore
And revoke the coveralls.io token... 😊
Bump version for npm
v0.4.1 Bump version
Add support for :default
v0.4.0 Update readme
Add code coverage
Using istanbul for code coverage. Adding some additional test put it over 99% coverage.
Lint
Sort when adding class names, better test coverage
Now class names are sorted when added. This comes into play for the child-type pseudo classes (:first-child
, :last-child
etc).