nth-check

Parses and compiles CSS nth-checks to highly optimized functions.

BSD-2-CLAUSE License

Downloads
114.8M
Stars
57
Committers
7
nth-check - Latest Release

Published by fb55 over 2 years ago

  • The ESM code had some issues that are now fixed aeeb067

https://github.com/fb55/nth-check/compare/v2.1.0...v2.1.1

nth-check - v2.1.0

Published by fb55 over 2 years ago

What's Changed

Full Changelog: https://github.com/fb55/nth-check/compare/v2.0.1...v2.1.0

nth-check -

Published by fb55 about 3 years ago

Fixes:

  • Replace regex with hand-rolled parser for nth-expressions (#9) 9894c1d
    • Ensures parsing will always have linear time complexity.

Internal:

  • chore(ci): Use GitHub Actions, Dependabot (#10) e02b4dd
  • Bump dependencies

https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1

nth-check -

Published by fb55 almost 4 years ago

  • Port module to TS, Jest, ESLint

Breaking:

  • The main export is now a default export.
  • The module now throws regular Errors on invalid selectors instead of SyntaxErrors.