Skip to content

Commit 15b4a8c

Browse files
authored
Use version range for PostCSS (tailwindlabs#20289)
This PR fixes an issue where new PostCSS release could lead to type related issues if newer versions change the types. Right now `@tailwindcss/postcss` uses a hardcoded PostCSS version. Let's loosen this up and use a semver range instead. Fixes: tailwindlabs#20288 ## Test plan 1. All tests still pass
1 parent c8b081d commit 15b4a8c

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- Extract class candidates from conditional Maud syntax like `p.text-black[condition]` ([#20269](https://github.com/tailwindlabs/tailwindcss/pull/20269))
2525
- Prevent `@position-try` rules from triggering unknown at-rule warnings when optimizing CSS ([#20277](https://github.com/tailwindlabs/tailwindcss/pull/20277))
2626
- Support class suggestions for named opacity modifiers from `--opacity` theme values ([#20287](https://github.com/tailwindlabs/tailwindcss/pull/20287))
27+
- Prevent type errors in `@tailwindcss/postcss` when used with newer PostCSS patch releases ([#20289](https://github.com/tailwindlabs/tailwindcss/pull/20289))
2728

2829
## [4.3.1] - 2026-06-12
2930

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ catalog:
2121
lightningcss-linux-x64-musl: 1.32.0
2222
lightningcss-win32-x64-msvc: 1.32.0
2323
lightningcss: 1.32.0
24-
postcss: 8.5.15
24+
postcss: ^8.5.15
2525
prettier: 3.8.3
2626
vite: 8.0.14
2727
webpack: 5.107.0

0 commit comments

Comments
 (0)