Skip to content

Commit

Permalink
Bump to 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bknoles committed Jun 19, 2024
1 parent b26f141 commit 6e0fc5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.2.0] - 2024-06-19

* Refactor the internals of shared Inertia data to use controller instance variables instead of module level variables that run a higher risk of being leaked between requests. Big thanks to @ledermann for the initial work many years ago and to @PedroAugustoRamalhoDuarte for finishing it up!
* Change the Inertia response to set the `Vary` header to `X-Inertia` instead of `Accept`, Thanks @osbre!
* Always set the `XSRF-TOKEN` in an `after_action` request instead of only on non-Inertia requests. This fixes a bug where logging out (and resetting the session) via Inertia would create a CSRF token mismatch on a subsequent Inertia request (until you manually hard refreshed the page). Thanks @jordanhiltunen!

## [3.1.4] - 2024-04-28

* Reset Inertia shared data after each RSpec example where `inertia: true` is used. Thanks @coreyaus!
Expand Down
2 changes: 1 addition & 1 deletion lib/inertia_rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module InertiaRails
VERSION = "3.1.4"
VERSION = "3.2.0"
end

0 comments on commit 6e0fc5a

Please sign in to comment.