Skip to content

Releases: kevinkace/posthtml-pseudo

npm audit fix

28 Jan 09:05
Compare
Choose a tag to compare

Update main in package.json

26 Sep 17:22
Compare
Choose a tag to compare

This resolves some conflicts in different v8 environments.

Filter by tag

22 Sep 06:10
Compare
Choose a tag to compare

This plugin now supports filtering by tag type. This required restructuring the config:

let config = {
  include : {
    classNames : [ "all" ],
    tags : [ "td", "th" ]
  }
};

Custom class names

20 Sep 20:40
Compare
Choose a tag to compare

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

10 Sep 19:39
Compare
Choose a tag to compare

And revoke the coveralls.io token... 😊

Bump version for npm

10 Sep 19:07
Compare
Choose a tag to compare
v0.4.1

Bump version

Add support for :default

10 Sep 18:31
Compare
Choose a tag to compare
v0.4.0

Update readme

Add code coverage

09 Sep 05:43
Compare
Choose a tag to compare

Using istanbul for code coverage. Adding some additional test put it over 99% coverage.

Lint

08 Sep 21:17
Compare
Choose a tag to compare

Fix linting errors.

Sort when adding class names, better test coverage

08 Sep 20:50
Compare
Choose a tag to compare

Now class names are sorted when added. This comes into play for the child-type pseudo classes (:first-child, :last-child etc).