tag:github.com,2008:https://github.com/fb55/css-what/releases Release notes from css-what 2022-03-31T13:20:12Z tag:github.com,2008:Repository/4460687/v6.1.0 2022-03-31T13:21:05Z v6.1.0 <ul> <li>feat: Support pseudo elements with data (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1188064745" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/762" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/762/hovercard" href="https://github.com/fb55/css-what/pull/762">#762</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/3be227a73167d1887feae5caa8369525f285ea1c/hovercard" href="https://github.com/fb55/css-what/commit/3be227a73167d1887feae5caa8369525f285ea1c"><tt>3be227a</tt></a></li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v6.0.1...v6.1.0"><tt>v6.0.1...v6.1.0</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v6.0.1 2021-12-27T10:46:51Z v6.0.1 <ul> <li>Fix parsing column combinators after tag names <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/503570e59e010215d22993d11cb61fa801b3b752/hovercard" href="https://github.com/fb55/css-what/commit/503570e59e010215d22993d11cb61fa801b3b752"><tt>503570e</tt></a></li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v6.0.0...v6.0.1"><tt>v6.0.0...v6.0.1</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v6.0.0 2021-12-27T10:47:55Z v6.0.0 <h2>Breaking Changes</h2> <ul> <li>Added ES6 module export (by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spocke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spocke">@spocke</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1082520136" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/680" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/680/hovercard" href="https://github.com/fb55/css-what/pull/680">#680</a>) <ul> <li>CommonJS is still provided for earlier NodeJS versions, but this change might cause issues with your build system. If they aren't trivially resolved, please open an issue!</li> </ul> </li> <li>Removed all options <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/5cad07b997a3fa1418c307876b790527e97a2bf7/hovercard" href="https://github.com/fb55/css-what/commit/5cad07b997a3fa1418c307876b790527e97a2bf7"><tt>5cad07b</tt></a> <ul> <li>BREAKING: Added a new value for <code>ignoreCase</code>: <code>'quirks'</code> should ignore the case only in quirks mode.</li> <li>BREAKING: Tags and attributes aren't lowercased anymore</li> </ul> </li> <li>Made selector types &amp; actions enums <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/65121fec7ef6f4165cc609ba14a58b78f78eb2ea/hovercard" href="https://github.com/fb55/css-what/commit/65121fec7ef6f4165cc609ba14a58b78f78eb2ea"><tt>65121fe</tt></a></li> <li>Set empty namespace to null in attributes <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/de367ca53505077314400386a41744ef73d6fd65/hovercard" href="https://github.com/fb55/css-what/commit/de367ca53505077314400386a41744ef73d6fd65"><tt>de367ca</tt></a></li> <li>Simplify stringify output <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/8a2946687b1886f8fd12c64d2013558d63016972/hovercard" href="https://github.com/fb55/css-what/commit/8a2946687b1886f8fd12c64d2013558d63016972"><tt>8a29466</tt></a> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/b3e5e5922a5f7c803cc288e94c337695e5ba39a4/hovercard" href="https://github.com/fb55/css-what/commit/b3e5e5922a5f7c803cc288e94c337695e5ba39a4"><tt>b3e5e59</tt></a></li> </ul> <h2>Features</h2> <ul> <li>Support parsing column combinators <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/8030f67f55a3761cd51093b7f7db091387ab376a/hovercard" href="https://github.com/fb55/css-what/commit/8030f67f55a3761cd51093b7f7db091387ab376a"><tt>8030f67</tt></a></li> </ul> <h2>Fixes</h2> <ul> <li>Strip leading whitespace encapsulated in comments <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/a812a1c1d5ef0755787126b5332a57041759cb60/hovercard" href="https://github.com/fb55/css-what/commit/a812a1c1d5ef0755787126b5332a57041759cb60"><tt>a812a1c</tt></a> <ul> <li>This used to be a way to sneak in descendant operators in front of selectors.</li> </ul> </li> </ul> <h2>Refactors</h2> <ul> <li>Switched parsing to numbers <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/65121fec7ef6f4165cc609ba14a58b78f78eb2ea/hovercard" href="https://github.com/fb55/css-what/commit/65121fec7ef6f4165cc609ba14a58b78f78eb2ea"><tt>65121fe</tt></a></li> <li>Restructured the parser to a big <code>switch</code> statement <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/7b6cc7616c0f960066af82dd4783df9dee6cdf25/hovercard" href="https://github.com/fb55/css-what/commit/7b6cc7616c0f960066af82dd4783df9dee6cdf25"><tt>7b6cc76</tt></a></li> </ul> <h2>Other</h2> <ul> <li>Adopted CSS Selector parsing tests from WPT <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/1881bbad22101f5e6c2d871c8326a4fc2f94b733/hovercard" href="https://github.com/fb55/css-what/commit/1881bbad22101f5e6c2d871c8326a4fc2f94b733"><tt>1881bba</tt></a></li> <li>Updated README to reflect changes <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/b165a8d0b89d94ebf3d1d05d696d9f05b9bb4b79/hovercard" href="https://github.com/fb55/css-what/commit/b165a8d0b89d94ebf3d1d05d696d9f05b9bb4b79"><tt>b165a8d</tt></a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spocke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spocke">@spocke</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1082520136" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/680" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/680/hovercard" href="https://github.com/fb55/css-what/pull/680">#680</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/fb55/css-what/compare/v5.1.0...v6.0.0"><tt>v5.1.0...v6.0.0</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v5.1.0 2021-10-10T11:06:57Z v5.1.0 <h2>What's Changed</h2> <ul> <li>Add 'where' pseudo selector by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jannispl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jannispl">@jannispl</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1012310519" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/620" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/620/hovercard" href="https://github.com/fb55/css-what/pull/620">#620</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/fb55/css-what/compare/v5.0.1...v5.1.0"><tt>v5.0.1...v5.1.0</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v5.0.1 2021-05-28T18:36:52Z v5.0.1 <p><strong>Fixes:</strong></p> <ul> <li>Hand-roll attribute parsing (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="905004620" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/503" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/503/hovercard" href="https://github.com/fb55/css-what/pull/503">#503</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/4cdaacfd0d4b6fd00614be030da0dea6c2994655/hovercard" href="https://github.com/fb55/css-what/commit/4cdaacfd0d4b6fd00614be030da0dea6c2994655"><tt>4cdaacf</tt></a> <ul> <li>Attribute values are slightly more permissive now. Ensures attribute parsing will always be linear.</li> </ul> </li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v5.0.0...v5.0.1"><tt>v5.0.0...v5.0.1</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v5.0.0 2021-03-09T04:08:09Z v5.0.0 <p><strong>New Features:</strong></p> <ul> <li><code>ignoreCase</code> on attributes now respects the <code>s</code> flag, as well as default values as per HTML spec (unless you are in <code>xmlMode</code>). <ul> <li>Infer ignoreCase as per HTML spec (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="825183615" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/444" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/444/hovercard" href="https://github.com/fb55/css-what/pull/444">#444</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fb55/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fb55">@fb55</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/0f4210c9c9619af75ae3f1581421365877953a64/hovercard" href="https://github.com/fb55/css-what/commit/0f4210c9c9619af75ae3f1581421365877953a64"><tt>0f4210c</tt></a></li> <li>Allow space after attribute selector modifier (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="782597545" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/393" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/393/hovercard" href="https://github.com/fb55/css-what/pull/393">#393</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Semigradsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Semigradsky">@Semigradsky</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/a334fa3e98fb898e21eb5edce39fd8a92f227131/hovercard" href="https://github.com/fb55/css-what/commit/a334fa3e98fb898e21eb5edce39fd8a92f227131"><tt>a334fa3</tt></a></li> <li>Support <code>s</code> identifier in attribute selectors (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="782077029" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/387" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/387/hovercard" href="https://github.com/fb55/css-what/pull/387">#387</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Semigradsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Semigradsky">@Semigradsky</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/7a411525a478b24f5c8dd4b314fb476093875e82/hovercard" href="https://github.com/fb55/css-what/commit/7a411525a478b24f5c8dd4b314fb476093875e82"><tt>7a41152</tt></a></li> </ul> </li> <li>Ignore comments around selectors (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="824184275" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/441" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/441/hovercard" href="https://github.com/fb55/css-what/pull/441">#441</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fb55/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fb55">@fb55</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/fc91ba17422674553d1422cb1c7c93d71c1ab429/hovercard" href="https://github.com/fb55/css-what/commit/fc91ba17422674553d1422cb1c7c93d71c1ab429"><tt>fc91ba1</tt></a></li> </ul> <p><strong>Bug fixes:</strong></p> <ul> <li>Incorrect handling elemental selector without a namespace (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="782788022" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/394" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/394/hovercard" href="https://github.com/fb55/css-what/pull/394">#394</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Semigradsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Semigradsky">@Semigradsky</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/3215f5a98e96b4caa1cd0fe66f282fab17c29ec9/hovercard" href="https://github.com/fb55/css-what/commit/3215f5a98e96b4caa1cd0fe66f282fab17c29ec9"><tt>3215f5a</tt></a></li> </ul> fb55 tag:github.com,2008:Repository/4460687/v4.0.0 2020-10-13T07:08:29Z v4.0.0 <p><strong>Breaking changes:</strong></p> <ul> <li>Disallow quotes around unpacked pseudos <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/276a4b20da11e2f62de37f3b9b6d4cf504dd0373/hovercard" href="https://github.com/fb55/css-what/commit/276a4b20da11e2f62de37f3b9b6d4cf504dd0373"><tt>276a4b2</tt></a></li> <li>Throw errors when encountering multiple traversals in a row <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/f07d582462a2069f5213388ee3cc1db69cd1818e/hovercard" href="https://github.com/fb55/css-what/commit/f07d582462a2069f5213388ee3cc1db69cd1818e"><tt>f07d582</tt></a></li> <li>Disallow names starting with <code>#</code> (fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="707586591" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/287" data-hovercard-type="issue" data-hovercard-url="/fb55/css-what/issues/287/hovercard" href="https://github.com/fb55/css-what/issues/287">#287</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/7d1e95b314ef89c19e81e74af1c2c76520a82321/hovercard" href="https://github.com/fb55/css-what/commit/7d1e95b314ef89c19e81e74af1c2c76520a82321"><tt>7d1e95b</tt></a></li> </ul> <p><strong>New Features:</strong></p> <ul> <li>Add support for namespaces <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/63cb253baf66a64094de8ecc167d41b4d4dee90b/hovercard" href="https://github.com/fb55/css-what/commit/63cb253baf66a64094de8ecc167d41b4d4dee90b"><tt>63cb253</tt></a> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/dc558611e547b0f0cca8cfdb752830e0eb6f45f6/hovercard" href="https://github.com/fb55/css-what/commit/dc558611e547b0f0cca8cfdb752830e0eb6f45f6"><tt>dc55861</tt></a></li> <li>Add <code>isTraversal</code> function <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/8f64671cb0bd1c68ab5c9d0c99dab737eb6d0954/hovercard" href="https://github.com/fb55/css-what/commit/8f64671cb0bd1c68ab5c9d0c99dab737eb6d0954"><tt>8f64671</tt></a></li> <li>Add JSDocs to exported functions <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/6b60fa9e8da07a03c367bda33de08e5d137ed4b7/hovercard" href="https://github.com/fb55/css-what/commit/6b60fa9e8da07a03c367bda33de08e5d137ed4b7"><tt>6b60fa9</tt></a></li> </ul> <p><strong>Other changes:</strong></p> <ul> <li>Walk through selector using indices <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/c6672143f6bf25f363617d0243ed1c437dd4ddc9/hovercard" href="https://github.com/fb55/css-what/commit/c6672143f6bf25f363617d0243ed1c437dd4ddc9"><tt>c667214</tt></a></li> <li>Add missing tests for complete test coverage <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/c49747fb187f8d94bf0367866ebbd5cc7b3d9cf9/hovercard" href="https://github.com/fb55/css-what/commit/c49747fb187f8d94bf0367866ebbd5cc7b3d9cf9"><tt>c49747f</tt></a></li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v3.4.2...v4.0.0"><tt>v3.4.2...v4.0.0</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v3.4.2 2020-10-09T18:46:03Z v3.4.2 <ul> <li>feat(lint): Add eslint-plugin-node <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/de9013338a246607e0c0440e79fb3c2a351397ae/hovercard" href="https://github.com/fb55/css-what/commit/de9013338a246607e0c0440e79fb3c2a351397ae"><tt>de90133</tt></a></li> <li>Use Object.keys as Object.values is not supported in node&lt;7 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="714382976" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/295" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/295/hovercard" href="https://github.com/fb55/css-what/pull/295">#295</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/klapec/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/klapec">@klapec</a>) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/98a048911015ed06ca34832aab0a5325114c0db7/hovercard" href="https://github.com/fb55/css-what/commit/98a048911015ed06ca34832aab0a5325114c0db7"><tt>98a0489</tt></a></li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v3.4.1...v3.4.2"><tt>v3.4.1...v3.4.2</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v3.4.1 2020-10-01T19:43:46Z v3.4.1 <ul> <li>fix(parser): Support escaped characters in attribute value <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/a05da960e0cbf468eaa84bf6c189119c9afee551/hovercard" href="https://github.com/fb55/css-what/commit/a05da960e0cbf468eaa84bf6c189119c9afee551"><tt>a05da96</tt></a></li> <li>docs: Update funding information <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/ff21060445d11e604320b9a80c077073313ef898/hovercard" href="https://github.com/fb55/css-what/commit/ff21060445d11e604320b9a80c077073313ef898"><tt>ff21060</tt></a></li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v3.4.0...v3.4.1"><tt>v3.4.0...v3.4.1</tt></a></p> fb55 tag:github.com,2008:Repository/4460687/v3.4.0 2020-10-01T18:29:01Z v3.4.0 <ul> <li>Add <code>host</code> and <code>host-context</code> to unpackPseudo so that data inside them can be parsed (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="707965493" data-permission-text="Title is private" data-url="https://github.com/fb55/css-what/issues/288" data-hovercard-type="pull_request" data-hovercard-url="/fb55/css-what/pull/288/hovercard" href="https://github.com/fb55/css-what/pull/288">#288</a> by zicsus) <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/f835363eee3ba23c43e50f4fc67ca3b901d51fc1/hovercard" href="https://github.com/fb55/css-what/commit/f835363eee3ba23c43e50f4fc67ca3b901d51fc1"><tt>f835363</tt></a></li> <li>chore: Improve option handling, attribute parsing <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/fa32fd8534fc93812781c976e2ff32e3f032e967/hovercard" href="https://github.com/fb55/css-what/commit/fa32fd8534fc93812781c976e2ff32e3f032e967"><tt>fa32fd8</tt></a></li> <li>feat(stringify): Escape unsafe characters <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/fb55/css-what/commit/138b1019f1fb2d58c0ee8a1f8f92c31573f36953/hovercard" href="https://github.com/fb55/css-what/commit/138b1019f1fb2d58c0ee8a1f8f92c31573f36953"><tt>138b101</tt></a></li> </ul> <p><a class="commit-link" href="https://github.com/fb55/css-what/compare/v3.3.0...v3.4.0"><tt>v3.3.0...v3.4.0</tt></a></p> fb55