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: 4ff57056859f764f8ccc805fa9829a19dd542c5c
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: 408870debefcd53000060203edcb904c9a68469a
Choose a head ref

Commits on Apr 18, 2024

  1. Copy the full SHA
    c583cca View commit details
  2. @csstools/csstools-cli v3.0.15

    romainmenke committed Apr 18, 2024
    Copy the full SHA
    d802bc9 View commit details

Commits on Apr 20, 2024

  1. update feature highlight

    romainmenke committed Apr 20, 2024
    Copy the full SHA
    beeb642 View commit details
  2. update tokenizer tests

    romainmenke committed Apr 20, 2024
    Copy the full SHA
    6984c78 View commit details

Commits on Apr 21, 2024

  1. update to latest gamut mapping algorithm (#1372)

    romainmenke authored Apr 21, 2024
    Copy the full SHA
    4990e96 View commit details
  2. postcss-nesting: nested conditionals (#1368)

    romainmenke authored Apr 21, 2024
    Copy the full SHA
    c74cb2b View commit details
  3. css-color-parser : undo none to zero conversion in RCS (#1359)

    romainmenke authored Apr 21, 2024
    Copy the full SHA
    4fc161c View commit details
  4. add raytrace gamut mapping method (#1360)

    romainmenke authored Apr 21, 2024
    Copy the full SHA
    f2f3d2b View commit details
  5. update dependencies

    romainmenke committed Apr 21, 2024
    Copy the full SHA
    dcdaeae View commit details
  6. Copy the full SHA
    f31d623 View commit details
  7. postcss-nesting v12.1.2

    romainmenke committed Apr 21, 2024
    Copy the full SHA
    162c271 View commit details
  8. Copy the full SHA
    67a24a7 View commit details
  9. Copy the full SHA
    9de801f View commit details
  10. Copy the full SHA
    c0ff1cd View commit details
  11. Copy the full SHA
    2d8792d View commit details
  12. Copy the full SHA
    66b0f53 View commit details
  13. Copy the full SHA
    3805efb View commit details
  14. Copy the full SHA
    0766c4c View commit details
  15. Copy the full SHA
    c25681f View commit details
  16. Copy the full SHA
    749443e View commit details
  17. Copy the full SHA
    c3f9c11 View commit details
  18. Copy the full SHA
    c8b5238 View commit details
  19. Copy the full SHA
    0b1a9b6 View commit details
  20. Copy the full SHA
    84df2ab View commit details
  21. Copy the full SHA
    e67737c View commit details
  22. Copy the full SHA
    b6b1426 View commit details
  23. postcss-preset-env v9.5.7

    romainmenke committed Apr 21, 2024
    Copy the full SHA
    408870d View commit details
Showing with 1,815 additions and 1,176 deletions.
  1. +5 −0 .github/bin/license/check-license.mjs
  2. +16 −0 cli/csstools-cli/CHANGELOG.md
  3. +12 −12 cli/csstools-cli/package.json
  4. +228 −208 package-lock.json
  5. +6 −0 packages/color-helpers/CHANGELOG.md
  6. +14 −11 packages/color-helpers/dist/index.cjs
  7. +5 −0 packages/color-helpers/dist/index.d.ts
  8. +20 −17 packages/color-helpers/dist/index.mjs
  9. +107 −0 packages/color-helpers/docs/color-helpers.api.json
  10. +77 −0 packages/color-helpers/docs/color-helpers.mapgamutraytrace.md
  11. +9 −0 packages/color-helpers/docs/color-helpers.md
  12. +1 −1 packages/color-helpers/package.json
  13. +1 −1 packages/color-helpers/scripts/hashes.json
  14. +101 −0 packages/color-helpers/src/calculations/map-gamut-ray-trace.ts
  15. +44 −8 packages/color-helpers/src/calculations/map-gamut.ts
  16. +1 −1 packages/color-helpers/src/conversions/hsl-to-srgb.ts
  17. +1 −0 packages/color-helpers/src/index.ts
  18. +8 −0 packages/css-color-parser/CHANGELOG.md
  19. +1 −1 packages/css-color-parser/dist/index.cjs
  20. +1 −1 packages/css-color-parser/dist/index.mjs
  21. +2 −2 packages/css-color-parser/package.json
  22. +1 −1 packages/css-color-parser/src/color-data.ts
  23. +15 −12 packages/css-color-parser/src/gamut-mapping/p3.ts
  24. +15 −12 packages/css-color-parser/src/gamut-mapping/srgb.ts
  25. +9 −9 packages/css-color-parser/test/basic/color-function.mjs
  26. +2 −2 packages/css-color-parser/test/basic/color-mix-function.mjs
  27. +1 −1 packages/css-color-parser/test/basic/lab.mjs
  28. +1 −1 packages/css-color-parser/test/basic/lch.mjs
  29. +91 −61 packages/css-color-parser/test/basic/relative-color.mjs
  30. +35 −0 packages/css-color-parser/test/gamut-mapping/ray-trace.mjs
  31. +2 −0 packages/css-color-parser/test/test.mjs
  32. +29 −29 packages/css-color-parser/test/wpt/color-computed-lab.mjs
  33. +5 −5 packages/css-color-parser/test/wpt/color-computed-oklab.mjs
  34. +9 −9 packages/css-color-parser/test/wpt/color-computed-relative-color.mjs
  35. +1 −1 packages/css-tokenizer/test/css-tokenizer-tests/test.mjs
  36. +16 −0 plugin-packs/postcss-preset-env/CHANGELOG.md
  37. +12 −12 plugin-packs/postcss-preset-env/package.json
  38. +13 −13 plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css
  39. +13 −13 plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css
  40. +13 −13 plugin-packs/postcss-preset-env/test/basic.autoprefixer.remove.false.expect.css
  41. +13 −13 plugin-packs/postcss-preset-env/test/basic.ch38.expect.css
  42. +13 −13 plugin-packs/postcss-preset-env/test/basic.ch88-ff78-saf10.expect.css
  43. +13 −13 plugin-packs/postcss-preset-env/test/basic.ch88-ff78.expect.css
  44. +13 −13 plugin-packs/postcss-preset-env/test/basic.ch88-ff78.no-is-pseudo.expect.css
  45. +13 −13 plugin-packs/postcss-preset-env/test/basic.expect.css
  46. +13 −13 plugin-packs/postcss-preset-env/test/basic.ff49.expect.css
  47. +13 −13 plugin-packs/postcss-preset-env/test/basic.ff66.expect.css
  48. +10 −10 plugin-packs/postcss-preset-env/test/basic.hebrew.all-browsers-have-support.expect.css
  49. +13 −13 plugin-packs/postcss-preset-env/test/basic.hebrew.expect.css
  50. +13 −13 plugin-packs/postcss-preset-env/test/basic.ie10.expect.css
  51. +13 −13 plugin-packs/postcss-preset-env/test/basic.nesting.false.expect.css
  52. +13 −13 plugin-packs/postcss-preset-env/test/basic.op_mini.expect.css
  53. +12 −12 plugin-packs/postcss-preset-env/test/basic.preserve.false.expect.css
  54. +14 −14 plugin-packs/postcss-preset-env/test/basic.preserve.true.expect.css
  55. +13 −13 plugin-packs/postcss-preset-env/test/basic.safari15.expect.css
  56. +13 −13 plugin-packs/postcss-preset-env/test/basic.stage0-ff49.expect.css
  57. +13 −13 plugin-packs/postcss-preset-env/test/basic.stage0-ff66.expect.css
  58. +13 −13 plugin-packs/postcss-preset-env/test/basic.stage0.expect.css
  59. +13 −13 plugin-packs/postcss-preset-env/test/basic.supports-query.expect.css
  60. +12 −12 plugin-packs/postcss-preset-env/test/basic.vendors-1.expect.css
  61. +12 −12 plugin-packs/postcss-preset-env/test/basic.vendors-2.expect.css
  62. +13 −13 plugin-packs/postcss-preset-env/test/basic.vendors-3.expect.css
  63. +6 −0 plugins/postcss-color-function/CHANGELOG.md
  64. +2 −2 plugins/postcss-color-function/package.json
  65. +25 −25 plugins/postcss-color-function/test/basic.expect.css
  66. +25 −25 plugins/postcss-color-function/test/basic.preserve-true.expect.css
  67. +26 −26 plugins/postcss-color-function/test/basic.with-cloned-rules.expect.css
  68. +2 −2 plugins/postcss-color-function/test/lab-function-interop.expect.css
  69. +2 −2 plugins/postcss-color-function/test/lab-function-interop.preserve.false.expect.css
  70. +6 −0 plugins/postcss-color-functional-notation/CHANGELOG.md
  71. +2 −2 plugins/postcss-color-functional-notation/package.json
  72. +6 −0 plugins/postcss-color-mix-function/CHANGELOG.md
  73. +2 −2 plugins/postcss-color-mix-function/package.json
  74. +15 −15 plugins/postcss-color-mix-function/test/basic.expect.css
  75. +15 −15 plugins/postcss-color-mix-function/test/basic.preserve-true.expect.css
  76. +15 −15 plugins/postcss-color-mix-function/test/basic.with-cloned-rules.expect.css
  77. +2 −2 plugins/postcss-color-mix-function/test/variables.expect.css
  78. +2 −2 plugins/postcss-color-mix-function/test/variables.preserve-true.expect.css
  79. +7 −0 plugins/postcss-contrast-color-function/CHANGELOG.md
  80. +4 −4 plugins/postcss-contrast-color-function/README.md
  81. +3 −3 plugins/postcss-contrast-color-function/package.json
  82. +30 −10 plugins/postcss-contrast-color-function/test/basic.expect.css
  83. +2 −2 plugins/postcss-contrast-color-function/test/examples/example.expect.css
  84. +2 −2 plugins/postcss-contrast-color-function/test/examples/example.preserve-false.expect.css
  85. +4 −4 plugins/postcss-contrast-color-function/test/variables.expect.css
  86. +4 −4 plugins/postcss-contrast-color-function/test/variables.preserve-false.expect.css
  87. +1 −1 plugins/postcss-design-tokens/dist/index.cjs
  88. +1 −1 plugins/postcss-design-tokens/dist/index.mjs
  89. +6 −0 plugins/postcss-gamut-mapping/CHANGELOG.md
  90. +2 −2 plugins/postcss-gamut-mapping/README.md
  91. +2 −2 plugins/postcss-gamut-mapping/package.json
  92. +2 −2 plugins/postcss-gamut-mapping/test/basic.expect.css
  93. +2 −2 plugins/postcss-gamut-mapping/test/examples/example.expect.css
  94. +6 −0 plugins/postcss-gradients-interpolation-method/CHANGELOG.md
  95. +2 −2 plugins/postcss-gradients-interpolation-method/package.json
  96. +6 −0 plugins/postcss-hwb-function/CHANGELOG.md
  97. +2 −2 plugins/postcss-hwb-function/package.json
  98. +6 −0 plugins/postcss-lab-function/CHANGELOG.md
  99. +2 −2 plugins/postcss-lab-function/package.json
  100. +24 −24 plugins/postcss-lab-function/test/basic.display-p3-false.expect.css
  101. +24 −24 plugins/postcss-lab-function/test/basic.display-p3-false.preserve-true.expect.css
  102. +29 −29 plugins/postcss-lab-function/test/basic.expect.css
  103. +29 −29 plugins/postcss-lab-function/test/basic.preserve-true.expect.css
  104. +29 −29 plugins/postcss-lab-function/test/basic.with-cloned-rules.expect.css
  105. +2 −2 plugins/postcss-lab-function/test/variables.display-p3-false.expect.css
  106. +2 −2 plugins/postcss-lab-function/test/variables.display-p3-false.preserve-true.expect.css
  107. +3 −3 plugins/postcss-lab-function/test/variables.expect.css
  108. +3 −3 plugins/postcss-lab-function/test/variables.preserve-true.expect.css
  109. +25 −0 plugins/postcss-nesting/CHANGELOG.md
  110. +1 −1 plugins/postcss-nesting/dist/index.cjs
  111. +1 −1 plugins/postcss-nesting/dist/index.mjs
  112. +1 −1 plugins/postcss-nesting/package.json
  113. +0 −8 plugins/postcss-nesting/src/editions/2024-02/lib/atrule-within-rule.ts
  114. +4 −4 plugins/postcss-nesting/test/media.edition-2024-02.expect.css
  115. +16 −8 plugins/postcss-nesting/test/spec-examples.css
  116. +25 −8 plugins/postcss-nesting/test/spec-examples.edition-2024-02.expect.css
  117. +19 −8 plugins/postcss-nesting/test/spec-examples.expect.css
  118. +19 −8 plugins/postcss-nesting/test/spec-examples.no-is-pseudo-selector.expect.css
  119. +6 −0 plugins/postcss-oklab-function/CHANGELOG.md
  120. +2 −2 plugins/postcss-oklab-function/package.json
  121. +8 −8 plugins/postcss-oklab-function/test/basic.expect.css
  122. +5 −5 plugins/postcss-oklab-function/test/basic.preserve-true.display-p3-false.expect.css
  123. +8 −8 plugins/postcss-oklab-function/test/basic.preserve-true.expect.css
  124. +6 −6 plugins/postcss-oklab-function/test/variables.expect.css
  125. +3 −3 plugins/postcss-oklab-function/test/variables.preserve-true.display-p3-false.expect.css
  126. +6 −6 plugins/postcss-oklab-function/test/variables.preserve-true.expect.css
  127. +6 −0 plugins/postcss-relative-color-syntax/CHANGELOG.md
  128. +2 −2 plugins/postcss-relative-color-syntax/package.json
  129. +10 −10 plugins/postcss-relative-color-syntax/test/basic.expect.css
  130. +10 −10 plugins/postcss-relative-color-syntax/test/basic.preserve-true.expect.css
  131. +6 −0 plugins/postcss-text-decoration-shorthand/CHANGELOG.md
  132. +2 −2 plugins/postcss-text-decoration-shorthand/package.json
  133. +3 −4 sites/postcss-preset-env/index.njk
  134. +2 −0 sites/postcss-preset-env/src/static/css/pages/_landing.css
  135. +1 −0 sites/postcss-preset-env/src/static/js/home/index.js
5 changes: 5 additions & 0 deletions .github/bin/license/check-license.mjs
Original file line number Diff line number Diff line change
@@ -62,6 +62,11 @@ const allFiles = (await getFiles('./')).filter((file) => {
continue;
}

if (line.startsWith(' * @license MIT')) {
// MIT license is ok
continue;
}

if (process.env.GITHUB_ACTIONS) {
logEntries.push(`::error file=${path.relative(process.env.GITHUB_WORKSPACE, path.join(file.split('/dist/')[0], 'package.json'))},line=1,col=1::Found an unexpected @license comment in a build artifact.`);
} else {
16 changes: 16 additions & 0 deletions cli/csstools-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,23 @@

### Unreleased (patch)

- Updated [`postcss-nesting`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting) to [`12.1.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting/CHANGELOG.md#1212) (patch)
- Updated [`@csstools/postcss-text-decoration-shorthand`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand) to [`3.0.6`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand/CHANGELOG.md#306) (patch)
- Updated [`@csstools/postcss-color-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function) to [`3.0.14`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function/CHANGELOG.md#3014) (patch)
- Updated [`@csstools/postcss-color-mix-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function) to [`2.0.14`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function/CHANGELOG.md#2014) (patch)
- Updated [`@csstools/postcss-gradients-interpolation-method`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method) to [`4.0.15`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method/CHANGELOG.md#4015) (patch)
- Updated [`@csstools/postcss-hwb-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function) to [`3.0.13`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function/CHANGELOG.md#3013) (patch)
- Updated [`@csstools/postcss-oklab-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function) to [`3.0.14`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function/CHANGELOG.md#3014) (patch)
- Updated [`@csstools/postcss-relative-color-syntax`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-relative-color-syntax) to [`2.0.14`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-relative-color-syntax/CHANGELOG.md#2014) (patch)
- Updated [`postcss-color-functional-notation`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation) to [`6.0.9`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation/CHANGELOG.md#609) (patch)
- Updated [`postcss-lab-function`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function) to [`6.0.14`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-function/CHANGELOG.md#6014) (patch)

### 3.0.15

_April 18, 2024_

- Updated [`css-blank-pseudo`](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo) to [`6.0.2`](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo/CHANGELOG.md#602) (patch)
- Updated [`postcss-preset-env`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env) to [`9.5.6`](https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env/CHANGELOG.md#956) (patch)

### 3.0.14

24 changes: 12 additions & 12 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.14",
"version": "3.0.15",
"contributors": [
{
"name": "Antonio Laguna",
@@ -39,12 +39,12 @@
],
"dependencies": {
"@csstools/postcss-cascade-layers": "^4.0.4",
"@csstools/postcss-color-function": "^3.0.13",
"@csstools/postcss-color-mix-function": "^2.0.13",
"@csstools/postcss-color-function": "^3.0.14",
"@csstools/postcss-color-mix-function": "^2.0.14",
"@csstools/postcss-exponential-functions": "^1.0.5",
"@csstools/postcss-font-format-keywords": "^3.0.2",
"@csstools/postcss-gradients-interpolation-method": "^4.0.14",
"@csstools/postcss-hwb-function": "^3.0.12",
"@csstools/postcss-gradients-interpolation-method": "^4.0.15",
"@csstools/postcss-hwb-function": "^3.0.13",
"@csstools/postcss-ic-unit": "^3.0.6",
"@csstools/postcss-is-pseudo-class": "^4.0.6",
"@csstools/postcss-light-dark-function": "^1.0.3",
@@ -55,19 +55,19 @@
"@csstools/postcss-media-queries-aspect-ratio-number-values": "^2.0.7",
"@csstools/postcss-nested-calc": "^3.0.2",
"@csstools/postcss-normalize-display-values": "^3.0.2",
"@csstools/postcss-oklab-function": "^3.0.13",
"@csstools/postcss-relative-color-syntax": "^2.0.13",
"@csstools/postcss-oklab-function": "^3.0.14",
"@csstools/postcss-relative-color-syntax": "^2.0.14",
"@csstools/postcss-scope-pseudo-class": "^3.0.1",
"@csstools/postcss-stepped-value-functions": "^3.0.6",
"@csstools/postcss-text-decoration-shorthand": "^3.0.5",
"@csstools/postcss-text-decoration-shorthand": "^3.0.6",
"@csstools/postcss-trigonometric-functions": "^3.0.6",
"@csstools/postcss-unset-value": "^3.0.1",
"css-blank-pseudo": "^6.0.2",
"css-has-pseudo": "^6.0.3",
"css-prefers-color-scheme": "^9.0.1",
"postcss": "^8.4.38",
"postcss-attribute-case-insensitive": "^6.0.3",
"postcss-color-functional-notation": "^6.0.8",
"postcss-color-functional-notation": "^6.0.9",
"postcss-color-hex-alpha": "^9.0.4",
"postcss-color-rebeccapurple": "^9.0.3",
"postcss-custom-media": "^10.0.4",
@@ -79,12 +79,12 @@
"postcss-focus-within": "^8.0.1",
"postcss-gap-properties": "^5.0.1",
"postcss-image-set-function": "^6.0.3",
"postcss-lab-function": "^6.0.13",
"postcss-lab-function": "^6.0.14",
"postcss-logical": "^7.0.1",
"postcss-nesting": "^12.1.1",
"postcss-nesting": "^12.1.2",
"postcss-overflow-shorthand": "^5.0.1",
"postcss-place": "^9.0.1",
"postcss-preset-env": "^9.5.5",
"postcss-preset-env": "^9.5.6",
"postcss-pseudo-class-any-link": "^9.0.1",
"postcss-selector-not": "^7.0.2"
},
Loading