Skip to content

Commit aebae31

Browse files
committed
Merge remote-tracking branch 'origin/main' into postcss-mixins--intuitive-iguana-9a9abdc286
2 parents bfa29d1 + 62fa708 commit aebae31

File tree

564 files changed

+3258
-3236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

564 files changed

+3258
-3236
lines changed

.github/bin/format-package-json.mjs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,15 @@ const formatted = {};
7575
delete packageJSONInfo.private;
7676

7777
formatted.engines = {
78-
node: '>=18',
78+
node: '>=20.19.0',
7979
};
8080
delete packageJSONInfo.engines;
8181

82+
// json only package
83+
if (formatted.name === '@csstools/css-syntax-patches-for-csstree') {
84+
delete formatted.engines;
85+
}
86+
8287
formatted.type = packageJSONInfo.type;
8388
delete packageJSONInfo.type;
8489
}
@@ -103,16 +108,8 @@ const formatted = {};
103108
formatted.unpkg = packageJSONInfo.unpkg;
104109
delete packageJSONInfo.unpkg;
105110

106-
if (packageJSONInfo.exports) {
107-
formatted.exports = packageJSONInfo.exports;
108-
if (packageJSONInfo.exports['.'] && packageJSONInfo.exports['.'].types) {
109-
formatted.exports['.'] = {
110-
types: packageJSONInfo.exports['.'].types,
111-
...formatted.exports['.'],
112-
};
113-
}
114-
delete packageJSONInfo.exports;
115-
}
111+
formatted.exports = packageJSONInfo.exports;
112+
delete packageJSONInfo.exports;
116113

117114
formatted.files = packageJSONInfo.files;
118115
delete packageJSONInfo.files;

.github/workflows/codeql.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
schedule:
55
- cron: '0 4 * * 1'
66
workflow_dispatch:
7+
push:
8+
branches:
9+
- 'main'
10+
pull_request:
711

812
defaults:
913
run:
@@ -33,14 +37,5 @@ jobs:
3337
languages: ${{ matrix.language }}
3438
queries: security-extended
3539

36-
- name: setup node
37-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
38-
with:
39-
node-version: 24
40-
cache: 'npm'
41-
42-
- run: npm ci --ignore-scripts
43-
- run: npm run build --workspaces --if-present
44-
4540
- name: Perform CodeQL Analysis
4641
uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# Enable annotations only for node 24 + ubuntu
2424
matrix:
2525
os: [ubuntu-latest]
26-
node: [18, 20, 22, 24, 25]
26+
node: [20, 22, 24, 25]
2727
include:
2828
- os: macos-latest
2929
node: 24

cli/csstools-cli/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changes to CSSTools CLI
22

