Skip to content

Commit 4f6e9f7

Browse files
committed
Auto merge of #4208 - rust-lang:renovate/postcss-8.x, r=Turbo87
Update dependency postcss to v8.4.1 [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [postcss](https://postcss.org/) ([source](https://togithub.com/postcss/postcss)) | [`8.3.11` -> `8.4.1`](https://renovatebot.com/diffs/npm/postcss/8.3.11/8.4.1) | [![age](https://badges.renovateapi.com/packages/npm/postcss/8.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/postcss/8.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/postcss/8.4.1/compatibility-slim/8.3.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/postcss/8.4.1/confidence-slim/8.3.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>postcss/postcss</summary> ### [`v8.4.1`](https://togithub.com/postcss/postcss/blob/master/CHANGELOG.md#&#8203;841) [Compare Source](https://togithub.com/postcss/postcss/compare/8.4.0...8.4.1) - Fixed `Stringifier` types (by James Garbutt). ### [`v8.4.0`](https://togithub.com/postcss/postcss/releases/8.4.0) [Compare Source](https://togithub.com/postcss/postcss/compare/8.3.11...8.4.0) <img src="https://user-images.githubusercontent.com/19343/143240813-e6fb2eff-0188-4426-8534-d9076df9fa96.jpg" align="right" width="200" height="200" alt="President Camio seal"> PostCSS 8.4 brought ranges for warnings and errors, smaller `node_modules` size, lazy parsing to avoid `PostCSS does nothing` warning, and TypeScript fixes. #### Thanks to Sponsors This release was possible thanks to our community. <a href="https://tailwindcss.com/"> <img src="https://refactoringui.nyc3.cdn.digitaloceanspaces.com/tailwind-logo.svg" alt="Sponsored by Tailwind CSS" width="213" height="50"> </a> <a href="https://themeisle.com/"> <img src="https://mllj2j8xvfl0.i.optimole.com/d0cOXWA.3970~373ad/w:auto/h:auto/q:90/https://s30246.pcdn.co/wp-content/uploads/2019/03/logo.png" alt="Sponsored by ThemeIsle" width="171" height="56"> </a> If your company wants to support the sustainability of front-end infrastructure or wants to give some love to PostCSS, you can join our supporters by: - [**Tidelift**](https://tidelift.com/) with a Spotify-like subscription model supporting all projects from your lock file. - Direct donations in [**PostCSS & Autoprefixer Open Collective**](https://opencollective.com/postcss#section-contributors). #### Rages for Errors and Warnings [`@&#8203;adalinesimonian](https://togithub.com/adalinesimonian),` the author of amazing [Stylelint extension](https://togithub.com/stylelint/vscode-stylelint) for VS Code, added ranges to errors and warnings. ```js result.warn(msg, { index }) // One character warning at index result.warn(msg, { endIndex }) // Starts at node start, ends at endIndex result.warn(msg, { index, endIndex }) // Starts at index, ends at endIndex result.warn(msg, { start }) // Starts at start, ends at node end result.warn(msg, { end }) // Starts at node start, ends at end result.warn(msg, { start, end }) // Starts at start, ends at end result.warn(msg, { word }) // Starts at word location, ends at word index + length ``` It will improve DX in the IDE extension. #### Lazy Parsing Previously, we found that many tools run PostCSS even if the developer didn’t pass any PostCSS plugins. Parsing is the most expensive step in CSS processing. It led to a waste of resources without any reason. We tried to resolve the problem by adding a `PostCSS does nothing` warning. But it didn’t force tool authors to be more careful with user’s resources. If PostCSS sees that tool call it without passing plugins (or changing parser/stringifier), PostCSS will not parse CSS (until toll will call `Result#root`). In 8.4, [`@&#8203;bogdan0083](https://togithub.com/bogdan0083)` (with the help of [`@&#8203;WilhelmYakunin](https://togithub.com/WilhelmYakunin))` tries to solve the problem in another way. It allows us to save resources and remove the `PostCSS does nothing` warning. ```js // No plugins, we do not parse CSS let result = await postcss().process(css, { from }) result.css // Is the same string passed to process() result.map // Special 1-to-1 source map result.root // CSS will parsed only here ``` #### Install Size Reduction With [≈60M weekly](https://npm-stat.com/charts.html?package=postcss) downloads, PostCSS has responsibility for the world’s resource spending. Together with [`@&#8203;7rulnik](https://togithub.com/7rulnik)` we [reduced](https://togithub.com/7rulnik/source-map-js/pull/7) [`source-map-js`](https://togithub.com/7rulnik/source-map-js) size. It is transitive dependency of PostCSS. In 8.4, we moved to a fixed version of `source-map-js`, which reduced the `postcss` size in your `node_modules` from [≈1 MB to 0.3 MB](https://packagephobia.com/result?p=postcss). With the huge popularity of PostCSS, it will free a lot of resources on our CIs. <img src="https://user-images.githubusercontent.com/19343/143244369-9ec362c5-4dbd-4aff-ba9e-7b4a50a97484.png" width="550" height="392" alt="PostCSS install size reduction"> #### Migration from Jest to `uvu` [`@&#8203;kimoofey](https://togithub.com/kimoofey)` refactored all tests from the popular Jest framework to small and fast [`uvu`](https://togithub.com/lukeed/uvu). It will not affect end-users. However, it reduced our `node_modules` size by 33 MB and made tests twice faster (`yarn install & yarn unit`: 24 → 13 seconds). #### TypeScript Fixes - Added `Processor` types. - Added `Stringifier` types (by [`@&#8203;43081j](https://togithub.com/43081j)).` - Fixed types `Root` and `Document` in result values (by [`@&#8203;43081j](https://togithub.com/43081j)).` - Fixed `Node#walkRules()` types (by [`@&#8203;hudochenkov](https://togithub.com/hudochenkov)).` #### Other Changes - Fixed docs (by [`@&#8203;paulshryock](https://togithub.com/paulshryock)).` </details> --- ### Configuration 📅 **Schedule**: 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/rust-lang/crates.io).
2 parents 04eee49 + f0da90c commit 4f6e9f7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"webpack": "5.64.2"
131131
},
132132
"resolutions": {
133-
"ember-css-modules/postcss": "8.3.11",
133+
"ember-css-modules/postcss": "8.4.1",
134134
"ember-inflector": "4.0.2",
135135
"ember-modifier": "3.0.0"
136136
},

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12055,14 +12055,14 @@ postcss-values-parser@^2.0.0, postcss-values-parser@^2.0.1:
1205512055
indexes-of "^1.0.1"
1205612056
uniq "^1.0.1"
1205712057

12058-
postcss@8.3.11, postcss@^8.0.0, postcss@^8.1.4, postcss@^8.2.15:
12059-
version "8.3.11"
12060-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.11.tgz#c3beca7ea811cd5e1c4a3ec6d2e7599ef1f8f858"
12061-
integrity sha512-hCmlUAIlUiav8Xdqw3Io4LcpA1DOt7h3LSTAC4G6JGHFFaWzI6qvFt9oilvl8BmkbBRX1IhM90ZAmpk68zccQA==
12058+
postcss@8.4.1, postcss@^8.0.0, postcss@^8.1.4, postcss@^8.2.15:
12059+
version "8.4.1"
12060+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.1.tgz#73051f825509ad1a716ef500108001bf3d1fa8f7"
12061+
integrity sha512-WqLs/TTzXdG+/A4ZOOK9WDZiikrRaiA+eoEb/jz2DT9KUhMNHgP7yKPO8vwi62ZCsb703Gwb7BMZwDzI54Y2Ag==
1206212062
dependencies:
1206312063
nanoid "^3.1.30"
1206412064
picocolors "^1.0.0"
12065-
source-map-js "^0.6.2"
12065+
source-map-js "^1.0.1"
1206612066

1206712067
postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6:
1206812068
version "7.0.39"
@@ -13214,10 +13214,10 @@ source-list-map@^2.0.0:
1321413214
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
1321513215
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==
1321613216

13217-
source-map-js@^0.6.2:
13218-
version "0.6.2"
13219-
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e"
13220-
integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==
13217+
source-map-js@^1.0.1:
13218+
version "1.0.1"
13219+
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.1.tgz#a1741c131e3c77d048252adfa24e23b908670caf"
13220+
integrity sha512-4+TN2b3tqOCd/kaGRJ/sTYA0tR0mdXx26ipdolxcwtJVqEnqNYvlCAt1q3ypy4QMlYus+Zh34RNtYLoq2oQ4IA==
1322113221

1322213222
source-map-resolve@^0.5.0:
1322313223
version "0.5.3"

0 commit comments

Comments
 (0)