Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: csstools/postcss-plugins
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ff9ac46f54fc71f999bb0b57741783884f175a56
Choose a base ref
...
head repository: csstools/postcss-plugins
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 35e94b28ab0410ae72e4fbcf8006bd7cb42a51ee
Choose a head ref
  • 10 commits
  • 18 files changed
  • 3 contributors

Commits on Apr 21, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    f846b60 View commit details
  2. @csstools/csstools-cli v3.0.17

    romainmenke committed Apr 21, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    179fc50 View commit details
  3. update the site

    romainmenke committed Apr 21, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    2582f1e View commit details

Commits on Apr 22, 2024

  1. Update postcss-preset-env requirement from ^9.5.5 to ^9.5.8 in /e2e-p…

    …ackage-managers/yarn in the all-dependencies group (#1374)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e7132a7 View commit details
  2. Bump the all-dependencies group in /sites with 2 updates (#1375)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Romain Menke <romainmenke@gmail.com>
    dependabot[bot] and romainmenke authored Apr 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5c1b3a3 View commit details
  3. Bump the development-dependencies group with 2 updates (#1376)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Romain Menke <romainmenke@gmail.com>
    dependabot[bot] and romainmenke authored Apr 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fe8f9ce View commit details
  4. postcss-custom-properties: prevent errors when a custom property ha…

    …s multiple dependencies and one of them is undefined (#1378)
    romainmenke authored Apr 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fcc481d View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    8585839 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    9e4bc7a View commit details
  7. postcss-preset-env v9.5.9

    romainmenke committed Apr 22, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    35e94b2 View commit details
7 changes: 7 additions & 0 deletions cli/csstools-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,14 @@

### Unreleased (patch)

- Updated [`postcss-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties) to [`13.3.8`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties/CHANGELOG.md#1338) (patch)

### 3.0.17

_April 21, 2024_

- Updated [`postcss-pseudo-class-any-link`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link) to [`9.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link/CHANGELOG.md#902) (patch)
- Updated [`postcss-preset-env`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env) to [`9.5.8`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env/CHANGELOG.md#958) (patch)

### 3.0.16

6 changes: 3 additions & 3 deletions cli/csstools-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@csstools/csstools-cli",
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
"version": "3.0.16",
"version": "3.0.17",
"contributors": [
{
"name": "Antonio Laguna",
@@ -71,7 +71,7 @@
"postcss-color-hex-alpha": "^9.0.4",
"postcss-color-rebeccapurple": "^9.0.3",
"postcss-custom-media": "^10.0.4",
"postcss-custom-properties": "^13.3.7",
"postcss-custom-properties": "^13.3.8",
"postcss-custom-selectors": "^7.1.8",
"postcss-dir-pseudo-class": "^8.0.1",
"postcss-double-position-gradients": "^5.0.6",
@@ -84,7 +84,7 @@
"postcss-nesting": "^12.1.2",
"postcss-overflow-shorthand": "^5.0.1",
"postcss-place": "^9.0.1",
"postcss-preset-env": "^9.5.7",
"postcss-preset-env": "^9.5.8",
"postcss-pseudo-class-any-link": "^9.0.2",
"postcss-selector-not": "^7.0.2"
},
2 changes: 1 addition & 1 deletion e2e-package-managers/yarn/package.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"description": "Can you use yarn with our plugins?",
"devDependencies": {
"postcss": "^8.4.38",
"postcss-preset-env": "^9.5.5"
"postcss-preset-env": "^9.5.8"
},
"volta": {
"extends": "../../package.json",
168 changes: 84 additions & 84 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@
"@typescript-eslint/parser": "^7.6.0",
"eslint": "^8.57.0",
"knip": "^5.9.4",
"rollup": "^4.14.2",
"rollup": "^4.16.1",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
},
6 changes: 6 additions & 0 deletions plugin-packs/postcss-preset-env/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changes to PostCSS Preset Env

### 9.5.9

_April 22, 2024_

- Updated [`postcss-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties) to [`13.3.8`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties/CHANGELOG.md#1338) (patch)

### 9.5.8

_April 21, 2024_
4 changes: 2 additions & 2 deletions plugin-packs/postcss-preset-env/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postcss-preset-env",
"description": "Convert modern CSS into something browsers understand",
"version": "9.5.8",
"version": "9.5.9",
"contributors": [
{
"name": "Antonio Laguna",
@@ -93,7 +93,7 @@
"postcss-color-hex-alpha": "^9.0.4",
"postcss-color-rebeccapurple": "^9.0.3",
"postcss-custom-media": "^10.0.4",
"postcss-custom-properties": "^13.3.7",
"postcss-custom-properties": "^13.3.8",
"postcss-custom-selectors": "^7.1.8",
"postcss-dir-pseudo-class": "^8.0.1",
"postcss-double-position-gradients": "^5.0.6",
6 changes: 6 additions & 0 deletions plugins/postcss-custom-properties/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changes to PostCSS Custom Properties

### 13.3.8

_April 22, 2024_

- [Fix an error when a custom property has multiple dependencies and one of them is undefined](https://github.com/csstools/postcss-plugins/issues/1377)

### 13.3.7

_April 11, 2024_
2 changes: 1 addition & 1 deletion plugins/postcss-custom-properties/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/postcss-custom-properties/dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/postcss-custom-properties/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postcss-custom-properties",
"description": "Use Custom Properties Queries in CSS",
"version": "13.3.7",
"version": "13.3.8",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"contributors": [
"Maxime Thirouin"
Original file line number Diff line number Diff line change
@@ -76,6 +76,13 @@ export function buildCustomPropertiesMap(customProperties: Map<string, string>,
});
}

for (let i = 0; i < customPropertyGraph.length; i++) {
const [from, to] = customPropertyGraph[i];
if (!out.has(from) || !out.has(to)) {
customPropertyGraph.splice(i--, 1);
}
}

const sortedCustomPropertyNames = toposort(Array.from(out.keys()), customPropertyGraph);

for (const customPropertyName of sortedCustomPropertyNames) {
3 changes: 3 additions & 0 deletions plugins/postcss-custom-properties/test/_tape.mjs
Original file line number Diff line number Diff line change
@@ -30,6 +30,9 @@ postcssTape(plugin)({
preserve: false,
},
},
'issue-1377': {
message: 'prevent regressions of https://github.com/csstools/postcss-plugins/issues/1377',
},
'specificity': {
message: 'supports different specificities of html and :root selectors',
},
22 changes: 22 additions & 0 deletions plugins/postcss-custom-properties/test/issue-1377.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
:root {
--root-a: 1;
--root-b: var(--does-not-exist);
--root-c: calc(var(--root-a) + var(--root-b));
}

.foo {
--foo-a: 1;
--foo-b: var(--does-not-exist);
--foo-c: calc(var(--foo-a) + var(--foo-b));
}

:root {
--combined-a: 1;
--combined-b: 2;

}

.foo {
--combined-b: var(--does-not-exist);
--combined-c: calc(var(--combined-a) + var(--combined-b));
}
22 changes: 22 additions & 0 deletions plugins/postcss-custom-properties/test/issue-1377.expect.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
:root {
--root-a: 1;
--root-b: var(--does-not-exist);
--root-c: calc(var(--root-a) + var(--root-b));
}

.foo {
--foo-a: 1;
--foo-b: var(--does-not-exist);
--foo-c: calc(var(--foo-a) + var(--foo-b));
}

:root {
--combined-a: 1;
--combined-b: 2;

}

.foo {
--combined-b: var(--does-not-exist);
--combined-c: calc(var(--combined-a) + var(--combined-b));
}
2 changes: 1 addition & 1 deletion plugins/postcss-global-data/package.json
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@
"@csstools/postcss-tape": "*",
"open-props": "^1.7.2",
"postcss-custom-media": "^10.0.4",
"postcss-custom-properties": "^13.3.7"
"postcss-custom-properties": "^13.3.8"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
162 changes: 81 additions & 81 deletions sites/package-lock.json
2 changes: 1 addition & 1 deletion sites/postcss-preset-env/package.json
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@
"postcss": "^8.4.36",
"postcss-cli": "^11.0.0",
"postcss-preset-env": "^9.5.5",
"rollup": "^4.14.2",
"rollup": "^4.16.1",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-livereload": "^2.0.5",
"tslib": "^2.6.2",