3+
### 5.0.1
4+
5+
_January 14, 2026_
6+
7+
- Updated [`css-blank-pseudo`](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo) to [`8.0.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo/CHANGELOG.md#801) (patch)
8+
- Updated [`postcss-preset-env`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env) to [`11.0.1`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env/CHANGELOG.md#1101) (patch)
9+
10+
### 5.0.0
11+
12+
_January 14, 2026_
13+
14+
- Updated: Support for Node `20.19.0` or later (major).
15+
- Removed: `commonjs` API. In supported Node versions `require(esm)` will work without needing to make code changes.
16+
- Updated [`postcss-preset-env`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env) to [`11.0.0`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env/CHANGELOG.md#1100) (major)
17+
318
### 4.0.25
419

520
_January 10, 2026_

cli/csstools-cli/package.json

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@csstools/csstools-cli",
33
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
4-
"version": "4.0.25",
4+
"version": "5.0.1",
55
"contributors": [
66
{
77
"name": "Antonio Laguna",
@@ -25,69 +25,68 @@
2525
}
2626
],
2727
"engines": {
28-
"node": ">=18"
28+
"node": ">=20.19.0"
2929
},
3030
"bin": {
3131
"csstools-cli": "dist/cli.cjs"
3232
},
33-
"types": "dist/cli.d.ts",
3433
"files": [
3534
"CHANGELOG.md",
3635
"LICENSE.md",
3736
"README.md",
3837
"dist"
3938
],
4039
"dependencies": {
41-
"@csstools/postcss-cascade-layers": "^5.0.2",
42-
"@csstools/postcss-color-function": "^4.0.12",
43-
"@csstools/postcss-color-mix-function": "^3.0.12",
44-
"@csstools/postcss-content-alt-text": "^2.0.8",
45-
"@csstools/postcss-exponential-functions": "^2.0.9",
46-
"@csstools/postcss-font-format-keywords": "^4.0.0",
47-
"@csstools/postcss-gradients-interpolation-method": "^5.0.12",
48-
"@csstools/postcss-hwb-function": "^4.0.12",
49-
"@csstools/postcss-ic-unit": "^4.0.4",
50-
"@csstools/postcss-is-pseudo-class": "^5.0.3",
51-
"@csstools/postcss-light-dark-function": "^2.0.11",
52-
"@csstools/postcss-logical-float-and-clear": "^3.0.0",
53-
"@csstools/postcss-logical-resize": "^3.0.0",
54-
"@csstools/postcss-logical-viewport-units": "^3.0.4",
55-
"@csstools/postcss-media-minmax": "^2.0.9",
56-
"@csstools/postcss-media-queries-aspect-ratio-number-values": "^3.0.5",
57-
"@csstools/postcss-nested-calc": "^4.0.0",
58-
"@csstools/postcss-normalize-display-values": "^4.0.1",
59-
"@csstools/postcss-oklab-function": "^4.0.12",
60-
"@csstools/postcss-relative-color-syntax": "^3.0.12",
61-
"@csstools/postcss-scope-pseudo-class": "^4.0.1",
62-
"@csstools/postcss-stepped-value-functions": "^4.0.9",
63-
"@csstools/postcss-text-decoration-shorthand": "^4.0.3",
64-
"@csstools/postcss-trigonometric-functions": "^4.0.9",
65-
"@csstools/postcss-unset-value": "^4.0.0",
66-
"css-blank-pseudo": "^7.0.1",
67-
"css-has-pseudo": "^7.0.3",
68-
"css-prefers-color-scheme": "^10.0.0",
40+
"@csstools/postcss-cascade-layers": "^6.0.0",
41+
"@csstools/postcss-color-function": "^5.0.0",
42+
"@csstools/postcss-color-mix-function": "^4.0.0",
43+
"@csstools/postcss-content-alt-text": "^3.0.0",
44+
"@csstools/postcss-exponential-functions": "^3.0.0",
45+
"@csstools/postcss-font-format-keywords": "^5.0.0",
46+
"@csstools/postcss-gradients-interpolation-method": "^6.0.0",
47+
"@csstools/postcss-hwb-function": "^5.0.0",
48+
"@csstools/postcss-ic-unit": "^5.0.0",
49+
"@csstools/postcss-is-pseudo-class": "^6.0.0",
50+
"@csstools/postcss-light-dark-function": "^3.0.0",
51+
"@csstools/postcss-logical-float-and-clear": "^4.0.0",
52+
"@csstools/postcss-logical-resize": "^4.0.0",
53+
"@csstools/postcss-logical-viewport-units": "^4.0.0",
54+
"@csstools/postcss-media-minmax": "^3.0.0",
55+
"@csstools/postcss-media-queries-aspect-ratio-number-values": "^4.0.0",
56+
"@csstools/postcss-nested-calc": "^5.0.0",
57+
"@csstools/postcss-normalize-display-values": "^5.0.0",
58+
"@csstools/postcss-oklab-function": "^5.0.0",
59+
"@csstools/postcss-relative-color-syntax": "^4.0.0",
60+
"@csstools/postcss-scope-pseudo-class": "^5.0.0",
61+
"@csstools/postcss-stepped-value-functions": "^5.0.0",
62+
"@csstools/postcss-text-decoration-shorthand": "^5.0.0",
63+
"@csstools/postcss-trigonometric-functions": "^5.0.0",
64+
"@csstools/postcss-unset-value": "^5.0.0",
65+
"css-blank-pseudo": "^8.0.1",
66+
"css-has-pseudo": "^8.0.0",
67+
"css-prefers-color-scheme": "^11.0.0",
6968
"postcss": "^8.5.6",
70-
"postcss-attribute-case-insensitive": "^7.0.1",
71-
"postcss-color-functional-notation": "^7.0.12",
72-
"postcss-color-hex-alpha": "^10.0.0",
73-
"postcss-color-rebeccapurple": "^10.0.0",
74-
"postcss-custom-media": "^11.0.6",
75-
"postcss-custom-properties": "^14.0.6",
76-
"postcss-custom-selectors": "^8.0.5",
77-
"postcss-dir-pseudo-class": "^9.0.1",
78-
"postcss-double-position-gradients": "^6.0.4",
79-
"postcss-focus-visible": "^10.0.1",
80-
"postcss-focus-within": "^9.0.1",
81-
"postcss-gap-properties": "^6.0.0",
82-
"postcss-image-set-function": "^7.0.0",
83-
"postcss-lab-function": "^7.0.12",
84-
"postcss-logical": "^8.1.0",
85-
"postcss-nesting": "^13.0.2",
86-
"postcss-overflow-shorthand": "^6.0.0",
87-
"postcss-place": "^10.0.0",
88-
"postcss-preset-env": "^10.6.1",
89-
"postcss-pseudo-class-any-link": "^10.0.1",
90-
"postcss-selector-not": "^8.0.1"
69+
"postcss-attribute-case-insensitive": "^8.0.0",
70+
"postcss-color-functional-notation": "^8.0.0",
71+
"postcss-color-hex-alpha": "^11.0.0",
72+
"postcss-color-rebeccapurple": "^11.0.0",
73+
"postcss-custom-media": "^12.0.0",
74+
"postcss-custom-properties": "^15.0.0",
75+
"postcss-custom-selectors": "^9.0.0",
76+
"postcss-dir-pseudo-class": "^10.0.0",
77+
"postcss-double-position-gradients": "^7.0.0",
78+
"postcss-focus-visible": "^11.0.0",
79+
"postcss-focus-within": "^10.0.0",
80+
"postcss-gap-properties": "^7.0.0",
81+
"postcss-image-set-function": "^8.0.0",
82+
"postcss-lab-function": "^8.0.0",
83+
"postcss-logical": "^9.0.0",
84+
"postcss-nesting": "^14.0.0",
85+
"postcss-overflow-shorthand": "^7.0.0",
86+
"postcss-place": "^11.0.0",
87+
"postcss-preset-env": "^11.0.1",
88+
"postcss-pseudo-class-any-link": "^11.0.0",
89+
"postcss-selector-not": "^9.0.0"
9190
},
9291
"devDependencies": {
9392
"@csstools/base-cli": "0.1.0"

e2e-package-managers/yarn/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"description": "Can you use yarn with our plugins?",
66
"devDependencies": {
77
"postcss": "^8.5.6",
8-
"postcss-preset-env": "^10.6.0"
8+
"postcss-preset-env": "^11.0.1"
99
},
1010
"volta": {
1111
"extends": "../../package.json",
12-
"yarn": "4.0.1"
12+
"yarn": "4.12.0"
1313
}
1414
}

e2e/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import assert from 'node:assert';
22
import plugin from 'postcss-preset-env';
3-
plugin({ preserve: true });
3+
plugin({
4+
preserve: true,
5+
features: {
6+
'all-property': [true, { preserve: true }],
7+
'any-link-pseudo-class': [false, { preserve: true }],
8+
'cascade-layers': ['auto', { onImportLayerRule: 'warn' }],
9+
'color-function': { preserve: true, enableProgressiveCustomProperties: false },
10+
'color-mix': false,
11+
'light-dark-function': true,
12+
},
13+
});
414
assert.ok(plugin.postcss, 'should have "postcss flag"');
515
assert.equal(typeof plugin, 'function', 'should return a function');

e2e/webpack/bundle-through/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const postcss = require('postcss');
2-
const postcssPresetEnv = require('postcss-preset-env');
2+
const postcssPresetEnv = require('postcss-preset-env').default;
33

44
try {
55
postcss([postcssPresetEnv({

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default [
3434
globals: {
3535
...globals.node,
3636
},
37-
ecmaVersion: 2022,
37+
ecmaVersion: 2025,
3838
sourceType: 'module',
3939
},
4040

@@ -71,7 +71,7 @@ export default [
7171
globals: {
7272
...globals.browser,
7373
},
74-
ecmaVersion: 2022,
74+
ecmaVersion: 2025,
7575
sourceType: 'module',
7676
},
7777

0 commit comments

Comments
 (0)