Skip to content

Commit 3d87104

Browse files
committed
version bump to v4.0.0
1 parent ecdbdee commit 3d87104

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

CHANGELOG.md

+11-17
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
11
# `tailwindcss-rails` Changelog
22

3-
## v4.0.0.rc5 / 2025-01-29
4-
5-
General changes since rc4:
6-
7-
- Update the rake tasks to detect an (optional) postcss file in the root directory, after moving the file in #466. #482 @EricGusmao
8-
- Hide the gem's Rails generators in the `rails g --help` output. #483 @patriciomacadden
9-
10-
11-
## v4.0.0.rc4 / 2025-01-27
3+
## v4.0.0 / 2025-02-01
124

135
### Upgrade to Tailwind CSS v4
146

157
General changes:
168

17-
- Dependency on `tailwindcss-ruby` set to `~> 4.0`.
9+
- The dependency on `tailwindcss-ruby` is set to `~> 4.0`.
1810
- The location of (optional) `postcss.config.js` has moved from the `config/` directory to the app root.
19-
- The input file `app/assets/tailwind/application.tailwind.css` has been renamed to `app/assets/tailwind/application.css`. If Propshaft is being used, `app/assets/tailwind` will be excluded from its asset handling.
11+
- The input file `app/assets/tailwind/application.tailwind.css` has been renamed to `app/assets/tailwind/application.css`.
12+
- If Propshaft is being used, `app/assets/tailwind` will be excluded from its asset handling.
2013
- The Inter font is no longer packaged with the gem.
21-
- Updated README to contain verbose instructions on upgrading.
14+
- Some Tailwind class names in the generated ERB templates are updated for v4.
15+
- The README is updated to contain verbose instructions on upgrading.
16+
- The gem's Rails generators are now hidden in the `rails g --help` output. #483 @patriciomacadden
2217

2318
Changes to the `tailwindcss:install` task:
2419

25-
- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`.
20+
- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`, as v4 recommends placing Tailwind configuration in the CSS file.
2621
- The Inter font is no longer configured in the application layout.
27-
- Some Tailwind class names in the ERB templates are updated for v4.
28-
- The "tailwind" stylesheet link tag will only be added to the application layout if Propshaft isn't in use and already handling `app/assets/build/tailwind.css`. Previously it was always injected, resulting in the tag being rendered twice if Propshaft was in use.
22+
- The "tailwind" stylesheet link tag will only be added to the application layout if Propshaft isn't in use and therefore already handling `app/assets/build/tailwind.css`. Previously it was always injected, resulting in the tag being rendered twice if Propshaft was in use.
2923

3024
New task `tailwindcss:upgrade` upgrades many apps cleanly:
3125

32-
- Cleans up some things in the generated `config/tailwind.config.js`.
26+
- Cleans up `config/tailwind.config.js` and references it from the CSS file as recommended for v4 upgrades.
3327
- Runs the upstream upgrader (note: requires `npx` to run the one-time upgrade, but highly recommended).
3428
- Removes configuration for the Inter font from the application layout.
3529
- If present, moves `config/postcss.config.js` to the root directory.
3630
- The "tailwind" stylesheet link tag will be removed if Propshaft is in use and already handling `app/assets/build/tailwind.css`.
37-
- The input file `application.tailwind.css` will be moved from `app/assets/stylesheets` to `app/assets/tailwind`.
31+
- The input file `app/assets/tailwind/application.tailwind.css` will be moved to `app/assets/tailwind/application.css`.
3832

3933
Thanks to @EricGusmao, @patriciomacadden, @excid3, and @brunoprietog for their feedback, contributions, and advice on v4 support.
4034

lib/tailwindcss/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Tailwindcss
2-
VERSION = "4.0.0.rc5"
2+
VERSION = "4.0.0"
33
end

0 commit comments

Comments
 (0)