What changed in css-select from 6 to 7

1 release numbered after v6.0.0 up to and including v7.0.0, stable releases only. v6.0.0 and v7.0.0 are the newest stable releases of 6 and 7 we track; this page follows them as new ones ship.

8 changes across 1 release

Added 2

v7.0.0

  • Added support for the :lang() pseudo-class
  • Added support for of in nth-* pseudo-classes, e.g. :nth-last-child(3n+2 of .a)
Changed 3

v7.0.0

  • Package is now ESM only with "type": "module"; CommonJS require() is only supported in modern environments
  • Minimum Node.js version is now 20.19.0
  • :enabled now only matches form elements
Removed 3

v7.0.0

  • Removed the deprecated _compileToken export; use _compileUnsafe instead
  • Removed the deprecated re-exports of aliases, filters, and pseudos; use the pseudos option instead
  • Removed ./package.json subpath export

Original release notes, newest first

The list above is our reading of these notes; the originals from css-select are here, one fold per release.

v7.0.0
Breaking Changes
  • ESM only: the package now sets "type": "module"; CommonJS require() is only supported in modern environments #1746
    • Minimum Node.js version is now 20.19.0
  • Cleaned up deprecations
    • Removed the deprecated _compileToken export. Use _compileUnsafe instead
    • Removed the deprecated re-exports of aliases, filters, and pseudos. Use the pseudos option instead
    • Removed ./package.json subpath export
  • :enabled now only matches form elements
New Features
  • Added support for the :lang() pseudo-class
  • Added support for of in nth-* pseudo-classes, e.g. :nth-last-child(3n+2 of .a)

Full Changelog: https://github.com/fb55/css-select/compare/v6.0.0...v7.0.0

View originalPermalink