What’s New

css-select v7.0.0

v7.0.0
Added
  • 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
  • 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
  • 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
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 original