Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependency css-select to v5 #223

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 5, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
css-select ^2.1.0 -> ^5.0.0 age adoption passing confidence

Release Notes

fb55/css-select

v5.1.0

Compare Source

  • Added an option to disable relative selectors (#​766) 1c1f7f2
    • By default, selectors are relative to the passed context, which means that no parent elements of the context will be matched. (Eg. a b c with context b will never give any results.)
      If the relativeSelector option is set to false, selectors won't be absolutized and selectors can test for parent elements outside of the context.
    • See https://github.com/fb55/css-select/issues/709 for context.

v5.0.1

Compare Source

  • fix: Previously, some options weren't properly passed on to sub-selectors such as :is(...) or :not(...). (#​758) 77945c4

v5.0.0

Compare Source

Breaking

  • domhandler's node types have changed. Some of these changes were inherited by css-select #​754
  • css-select is now a dual CJS and ESM package #​756
    • Deep imports are no longer permitted
  • Throw an error for :host-context #​755
    • The error message for unknown pseudo classes has changed.

Features

  • Added a pseudos option #​757
    • This option allows users to specify pseudo-classes.
    • Extending filters, pseudos and aliases is now deprecated.

v4.3.0

Compare Source

What's Changed

  • feat: Upgrade to css-what@6, add quirks mode option by @​fb55 in https://github.com/fb55/css-select/pull/657
    • In quirks mode, .class and #id selectors are case-insensitive.
  • feat: Add optional prevElementSibling adapter method by @​fb55 in 78776e8
  • fix: Throw errors for namespaced selectors by @​fb55 in 255e965
    • Namespaced selectors (eg. *|div, [foo|bar] already caused errors before this release. We now parse them properly and throw errors with better descriptions.

Full Changelog: fb55/css-select@v4.2.1...v4.3.0

v4.2.1

Compare Source

  • fix: Don't add siblings multiple times in appendNextSiblings (#​656) 726f51b
  • docs: Improve README e8974a3

v4.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: fb55/css-select@v4.1.3...v4.2.0

v4.1.3

Compare Source

Fixes:

  • compile's return value type was updated to Node, instead of an Element (more types can now be passed). 1419455

Dependencies:

  • Bump css-what from 5.0.0 to 5.0.1, fixing potentially expensive regex (#​451) e3f4cf1
  • Use @types/boolbase 636c238

v4.1.2

Compare Source

  • fix(types): Fixed last context types e15cc53

v4.1.1

Compare Source

  • fix(types): Fix context types not being updated everywhere d2b0409

v4.1.0

Compare Source

Added support for additional parameter types:

v4.0.0

Compare Source

New features:

  • Aliases are a new way to write pseudos (#​403) 206535e
    • It is now possible to write a pseudo selector that shortens a longer selector as an alias. Have a look at #​403 for examples.
    • BREAKING: Several built-in pseudos are now stricter. This aligns them with the CSS spec, but might lead to changes in results.
  • Upgraded to [email protected]
    • Added support for the s flag in attribute selectors.
    • BREAKING: In HTML, attributes are now automatically considered case-insensitive, based on the HTML spec. Some selectors might now match more elements.

Fixes:

Other:

  • BREAKING: Removed strict option 9329fb8
    • This option was out of date and needed a bigger refactor. Please open an issue if you were using it, and we can discuss a path forward.

v3.1.2

Compare Source

  • fix: Ensure parent elements are tags efcfcdb
    • Now that parent elements can also be documents, this fixes some edge-cases.
  • bump domutils from 2.4.2 to 2.4.4 b141d76

v3.1.1

Compare Source

Fixes:

  • Support DOM elements of type root in the :root pseudo-selector c4d2b7b

Dependency upgrades:

  • bump domutils, domhandler & htmlparser2 (#​312) c4d2b7b
  • bump nth-check from 1.0.2 to 2.0.0 187c9cd
  • bump css-what from 3.4.1 to 4.0.0 4241106

v3.1.0

Compare Source

  • feat(index): Export prepareContext function f997165
  • feat(general): Add cacheResults option 6db3de6
  • fix(general): Fix descendant cache issue 0c0a8ff
  • refactor(tests): Remove positional, fix attribute tests for Sizzle spec b8ae895

v3.0.4

Compare Source

  • Bump css-what, add domhandler as dep cbb7187
  • Run prettier in check mode before passing tests 8bd03e8
  • Update funding information 3242963

v3.0.3

Compare Source

  • Fix types entry in package.json

v3.0.2

Compare Source

  • Fixed an issue where the previous release didn't include built assets (reported in #​229)
  • Ported tests to Jest & TS

v3.0.1

Compare Source

  • Port all shipped code to TypeScript, identifying several inconsistencies along the way
    • BREAKING: The module exports an object now, which includes a default property. If you used the exported function before, you will have to update your code.
  • Use adapter.equals across the codebase
    • BREAKING: The signature for pseudos has changed. The second argument is now the options object, not the adapter anymore. To update your code, extract the adapter from the options object, eg. pseudos.custom = (elem, adapter) => {} is now pseudos.custom = (elem, {adapter}) => {}.
  • Implement :any-link
  • Support traversal-first :has (fixes #​111)

v3.0.0

Compare Source

Released with a breaking bug, please ignore.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested review from wadackel and a team as code owners May 5, 2022 22:47
@renovate renovate bot added the A-dependencies Dependent packages label May 5, 2022
@renovate
Copy link
Author

renovate bot commented Mar 23, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant