Skip to content

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Apr 20, 2025

snyk-top-banner

Snyk has created this PR to upgrade stylelint from 9.10.1 to 16.17.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 114 versions ahead of your current version.

  • The recommended version was released 25 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-STYLELINT-1585622
45 No Known Exploit
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-TRIM-1017038
45 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-TRIMNEWLINES-1298042
45 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-POSTCSS-5926692
45 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-GLOBPARENT-1016905
45 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-STYLELINT-460283
45 No Known Exploit
medium severity Prototype Pollution
SNYK-JS-YARGSPARSER-560381
45 Proof of Concept
Release notes
Package name: stylelint
  • 16.17.0 - 2025-03-26

    It adds 1 new rule, support for languageOptions to 2 rules, 1 option to a rule, the --compute-edit-info CLI flag (along with support for EditInfo in 3 rules), and fixes 1 bug. EditInfo is useful for automated fixing tools and editor integrations.

  • 16.16.0 - 2025-03-14

    It adds support for computing EditInfo to 22 more rules and reverts a change that added context.lexer to our public API in the previous release.

  • 16.15.0 - 2025-02-28

    It adds 1 new rule, a languageOptions configuration property for configuring some of the new rules added in 16.13.0, regex support to 1 option and support for computing EditInfo to 6 rules. It fixes 9 bugs, including 2 with the tap reporter.

    • Added: syntax-string-no-invalid rule (#8331) (@ ryo-manba).
    • Added: languageOptions configuration property (#8297) (@ ryo-manba).
    • Added: regex support to ignoreAtRules option of at-rule-empty-line-before (#8385) (@ ryo-manba).
    • Added: alpha-value-notation support for computing EditInfo (#8369) (@ pamelalozano16).
    • Added: color-hex-length support for computing EditInfo (#8415) (@ ryo-manba).
    • Added: comment-empty-line-before support for computing EditInfo (#8416) (@ ryo-manba).
    • Added: comment-whitespace-inside support for computing EditInfo (#8417) (@ ryo-manba).
    • Added: custom-property-empty-line-before support for computing EditInfo (#8418) (@ ryo-manba).
    • Added: declaration-block-no-duplicate-properties support for computing EditInfo (#8363) (@ romainmenke).
    • Fixed: tap formatter not escaping # and \ in its test point descriptions (#8334) (@ Mouvedia).
    • Fixed: tap formatter outputting invalid YAML blocks for rules containing double quotes in their warnings' messages (#8334) (@ Mouvedia).
    • Fixed: declaration-block-no-redundant-longhand-properties false positives for properties with !important (#8366) (@ immitsu).
    • Fixed: EditInfo missing semicolon in text field (#8370) (@ pamelalozano16).
    • Fixed: declaration-property-value-keyword-no-deprecated false negatives for text-decoration: blink (#8351) (@ Mouvedia).
    • Fixed: declaration-property-value-keyword-no-deprecated false positives for styled components interpolated functions (#8392) (@ Mouvedia).
    • Fixed: font-family-name-quotes false positives due to vendor-prefixed font-size values (#8393) (@ Mouvedia).
    • Fixed: font-family-no-missing-generic-family-keyword false positives for math, emoji and fangsong (#8395) (@ ViachaslauIhnatsiuk).
    • Fixed: selector-type-no-unknown false positives for selectmenu and popup (#8376) (@ Mouvedia).
  • 16.14.1 - 2025-01-27

    It fixes a bug with caching.

  • 16.14.0 - 2025-01-25

    It fixes 8 bugs and adds features to our Warning type.

    • Added: replaced text and corresponding range to Warning type (#8234) (@ romainmenke).
    • Fixed: SyntaxError: The requested module 'table'... (#8325) (@ denisx).
    • Fixed: RuleContext['fix'] type (#8309) (@ Mouvedia).
    • Fixed: declaration-property-value-keyword-no-deprecated autofix of border-color and overflow (#8346) (@ Mouvedia).
    • Fixed: declaration-property-value-keyword-no-deprecated false negatives for overflow-x and overflow-y (#8340) (@ Mouvedia).
    • Fixed: declaration-property-value-keyword-no-deprecated false negatives for scrollbar-color (#8346) (@ Mouvedia).
    • Fixed: declaration-property-value-keyword-no-deprecated false positives for non-standard syntax values (#8329) (@ Mouvedia).
    • Fixed: declaration-property-value-keyword-no-deprecated warning message for overflow: <keyword> <keyword> (#8340) (@ Mouvedia).
    • Fixed: selector-pseudo-class-no-unknown false positives for :has-slotted (#8332) (@ Mouvedia).
  • 16.13.2 - 2025-01-14

    It fixes a regression bug with --fix.

  • 16.13.1 - 2025-01-13

    It fixes one bug due to an upstream change in our ignore dependency.

  • 16.13.0 - 2025-01-12

    It adds 3 rules to help you write error-free at-rules and 2 rules to warn you about deprecated CSS features. We've turned these rules on in our standard config. It also adds new rule options, a feature to display how long rules take, lax autofix and support for messageArgs in more rules. It fixes 7 bugs. Lastly, we've made a deprecation that may affect some plugins. We've updated our docs for plugin authors and end users on how to silence deprecation warnings.

    • Deprecated: ambiguous position arguments passed to utils.report() (#8244) (@ romainmenke).
    • Added: lax/strict values to the fix Node.js API option and CLI flag (#8106) (@ ryo-manba).
    • Added: support for profiling rule performance via the TIMING environment variable (#8108) (@ ryo-manba).
    • Added: at-rule-descriptor-no-unknown rule (#8197) (@ ryo-manba).
    • Added: at-rule-descriptor-value-no-unknown rule (#8211) (@ ryo-manba).
    • Added: at-rule-no-deprecated rule (#8251) (@ jeddy3).
    • Added: at-rule-prelude-no-invalid rule (#8268) (@ ryo-manba).
    • Added: declaration-property-value-keyword-no-deprecated rule (#8223) (@ Mouvedia).
    • Added: "ignore": ["at-rule-preludes", "declaration-values"] to string-no-newline (#8214) (@ ryo-manba).
    • Added: messageArgs to declaration-property-value-no-unknown, font-family-name-quotes, font-family-no-duplicate-names, function-calc-no-unspaced-operator, import-notation, media-feature-name-unit-allowed-list, selector-attribute-quotes and selector-pseudo-element-colon-notation (#8285 & #8252) (@ Mouvedia).
    • Fixed: deprecation warnings to only display once per (custom) rule (#8265) (@ romainmenke).
    • Fixed: *-no-vendor-prefix message ambiguity (#8239) (@ Mouvedia).
    • Fixed: at-rule-(dis)allowed-list, at-rule-no-vendor-prefix, at-rule-property-required-list message argument (#8277) (@ Mouvedia).
    • Fixed: at-rule-property-required-list message for inclusion of properties and descriptors (#8207) (@ jeddy3).
    • Fixed: at-rule-* false positives and negatives for @ charset rule (#8215) (

Snyk has created this PR to upgrade stylelint from 9.10.1 to 16.17.0.

See this package in npm:
stylelint

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/31417d5e-2e41-49ef-b06d-f8bf03744022?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Apr 20, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the stylelint dependency from version 9.10.1 to 16.17.0. This brings in numerous new features, bug fixes, and security updates.

Updated Class Diagram for Stylelint Warning Type

classDiagram
  class Warning {
    +line: number
    +column: number
    +rule: string
    +severity: string
    +text: string
    +node: object
    +index: number
    +word: string
    +replacedText: string
    +replacedRange: object
  }
  note for Warning "Replaced text and corresponding range added in v16.14.0"
Loading

File-Level Changes

Change Details Files
Upgrade the stylelint dependency to the latest version.
  • Update stylelint from version 9.10.1 to 16.17.0.
package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants