Skip to content

Commit

Permalink
version bump to v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Feb 1, 2025
1 parent ecdbdee commit 3d87104
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
28 changes: 11 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
# `tailwindcss-rails` Changelog

## v4.0.0.rc5 / 2025-01-29

General changes since rc4:

- Update the rake tasks to detect an (optional) postcss file in the root directory, after moving the file in #466. #482 @EricGusmao
- Hide the gem's Rails generators in the `rails g --help` output. #483 @patriciomacadden


## v4.0.0.rc4 / 2025-01-27
## v4.0.0 / 2025-02-01

### Upgrade to Tailwind CSS v4

General changes:

- Dependency on `tailwindcss-ruby` set to `~> 4.0`.
- The dependency on `tailwindcss-ruby` is set to `~> 4.0`.
- The location of (optional) `postcss.config.js` has moved from the `config/` directory to the app root.
- 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.
- 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.
- The Inter font is no longer packaged with the gem.
- Updated README to contain verbose instructions on upgrading.
- Some Tailwind class names in the generated ERB templates are updated for v4.
- The README is updated to contain verbose instructions on upgrading.
- The gem's Rails generators are now hidden in the `rails g --help` output. #483 @patriciomacadden

Changes to the `tailwindcss:install` task:

- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`.
- The `tailwindcss:install` task no longer installs `config/tailwind.config.js`, as v4 recommends placing Tailwind configuration in the CSS file.
- The Inter font is no longer configured in the application layout.
- Some Tailwind class names in the ERB templates are updated for v4.
- 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.
- 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.

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion lib/tailwindcss/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Tailwindcss
VERSION = "4.0.0.rc5"
VERSION = "4.0.0"
end

0 comments on commit 3d87104

Please sign in to comment.