Skip to content

Commit 79aef7d

Browse files
chore(deps): update dependency postcss-modules to v9 (UI5#8757)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [postcss-modules](https://redirect.github.com/css-modules/postcss-modules) | [`6.0.1` → `9.0.0`](https://renovatebot.com/diffs/npm/postcss-modules/6.0.1/9.0.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/postcss-modules/9.0.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/postcss-modules/6.0.1/9.0.0?slim=true) | --- ### Release Notes <details> <summary>css-modules/postcss-modules (postcss-modules)</summary> ### [`v9.0.0`](https://redirect.github.com/css-modules/postcss-modules/blob/HEAD/CHANGELOG.md#900) [Compare Source](https://redirect.github.com/css-modules/postcss-modules/compare/v8.3.1...v9.0.0) ##### Breaking - Minimum Node.js bumped from 20 to 20.6, the release that stabilized `module.register`. ##### Added - New `postcss-modules/loader` subpath — an opt-in Node module-customization hook. Run with `node --import postcss-modules/loader app.mjs` and JavaScript files can do `import styles from "./button.css"` to receive the class-name token map as the default export, mirroring `css-loader`'s `modules` workflow. Options live in `postcss-modules.config.{js,cjs,mjs}` in cwd, the `POSTCSS_MODULES_CONFIG` env var, or a `"postcss-modules"` key in `package.json`, and accept the same shape as the PostCSS plugin. Aimed at non-bundler use cases (SSR, Node scripts, Jest/Vitest in node mode); bundler users keep using their existing integrations. [#&UI5#8203;80](https://redirect.github.com/madyankin/postcss-modules/issues/80) ### [`v8.3.1`](https://redirect.github.com/css-modules/postcss-modules/blob/HEAD/CHANGELOG.md#831) [Compare Source](https://redirect.github.com/css-modules/postcss-modules/compare/v8.3.0...v8.3.1) ##### Fixed - `hashPrefix` is now applied when no custom `generateScopedName` is set. Previously the option was only honoured by `generic-names`, so the built-in default generator silently ignored it. [#&UI5#8203;160](https://redirect.github.com/madyankin/postcss-modules/issues/160) - Empty rules left behind after `:global { ... }` unwrapping (e.g. a Sass block containing only a multi-line comment) are now removed instead of emitted as orphaned `{ ... }` blocks. [#&UI5#8203;136](https://redirect.github.com/madyankin/postcss-modules/issues/136) ### [`v8.3.0`](https://redirect.github.com/css-modules/postcss-modules/blob/HEAD/CHANGELOG.md#830) [Compare Source](https://redirect.github.com/css-modules/postcss-modules/compare/v8.1.0...v8.3.0) ##### Added - New `localsConvention` value `'all'` — emit the original class name plus the camelCase and dashes-camelCase variants in one pass. - New `localsConvention` value `'none'` — emit only the original class name, with no additional aliases. - The function form of `localsConvention` may now return an array of strings. Every entry in the array is added to the locals map and resolves to the same value, which makes it easy to expose a single CSS class under multiple JS-friendly aliases. Adapted from the unmerged work in [#&UI5#8203;154](https://redirect.github.com/madyankin/postcss-modules/pull/154) by [@&UI5#8203;CarbonORM](https://redirect.github.com/CarbonORM). ### [`v8.1.0`](https://redirect.github.com/css-modules/postcss-modules/blob/HEAD/CHANGELOG.md#810) [Compare Source](https://redirect.github.com/css-modules/postcss-modules/compare/v7.0.0...v8.1.0) ##### Internal - Replaced Babel with swc across the entire toolchain: `@swc/cli` compiles `src/` to `build/`, `@swc/jest` transforms test files, and ESLint now uses its default `espree` parser. Removed five `@babel/*` devDependencies and the unused `@babel/register` runtime hook. The published `build/*.js` keeps the same `module.exports = (opts) => ...; module.exports.postcss = true` shape, so existing CommonJS consumers are unaffected. - Pinned transitive `file-type` to v22 via `overrides` to silence `@swc/cli`'s vulnerable dependency chain. ### [`v7.0.0`](https://redirect.github.com/css-modules/postcss-modules/blob/HEAD/CHANGELOG.md#700) [Compare Source](https://redirect.github.com/css-modules/postcss-modules/compare/v6.0.1...v7.0.0) ##### Breaking - Dropped support for Node.js 10, 12, 14, and 15. The minimum supported Node.js version is now 18. ##### Security - Patched 14 Dependabot security alerts in transitive dependencies (`form-data`, `lodash`, `@babel/core`, `@babel/plugin-transform-modules-systemjs`, `uuid`, `picomatch`, `flatted`, `minimatch`, `qs`, `js-yaml`, `nanoid`) - Bumped `jest` from 26 to 30 to drop vulnerable `node-notifier`, `sane`, and `jsdom` chains ##### Internal - Regenerated Jest snapshots for the new `pretty-format` serializer (cosmetic only; emitted CSS and JSON are unchanged) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - 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. --- - [x] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/UI5/webcomponents-react). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNDIuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI0Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 45dde6d commit 79aef7d

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"postcss": "8.5.16",
105105
"postcss-cli": "11.0.1",
106106
"postcss-import": "16.1.1",
107-
"postcss-modules": "6.0.1",
107+
"postcss-modules": "9.0.0",
108108
"prettier": "3.8.5",
109109
"publint": "0.3.21",
110110
"rimraf": "6.1.3",

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18629,7 +18629,7 @@ __metadata:
1862918629
languageName: node
1863018630
linkType: hard
1863118631

18632-
"postcss-modules-local-by-default@npm:^4.0.5":
18632+
"postcss-modules-local-by-default@npm:^4.2.0":
1863318633
version: 4.2.0
1863418634
resolution: "postcss-modules-local-by-default@npm:4.2.0"
1863518635
dependencies:
@@ -18642,7 +18642,7 @@ __metadata:
1864218642
languageName: node
1864318643
linkType: hard
1864418644

18645-
"postcss-modules-scope@npm:^3.2.0":
18645+
"postcss-modules-scope@npm:^3.2.1":
1864618646
version: 3.2.1
1864718647
resolution: "postcss-modules-scope@npm:3.2.1"
1864818648
dependencies:
@@ -18664,21 +18664,21 @@ __metadata:
1866418664
languageName: node
1866518665
linkType: hard
1866618666

18667-
"postcss-modules@npm:6.0.1":
18668-
version: 6.0.1
18669-
resolution: "postcss-modules@npm:6.0.1"
18667+
"postcss-modules@npm:9.0.0":
18668+
version: 9.0.0
18669+
resolution: "postcss-modules@npm:9.0.0"
1867018670
dependencies:
1867118671
generic-names: "npm:^4.0.0"
1867218672
icss-utils: "npm:^5.1.0"
1867318673
lodash.camelcase: "npm:^4.3.0"
1867418674
postcss-modules-extract-imports: "npm:^3.1.0"
18675-
postcss-modules-local-by-default: "npm:^4.0.5"
18676-
postcss-modules-scope: "npm:^3.2.0"
18675+
postcss-modules-local-by-default: "npm:^4.2.0"
18676+
postcss-modules-scope: "npm:^3.2.1"
1867718677
postcss-modules-values: "npm:^4.0.0"
1867818678
string-hash: "npm:^1.1.3"
1867918679
peerDependencies:
1868018680
postcss: ^8.0.0
18681-
checksum: 10c0/b82230693cb257b69db486df8835626d96632481ec6a8777b51ae7a530a56fa0ed399cbc8c2c777525f31fefab5a2d12ea7331a748fdfddde9f16cf3fff3bc58
18681+
checksum: 10c0/333d282f98a9cc2dfd660a35981a9ca3468cde473b2fcee163bbb2aeb0e0153131b2bf83966a0071dbde3bce4c4ac9c7cf6a1e0bd4a71ae24b33abed8db3f471
1868218682
languageName: node
1868318683
linkType: hard
1868418684

@@ -22187,7 +22187,7 @@ __metadata:
2218722187
postcss: "npm:8.5.16"
2218822188
postcss-cli: "npm:11.0.1"
2218922189
postcss-import: "npm:16.1.1"
22190-
postcss-modules: "npm:6.0.1"
22190+
postcss-modules: "npm:9.0.0"
2219122191
prettier: "npm:3.8.5"
2219222192
publint: "npm:0.3.21"
2219322193
react: "npm:19.2.7"

0 commit comments

Comments
 (0)