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

Bump css-tree from 2.3.1 to 3.0.0 #7993

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Conversation

Mouvedia
Copy link
Member

@Mouvedia Mouvedia commented Sep 12, 2024

Close #7995

Is there anything in the PR that needs further explanation?

Unknown properties are ignored by declaration-property-value-no-unknown.
i.e. most regressions will be picked up by reject, not accept

It doesn't c l o s e #7964 because position-try-options is still unknown.

Copy link

changeset-bot bot commented Sep 12, 2024

🦋 Changeset detected

Latest commit: 8c0ba7e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Mouvedia Mouvedia marked this pull request as ready for review September 12, 2024 09:12
{
code: 'a { view-timeline: --bar x; }',
},
{
code: 'a { view-transition-name: qux-baz; }',
code: 'a { view-timeline: --qux inline 1px 2px; }',
Copy link
Member Author

Choose a reason for hiding this comment

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

@romainmenke
Copy link
Member

Thank you @Mouvedia

The custom handling of initial-value around line 160 can also be removed I think.

@ybiquitous ybiquitous added the pr: dependencies relates to dependencies label Sep 12, 2024
@ybiquitous
Copy link
Member

Great! Do you think it's needed to add some changelog?

@Mouvedia
Copy link
Member Author

Great! Do you think it's needed to add some changelog?

If I were to fix position-try-options, yes; but I didn't.

@ybiquitous
Copy link
Member

Okay. I understand this PR has no user impact.

I thought we might need to mention this important dependency update in CHANGELOG, but there is no such description in CHANGELOG, so it would be unnecessary. 👍🏼

@jeddy3
Copy link
Member

jeddy3 commented Sep 12, 2024

Will it close #7241? If so, we can add an changelog entry for that.

@jeddy3
Copy link
Member

jeddy3 commented Sep 12, 2024

Nevermind, just saw #7995 (comment).

ybiquitous
ybiquitous previously approved these changes Sep 12, 2024
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

Thanks a lot. LGTM 👍🏼

@ybiquitous
Copy link
Member

If some users would care about this update, it might be good to add changelog, but not strong opinion.

@romainmenke
Copy link
Member

I think user would want to know, especially when they have custom config for newer CSS that might become obsolete with this update.

Given that this rule doesn't warn on properties without syntax an update to css-tree would also produce more errors if support for new properties was added.

That would imply a new minor version bump.

@ybiquitous
Copy link
Member

Good point. I agree with adding a changelog. 👍🏼

@ybiquitous ybiquitous dismissed their stale review September 12, 2024 14:34

Add changelog

@Mouvedia
Copy link
Member Author

Mouvedia commented Sep 12, 2024

Ill review mdn/data@v2.0.30...v2.10.0#diff-06572a96a5 and list all the properties that are now supported.

It might take some time because of all the testing necessary.
i.e. css-tree had patches

@romainmenke
Copy link
Member

Maybe sufficient to link to the css-tree changelog?
I think the most important thing is communicating that something has changed.

@Mouvedia
Copy link
Member Author

Maybe sufficient to link to the css-tree changelog? I think the most important thing is communicating that something has changed.

OK.

@Mouvedia Mouvedia requested a review from ybiquitous September 12, 2024 14:59
@Mouvedia Mouvedia requested a review from ybiquitous September 12, 2024 16:08
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM 👍🏼

Let's wait for other reviews too.

Copy link
Member

@romainmenke romainmenke left a comment

Choose a reason for hiding this comment

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

Thank you for this 🙇

@Mouvedia Mouvedia merged commit c5a2df5 into stylelint:main Sep 12, 2024
17 checks passed
@Mouvedia Mouvedia deleted the tree-three branch September 12, 2024 22:50
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Oct 12, 2024
| datasource | package   | from   | to      |
| ---------- | --------- | ------ | ------- |
| npm        | stylelint | 16.9.0 | 16.10.0 |


## [v16.10.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#16100)

-   Changed: `shorthand-property-no-redundant-values` reported ranges ([#8008](stylelint/stylelint#8008)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: `formatter` configuration property ([#7826](stylelint/stylelint#7826)) ([@emmacharp](https://github.com/emmacharp)).
-   Added: `validate` option to Node.js API and `--validate` CLI flag ([#8009](stylelint/stylelint#8009)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: fixed section to the output of the `verbose` formatter ([#7985](stylelint/stylelint#7985)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: support for `string | RegExp` to `ignoreValues` option of `value-no-vendor-prefix` ([#7969](stylelint/stylelint#7969)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: support for `string` to `ignoreLonghands` option of `declaration-block-no-redundant-longhand-properties` ([#7971](stylelint/stylelint#7971)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Fixed: `at-rule-no-unknown` false positives for `@position-try` ([#7968](stylelint/stylelint#7968)) ([@yelizsevinc](https://github.com/yelizsevinc)).
-   Fixed: `declaration-block-no-redundant-longhand-properties` autofix for `grid-column`/`grid-row` ([#8023](stylelint/stylelint#8023)) ([@ryo-manba](https://github.com/ryo-manba)).
-   Fixed: `declaration-property-value-no-unknown` false negatives/positives via [`[email protected]`](https://github.com/csstree/csstree/releases/tag/v3.0.0) ([#7993](stylelint/stylelint#7993)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Fixed: `declaration-property-value-no-unknown` reported ranges and message ([#8003](stylelint/stylelint#8003)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `keyframe-selector-notation` reported ranges ([#7992](stylelint/stylelint#7992)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `length-zero-no-unit` false positives for Sass variables ([#8035](stylelint/stylelint#8035)) ([@ryo-manba](https://github.com/ryo-manba)).
-   Fixed: `no-descending-specificity` reported ranges ([#7996](stylelint/stylelint#7996)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `selector-anb-no-unmatchable` reported ranges and message ([#8001](stylelint/stylelint#8001)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `string` formatter handling of log symbols for non-Unicode terminals ([#7981](stylelint/stylelint#7981)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Fixed: built `.cjs` files to address Rollup vulnerability ([#8010](stylelint/stylelint#8010)) ([@ybiquitous](https://github.com/ybiquitous)).
-   Fixed: incorrect `config` option for Node.js API with `extends` and `overrides` ([#8030](stylelint/stylelint#8030)) ([@ybiquitous](https://github.com/ybiquitous)).
-   Fixed: stricter validation for the options of `declaration-property-max-values`, `declaration-property-value-no-unknown` and `number-max-precision` ([#7975](stylelint/stylelint#7975)) ([@Mouvedia](https://github.com/Mouvedia)).
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Oct 12, 2024
| datasource | package   | from   | to      |
| ---------- | --------- | ------ | ------- |
| npm        | stylelint | 16.9.0 | 16.10.0 |


## [v16.10.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#16100)

-   Changed: `shorthand-property-no-redundant-values` reported ranges ([#8008](stylelint/stylelint#8008)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: `formatter` configuration property ([#7826](stylelint/stylelint#7826)) ([@emmacharp](https://github.com/emmacharp)).
-   Added: `validate` option to Node.js API and `--validate` CLI flag ([#8009](stylelint/stylelint#8009)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: fixed section to the output of the `verbose` formatter ([#7985](stylelint/stylelint#7985)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: support for `string | RegExp` to `ignoreValues` option of `value-no-vendor-prefix` ([#7969](stylelint/stylelint#7969)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Added: support for `string` to `ignoreLonghands` option of `declaration-block-no-redundant-longhand-properties` ([#7971](stylelint/stylelint#7971)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Fixed: `at-rule-no-unknown` false positives for `@position-try` ([#7968](stylelint/stylelint#7968)) ([@yelizsevinc](https://github.com/yelizsevinc)).
-   Fixed: `declaration-block-no-redundant-longhand-properties` autofix for `grid-column`/`grid-row` ([#8023](stylelint/stylelint#8023)) ([@ryo-manba](https://github.com/ryo-manba)).
-   Fixed: `declaration-property-value-no-unknown` false negatives/positives via [`[email protected]`](https://github.com/csstree/csstree/releases/tag/v3.0.0) ([#7993](stylelint/stylelint#7993)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Fixed: `declaration-property-value-no-unknown` reported ranges and message ([#8003](stylelint/stylelint#8003)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `keyframe-selector-notation` reported ranges ([#7992](stylelint/stylelint#7992)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `length-zero-no-unit` false positives for Sass variables ([#8035](stylelint/stylelint#8035)) ([@ryo-manba](https://github.com/ryo-manba)).
-   Fixed: `no-descending-specificity` reported ranges ([#7996](stylelint/stylelint#7996)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `selector-anb-no-unmatchable` reported ranges and message ([#8001](stylelint/stylelint#8001)) ([@romainmenke](https://github.com/romainmenke)).
-   Fixed: `string` formatter handling of log symbols for non-Unicode terminals ([#7981](stylelint/stylelint#7981)) ([@Mouvedia](https://github.com/Mouvedia)).
-   Fixed: built `.cjs` files to address Rollup vulnerability ([#8010](stylelint/stylelint#8010)) ([@ybiquitous](https://github.com/ybiquitous)).
-   Fixed: incorrect `config` option for Node.js API with `extends` and `overrides` ([#8030](stylelint/stylelint#8030)) ([@ybiquitous](https://github.com/ybiquitous)).
-   Fixed: stricter validation for the options of `declaration-property-max-values`, `declaration-property-value-no-unknown` and `number-max-precision` ([#7975](stylelint/stylelint#7975)) ([@Mouvedia](https://github.com/Mouvedia)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: dependencies relates to dependencies
Development

Successfully merging this pull request may close these issues.

Move to css-tree 3.x
4 participants