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(deps): update dependency postcss to v8.4.49 #905

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 20, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
postcss (source) 8.4.47 -> 8.4.49 age adoption passing confidence

Release Notes

postcss/postcss (postcss)

v8.4.49

Compare Source

v8.4.48

Compare Source

  • Fixed position calculation in error/warnings methods (by @​romainmenke).

Configuration

📅 Schedule: Branch creation - "* 0-4 * * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies Pull requests that update a dependency file renovate labels Nov 20, 2024
@renovate renovate bot enabled auto-merge (squash) November 20, 2024 01:10
Copy link
Contributor

[puLL-Merge] - postcss/postcss@8.4.47..8.4.49

Description

This PR updates several dependencies, fixes issues with position calculation in error/warning methods, and adds support for custom syntax without source.offset. The changes aim to improve the reliability and flexibility of PostCSS, particularly in handling node positions and ranges after AST mutations.

Changes

Changes

  1. .github/workflows/test.yml:

    • Updated Node.js version for testing from 22 to 23
    • Added Node.js version 22 to the test matrix
  2. CHANGELOG.md:

    • Added entries for versions 8.4.49 and 8.4.48, noting fixes for custom syntax without source.offset and position calculation in error/warnings methods
  3. docs/writing-a-plugin.md:

    • Minor wording change in a comment
  4. eslint.config.mjs:

    • Added a new rule to turn off perfectionist/sort-switch-case
  5. lib/node.js:

    • Implemented a new sourceOffset function to handle cases where source.offset is undefined
    • Updated positionBy, positionInside, and rangeBy methods to use the new sourceOffset function
    • These changes improve position calculations, especially after AST mutations
  6. lib/processor.js:

    • Updated version number to 8.4.49
  7. package.json:

    • Updated version to 8.4.49
    • Updated several dependencies to their latest versions
  8. test/node.test.ts:

    • Added new test cases to verify correct behavior of position and range calculations after AST mutations
    • Added tests for scenarios where source.offset is missing

Possible Issues

The update to Node.js 23 in the main test workflow might potentially introduce compatibility issues with older codebases or dependencies that haven't been updated to support this version yet.

Security Hotspots

There are no apparent security vulnerabilities introduced by this change.

graph TD
    A[PostCSS] --> B[Node.js]
    A --> C[ESLint]
    A --> D[TypeScript]
    B --> E[v23]
    B --> F[v22]
    B --> G[v20]
    B --> H[v18]
    A --> I[Custom Syntax Support]
    A --> J[Position Calculation]
    J --> K[sourceOffset function]
    J --> L[positionBy method]
    J --> M[positionInside method]
    J --> N[rangeBy method]
Loading
sequenceDiagram
    participant User
    participant PostCSS
    participant Node
    participant SourceMap

    User->>PostCSS: Process CSS
    PostCSS->>Node: Create AST
    Node->>SourceMap: Calculate positions
    SourceMap->>Node: Return positions
    Node->>PostCSS: Return processed AST
    PostCSS->>User: Return processed CSS
    User->>PostCSS: Modify AST
    PostCSS->>Node: Update node
    Node->>SourceMap: Recalculate positions
    SourceMap->>Node: Return updated positions
    Node->>PostCSS: Return updated AST
    PostCSS->>User: Return updated CSS
Loading

@renovate renovate bot merged commit 9cdf34b into main Nov 20, 2024
7 checks passed
@renovate renovate bot deleted the renovate/postcss-8.x branch November 20, 2024 01:12
Copy link
Contributor

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://905.pr.nala.bravesoftware.com/
✅ Commit preview: https://905.pr.nala.bravesoftware.com/commit-518ead5e2a9053d0c9a8e96cabb2f1e9e6586b16/

- ./tokens/css/variables-android.old.css: 7390 bytes
+ ./tokens/css/variables-android.css: 7390 bytes
---
- ./tokens/css/variables-browser.old.css: 6848 bytes
+ ./tokens/css/variables-browser.css: 6848 bytes
---
- ./tokens/css/variables-ios.old.css: 7033 bytes
+ ./tokens/css/variables-ios.css: 7033 bytes
---
- ./tokens/css/variables-marketing.old.css: 13501 bytes
+ ./tokens/css/variables-marketing.css: 13501 bytes
---
- ./tokens/css/variables-news.old.css: 526 bytes
+ ./tokens/css/variables-news.css: 526 bytes
---
- ./tokens/css/variables-newtab.old.css: 1933 bytes
+ ./tokens/css/variables-newtab.css: 1933 bytes
---
- ./tokens/css/variables-search.old.css: 2409 bytes
+ ./tokens/css/variables-search.css: 2409 bytes
---
- ./tokens/css/variables-web3.old.css: 905 bytes
+ ./tokens/css/variables-web3.css: 905 bytes
---
- ./tokens/css/variables.old.css: 119512 bytes
+ ./tokens/css/variables.css: 119512 bytes
Variables Diff: variables-android.diff
--- ./tokens/css/variables-android.old.css	2024-11-20 01:11:20.678071919 +0000
+++ ./tokens/css/variables-android.css	2024-11-20 01:10:42.189894497 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-browser.diff
--- ./tokens/css/variables-browser.old.css	2024-11-20 01:11:20.910072987 +0000
+++ ./tokens/css/variables-browser.css	2024-11-20 01:10:42.169894391 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-ios.diff
--- ./tokens/css/variables-ios.old.css	2024-11-20 01:11:21.150074090 +0000
+++ ./tokens/css/variables-ios.css	2024-11-20 01:10:42.205894582 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-marketing.diff
--- ./tokens/css/variables-marketing.old.css	2024-11-20 01:11:21.350075012 +0000
+++ ./tokens/css/variables-marketing.css	2024-11-20 01:10:42.233894730 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-news.diff
--- ./tokens/css/variables-news.old.css	2024-11-20 01:11:21.562075982 +0000
+++ ./tokens/css/variables-news.css	2024-11-20 01:10:42.261894878 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-newtab.diff
--- ./tokens/css/variables-newtab.old.css	2024-11-20 01:11:21.818077159 +0000
+++ ./tokens/css/variables-newtab.css	2024-11-20 01:10:42.269894920 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-search.diff
--- ./tokens/css/variables-search.old.css	2024-11-20 01:11:22.014078059 +0000
+++ ./tokens/css/variables-search.css	2024-11-20 01:10:42.253894836 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {
Variables Diff: variables-web3.diff
--- ./tokens/css/variables-web3.old.css	2024-11-20 01:11:22.246079125 +0000
+++ ./tokens/css/variables-web3.css	2024-11-20 01:10:42.277894962 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 @media (prefers-color-scheme: light) {
Variables Diff: variables.diff
--- ./tokens/css/variables.old.css	2024-11-20 01:11:22.542080495 +0000
+++ ./tokens/css/variables.css	2024-11-20 01:10:42.033893673 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Thu Nov 14 2024 23:19:53 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 20 2024 01:10:42 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file puLL-Merge renovate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants