diff --git a/CHANGELOG.md b/CHANGELOG.md index 607e1d0470..4acddbcd9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * If you have created a custom responder and/or failure app just to customize responses for better Hotwire/Turbo integration, they should no longer be necessary. * `:turbo_stream` is now treated as a navigational format, so it works like HTML navigation when using Turbo. Note: if you relied on `:turbo_stream` to be treated as a non-navigational format before, you can reconfigure your `navigational_formats` in the Devise initializer file to exclude it. * OmniAuth "Sign in with" links were changed to buttons that generate HTML forms with method=POST, instead of using link + method=POST that required rails/ujs to work. Since rails/ujs is no longer the default for new Rails apps, this allows the OmniAuth buttons to work in any scenario, with or without rails/ujs and/or Turbo. This only affects apps that are using the default `devise/shared/_links.html.erb` partial from Devise with OmniAuth enabled. + * Check [this upgrade guide](https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-[Hotwire-Turbo-integration]) for more detailed information. ### 4.8.1 - 2021-12-16 diff --git a/README.md b/README.md index b5076cb909..35f80995fa 100644 --- a/README.md +++ b/README.md @@ -493,7 +493,7 @@ Devise.setup do |config| end ``` -**Important**: these custom responses require the `responders` gem version to be `3.1.0` or higher, please make sure you update it if you're going to use this configuration. +**Important**: these custom responses require the `responders` gem version to be `3.1.0` or higher, please make sure you update it if you're going to use this configuration. Check [this upgrade guide](https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-[Hotwire-Turbo-integration]) for more info. _Note_: the above statuses configuration may become the default for Devise in a future release. diff --git a/devise.gemspec b/devise.gemspec index 78c0177aab..3efad0f4d6 100644 --- a/devise.gemspec +++ b/devise.gemspec @@ -32,4 +32,11 @@ Gem::Specification.new do |s| s.add_dependency("bcrypt", "~> 3.0") s.add_dependency("railties", ">= 4.1.0") s.add_dependency("responders") + + s.post_install_message = %q{ +[DEVISE] Please review the [changelog] and [upgrade guide] for more info on Hotwire / Turbo integration. + + [changelog] https://github.com/heartcombo/devise/blob/main/CHANGELOG.md + [upgrade guide] https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-%5BHotwire-Turbo-integration%5D + } end