Skip to content

Commit f014108

Browse files
authored
Pin exact versions of tailwindcss and @tailwindcss/* (#16623)
This PR fixes an issue where installing a specific version of `@tailwindcss/postcss` and `tailwindcss` could still result in a version mismatch. This is because we were relying on `^4.0.6` for example instead of `4.0.6`. This PR now pins all these versions to prevent this: ``` ❯ pnpm why tailwindcss devDependencies: @tailwindcss/postcss 4.0.5 ├─┬ @tailwindcss/node 4.0.6 │ └── tailwindcss 4.0.6 └── tailwindcss 4.0.5 ```
1 parent 1c905f2 commit f014108

File tree

7 files changed

+27
-42
lines changed

7 files changed

+27
-42
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Ensure drop shadow utilities don't inherit unexpectedly ([#16471](https://github.com/tailwindlabs/tailwindcss/pull/16471))
2222
- Export backwards compatible config and plugin types from `tailwindcss/plugin` ([#16505](https://github.com/tailwindlabs/tailwindcss/pull/16505))
2323
- Ensure JavaScript plugins that emit nested rules referencing to the utility name work as expected ([#16539](https://github.com/tailwindlabs/tailwindcss/pull/16539))
24+
- Pin exact versions of `tailwindcss` and `@tailwindcss/*` ([#16623](https://github.com/tailwindlabs/tailwindcss/pull/16623))
2425
- Upgrade: Report errors when updating dependencies ([#16504](https://github.com/tailwindlabs/tailwindcss/pull/16504))
2526
- Upgrade: Ensure a `darkMode` JS config setting with block syntax converts to use `@slot` ([#16507](https://github.com/tailwindlabs/tailwindcss/pull/16507))
2627

packages/@tailwindcss-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
},
3131
"dependencies": {
3232
"@parcel/watcher": "^2.5.1",
33-
"@tailwindcss/node": "workspace:^",
34-
"@tailwindcss/oxide": "workspace:^",
33+
"@tailwindcss/node": "workspace:*",
34+
"@tailwindcss/oxide": "workspace:*",
3535
"enhanced-resolve": "^5.18.1",
3636
"lightningcss": "catalog:",
3737
"mri": "^1.2.0",

packages/@tailwindcss-postcss/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
},
3232
"dependencies": {
3333
"@alloc/quick-lru": "^5.2.0",
34-
"@tailwindcss/node": "workspace:^",
35-
"@tailwindcss/oxide": "workspace:^",
34+
"@tailwindcss/node": "workspace:*",
35+
"@tailwindcss/oxide": "workspace:*",
3636
"lightningcss": "catalog:",
3737
"postcss": "^8.4.41",
3838
"tailwindcss": "workspace:*"

packages/@tailwindcss-standalone/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
],
2727
"dependencies": {
2828
"@tailwindcss/aspect-ratio": "^0.4.2",
29-
"@tailwindcss/cli": "workspace:^",
29+
"@tailwindcss/cli": "workspace:*",
3030
"@tailwindcss/forms": "^0.5.10",
3131
"@tailwindcss/typography": "^0.5.16",
3232
"detect-libc": "1.0.3",
3333
"enhanced-resolve": "^5.18.1",
34-
"tailwindcss": "workspace:^"
34+
"tailwindcss": "workspace:*"
3535
},
3636
"__notes": "These binary packages must be included so Bun can build the CLI for all supported platforms. We also rely on Lightning CSS and Parcel being patched so Bun can statically analyze the executables.",
3737
"devDependencies": {

packages/@tailwindcss-upgrade/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"access": "public"
2828
},
2929
"dependencies": {
30-
"@tailwindcss/node": "workspace:^",
31-
"@tailwindcss/oxide": "workspace:^",
30+
"@tailwindcss/node": "workspace:*",
31+
"@tailwindcss/oxide": "workspace:*",
3232
"braces": "^3.0.3",
3333
"dedent": "1.5.3",
3434
"enhanced-resolve": "^5.18.1",

packages/@tailwindcss-vite/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
}
2929
},
3030
"dependencies": {
31-
"@tailwindcss/node": "workspace:^",
32-
"@tailwindcss/oxide": "workspace:^",
31+
"@tailwindcss/node": "workspace:*",
32+
"@tailwindcss/oxide": "workspace:*",
3333
"lightningcss": "catalog:",
3434
"tailwindcss": "workspace:*"
3535
},

pnpm-lock.yaml

Lines changed: 16 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)