Skip to content

[Snyk] Upgrade stylelint from 9.10.1 to 16.13.2 #21

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

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

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Feb 9, 2025

snyk-top-banner

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

ℹ️ 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 109 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-TRIM-1017038
162 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-TRIMNEWLINES-1298042
162 No Known Exploit
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-STYLELINT-1585622
162 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-POSTCSS-5926692
162 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-STYLELINT-460283
162 No Known Exploit
medium severity Prototype Pollution
SNYK-JS-YARGSPARSER-560381
162 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-GLOBPARENT-1016905
162 Proof of Concept
Release notes
Package name: stylelint
  • 16.13.2 - 2025-01-14
  • 16.13.1 - 2025-01-13
  • 16.13.0 - 2025-01-12
    • 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) (@ jeddy3).
    • Fixed: declaration-property-value-no-unknown false positives for descriptors (#8240) (@ jeddy3).
    • Fixed: property-(dis)allowed-list false negatives for custom properties, use /^--/ to (dis)allow them (#8209) (@ fbasmaison-lucca).
    • Fixed: property-no-unknown false positives for descriptors (#8203) (@ jeddy3).
    • Fixed: selector-pseudo-class-no-unknown false positives for deprecated pseudo-classes (#8264) (@ Mouvedia).
    • Fixed: selector-type-case false positives for hatchPath (#8264) (@ Mouvedia).
    • Fixed: selector-type-no-unknown false positives for shadow, hatch and hatchpath (#8264) (@ Mouvedia).
  • 16.12.0 - 2024-12-15
    • Added: selector-pseudo-class-allowed-list now checks @ page pseudo-classes (#8176) (@ Mouvedia).
    • Added: selector-pseudo-class-disallowed-list now checks @ page pseudo-classes (#8171) (@ Mouvedia).
    • Fixed: at-rule-property-required-list message to use "descriptor" for accuracy (#8186) (@ ybiquitous).
    • Fixed: custom-property-no-missing-var-function false positives for container-name (#8157) (@ Mouvedia).
    • Fixed: custom-property-no-missing-var-function false positives for custom properties passed to running() (#8172) (@ Mouvedia).
    • Fixed: function-no-unknown false positives for running() (#8172) (@ Mouvedia).
    • Fixed: selector-pseudo-class-no-unknown false positives for :open (#8184) (@ lukewarlow).
    • Fixed: selector-pseudo-class-no-unknown false positives for :recto, :verso and :nth() (#8170) (@ Mouvedia).
    • Fixed: selector-pseudo-class-no-unknown false positives for some moz-* vendor-prefixed pseudo-classes (#8188) (@ Mouvedia).
    • Fixed: selector-pseudo-element-no-unknown false positives for ::details-content (#8174) (@ lukewarlow).
    • Fixed: selector-type-no-unknown false positives for idents in functional pseudo-classes (#8191) (@ elskhn).
    • Fixed: value-keyword-case false negatives (#8158) (@ Mouvedia).
    • Fixed: value-keyword-case false positives for vendor-prefixed system colors (#8146) (@ Mouvedia).
  • 16.11.0 - 2024-11-28
    • Added: --report-unscoped-disables CLI flag and reportUnscopedDisables option to Node.js API and configuration object (#8024) (@ Mouvedia).
    • Added: ignoreFunctions: [] to media-query-no-invalid (#8060) (@ ryo-manba).
    • Added: name configuration property under overrides (#8095) (@ ryo-manba).
    • Fixed: benchmark-rule script to resolve TypeError (#8090) (@ ybiquitous).
    • Fixed: github formatter deprecation warning link to https://stylelint.io/awesome-stylelint#formatters (#8115) (@ ryo-manba).
    • Fixed: function-calc-no-unspaced-operator false negatives for calc-size (#8026) (@ azat-io).
    • Fixed: max-nesting-depth false positives when the & selector is being ignored (#8048) (@ ryo-manba).
    • Fixed: media-feature-name-value-no-unknown false positives for display-mode: picture-in-picture (#8136) (@ Mouvedia).
    • Fixed: no-irregular-whitespace reported ranges (#8066) (@ romainmenke).
    • Fixed: selector-attribute-name-disallowed-list reported ranges (#8037) (@ ryo-manba).
    • Fixed: selector-attribute-operator-allowed-list reported ranges (#8038) (@ ryo-manba).
    • Fixed: selector-attribute-operator-disallowed-list reported ranges (#8039) (@ ryo-manba).
    • Fixed: selector-class-pattern reported ranges (#8042) (@ ryo-manba).
    • Fixed: selector-combinator-allowed-list reported ranges (#8046) (@ ryo-manba).
    • Fixed: selector-combinator-disallowed-list reported ranges (#8047) (@ ryo-manba).
    • Fixed: selector-disallowed-list reported ranges (#8067) (@ ryo-manba).
    • Fixed: selector-id-pattern reported ranges (#8045) (@ ryo-manba).
    • Fixed: selector-max-attribute reported ranges (#8052) (@ ryo-manba).
    • Fixed: selector-max-class reported ranges (#8053) (@ ryo-manba).
    • Fixed: selector-max-combinators reported-ranges (#8055) (@ ryo-manba).
    • Fixed: selector-max-compound-selectors reported ranges (#8056) (@ ryo-manba).
    • Fixed: selector-max-id reported ranges (#8054) (@ ryo-manba).
    • Fixed: selector-max-pseudo-class reported ranges (#8057) (@ ryo-manba).
    • Fixed: selector-max-specificity reported ranges (#8058) (@ ryo-manba).
    • Fixed: selector-max-universal reported ranges (#8059) (@ ryo-manba).
    • Fixed: selector-nested-pattern reported ranges (#8072) (@ ryo-manba).
    • Fixed: selector-no-vendor-prefix reported ranges (#8073) (@ ryo-manba).
    • Fixed: selector-not-notation reported ranges (#8074) (@ ryo-manba).
    • Fixed: selector-pseudo-class-allowed-list reported ranges (#8061) (@ ryo-manba).
    • Fixed: selector-pseudo-class-disallowed-list reported ranges (#8062) (@ ryo-manba).
    • Fixed: selector-pseudo-class-no-unknown reported ranges (#8063) (@ ryo-manba).
    • Fixed: selector-pseudo-element-allowed-list reported ranges (#8068) (@ ryo-manba).
    • Fixed: selector-pseudo-element-colon-notation reported ranges (#8069) (@ ryo-manba).
    • Fixed: selector-pseudo-element-disallowed-list reported ranges (#8070) (@ ryo-manba).
    • Fixed: selector-pseudo-element-no-unknown false positives for ::scroll-marker and ::scroll-marker-group (#8110) (@ Mouvedia).
    • Fixed: selector-pseudo-element-no-unknown reported ranges (#8071) (@ ryo-manba).
    • Fixed: selector-type-no-unknown reported ranges (#8076) (@ ryo-manba).
  • 16.10.0 - 2024-10-11
    • Changed: shorthand-property-no-redundant-values reported ranges (#8008) (@ Mouvedia).
    • Added: formatter configuration property (#7826) (@ emmacharp).
    • Added: validate option to Node.js API and --validate CLI flag (#8009) (@ Mouvedia).
    • Added: fixed section to the output of the verbose formatter (#7985) (@ Mouvedia).
    • Added: support for string | RegExp to ignoreValues option of value-no-vendor-prefix (#7969) (@ Mouvedia).
    • Added: support for string to ignoreLonghands option of declaration-block-no-redundant-longhand-properties (#7971) (@ Mouvedia).
    • Fixed: at-rule-no-unknown false positives for @ position-try (#7968) (@ yelizsevinc).
    • Fixed: declaration-block-no-redundant-longhand-properties autofix for grid-column/grid-row (#8023) (@ ryo-manba).
    • Fixed: declaration-property-value-no-unknown false negatives/positives via [email protected] (#7993) (@ Mouvedia).
    • Fixed: declaration-property-value-no-unknown reported ranges and message (#8003) (@ romainmenke).
    • Fixed: keyframe-selector-notation reported ranges (#7992) (@ romainmenke).
    • Fixed: length-zero-no-unit false positives for Sass variables (#8035) (@ ryo-manba).
    • Fixed: no-descending-specificity reported ranges (

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

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 Feb 9, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the stylelint dependency in package.json from an older version to version 16.13.2. The change is implemented by updating the version number in the dependency declaration, ensuring the project benefits from new features, fixes, and important vulnerability patches as highlighted by the Snyk report.

Flow diagram for stylelint dependency upgrade

flowchart TD
    A[Snyk Vulnerability Alert] --> B[Review Vulnerability Report]
    B --> C[Decide to upgrade stylelint]
    C --> D[Update package.json dependency to ^16.13.2]
    D --> E[Run CI tests]
    E --> F[Deploy Updated Application]
    F --> G[Monitor for Issues]
Loading

File-Level Changes

Change Details Files
Upgrade of the stylelint dependency
  • Updated the version number in package.json from '^9.3.0' to '^16.13.2'
  • Ensured that the project uses the latest stable version of stylelint with fixes and security updates referenced by Snyk
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

sonarqubecloud bot commented Feb 9, 2025

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