Skip to content

Commit

Permalink
Pin exact versions of tailwindcss and @tailwindcss/* (#16623)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
RobinMalfait authored Feb 18, 2025
1 parent 1c905f2 commit f014108
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 42 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Ensure drop shadow utilities don't inherit unexpectedly ([#16471](https://github.com/tailwindlabs/tailwindcss/pull/16471))
- Export backwards compatible config and plugin types from `tailwindcss/plugin` ([#16505](https://github.com/tailwindlabs/tailwindcss/pull/16505))
- Ensure JavaScript plugins that emit nested rules referencing to the utility name work as expected ([#16539](https://github.com/tailwindlabs/tailwindcss/pull/16539))
- Pin exact versions of `tailwindcss` and `@tailwindcss/*` ([#16623](https://github.com/tailwindlabs/tailwindcss/pull/16623))
- Upgrade: Report errors when updating dependencies ([#16504](https://github.com/tailwindlabs/tailwindcss/pull/16504))
- Upgrade: Ensure a `darkMode` JS config setting with block syntax converts to use `@slot` ([#16507](https://github.com/tailwindlabs/tailwindcss/pull/16507))

Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"dependencies": {
"@parcel/watcher": "^2.5.1",
"@tailwindcss/node": "workspace:^",
"@tailwindcss/oxide": "workspace:^",
"@tailwindcss/node": "workspace:*",
"@tailwindcss/oxide": "workspace:*",
"enhanced-resolve": "^5.18.1",
"lightningcss": "catalog:",
"mri": "^1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-postcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"@tailwindcss/node": "workspace:^",
"@tailwindcss/oxide": "workspace:^",
"@tailwindcss/node": "workspace:*",
"@tailwindcss/oxide": "workspace:*",
"lightningcss": "catalog:",
"postcss": "^8.4.41",
"tailwindcss": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
],
"dependencies": {
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/cli": "workspace:^",
"@tailwindcss/cli": "workspace:*",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"detect-libc": "1.0.3",
"enhanced-resolve": "^5.18.1",
"tailwindcss": "workspace:^"
"tailwindcss": "workspace:*"
},
"__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.",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-upgrade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"access": "public"
},
"dependencies": {
"@tailwindcss/node": "workspace:^",
"@tailwindcss/oxide": "workspace:^",
"@tailwindcss/node": "workspace:*",
"@tailwindcss/oxide": "workspace:*",
"braces": "^3.0.3",
"dedent": "1.5.3",
"enhanced-resolve": "^5.18.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
}
},
"dependencies": {
"@tailwindcss/node": "workspace:^",
"@tailwindcss/oxide": "workspace:^",
"@tailwindcss/node": "workspace:*",
"@tailwindcss/oxide": "workspace:*",
"lightningcss": "catalog:",
"tailwindcss": "workspace:*"
},
Expand Down
48 changes: 16 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f014108

Please sign in to comment.