rails/rails (@rails/ujs)
### [`v7.0.7`](https://togithub.com/rails/rails/releases/tag/v7.0.7): 7.0.7
[Compare Source](https://togithub.com/rails/rails/compare/v7.0.6...v7.0.7)
#### Active Support
- Fix `Cache::NullStore` with local caching for repeated reads.
*fatkodima*
- Fix `to_s` with no arguments not respecting custom `:default` formats
*Hartley McGuire*
- Fix `ActiveSupport::Inflector.humanize(nil)` raising ``NoMethodError: undefined method `end_with?' for nil:NilClass``.
*James Robinson*
- Fix `Enumerable#sum` for `Enumerator#lazy`.
*fatkodima*, *Matthew Draper*, *Jonathan Hefner*
- Improve error message when EventedFileUpdateChecker is used without a
compatible version of the Listen gem
*Hartley McGuire*
#### Active Model
- Error.full_message now strips ":base" from the message.
*zzak*
- Add a load hook for `ActiveModel::Model` (named `active_model`) to match the load hook for
`ActiveRecord::Base` and allow for overriding aspects of the `ActiveModel::Model` class.
#### Active Record
- Restores functionality to the missing method when using enums and fixes.
*paulreece*
- Fix `StatementCache::Substitute` with serialized type.
*ywenc*
- Fix `:db_runtime` on notification payload when application have multiple databases.
*Eileen M. Uchitelle*
- Correctly dump check constraints for MySQL 8.0.16+.
*Steve Hill*
- Fix `ActiveRecord::QueryMethods#in_order_of` to include `nil`s, to match the
behavior of `Enumerable#in_order_of`.
For example, `Post.in_order_of(:title, [nil, "foo"])` will now include posts
with `nil` titles, the same as `Post.all.to_a.in_order_of(:title, [nil, "foo"])`.
*fatkodima*
- Revert "Fix autosave associations with validations added on `:base` of the associated objects."
This change intended to remove the :base attribute from the message,
but broke many assumptions which key these errors were stored.
*zzak*
- Fix `#previously_new_record?` to return true for destroyed records.
Before, if a record was created and then destroyed, `#previously_new_record?` would return true.
Now, any UPDATE or DELETE to a record is considered a change, and will result in `#previously_new_record?`
returning false.
*Adrianna Chang*
- Revert breaking changes to `has_one` relationship deleting the old record before the new one is validated.
*zzak*
- Fix support for Active Record instances being uses in queries.
As of `7.0.5`, query arguments were deep duped to avoid mutations impacting
the query cache, but this had the adverse effect to clearing the primary key when
the query argument contained an `ActiveRecord::Base` instance.
This broke the `noticed` gem.
*Jean Boussier*
#### Action View
- Fix `render collection: @records, cache: true` to cache fragments as bare strings
Previously it would incorrectly cache them as Action View buffers.
*Jean Boussier*
- Don't double-encode nested `field_id` and `field_name` index values
Pass `index: @options` as a default keyword argument to `field_id` and
`field_name` view helper methods.
*Sean Doyle*
#### Action Pack
- No changes.
#### Active Job
- No changes.
#### Action Mailer
- No changes.
#### Action Cable
- No changes.
#### Active Storage
- No changes.
#### Action Mailbox
- No changes.
#### Action Text
- No changes.
#### Railties
- Update default scaffold templates to set 303 (See Other) as status code
on redirect for the update action for XHR requests other than GET or POST
to avoid issues (e.g browsers trying to follow the redirect using the
original request method resulting in double PATCH/PUT)
*Guillermo Iguaran*
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
7.0.6
->7.0.7
Release Notes
rails/rails (@rails/ujs)
### [`v7.0.7`](https://togithub.com/rails/rails/releases/tag/v7.0.7): 7.0.7 [Compare Source](https://togithub.com/rails/rails/compare/v7.0.6...v7.0.7) #### Active Support - Fix `Cache::NullStore` with local caching for repeated reads. *fatkodima* - Fix `to_s` with no arguments not respecting custom `:default` formats *Hartley McGuire* - Fix `ActiveSupport::Inflector.humanize(nil)` raising ``NoMethodError: undefined method `end_with?' for nil:NilClass``. *James Robinson* - Fix `Enumerable#sum` for `Enumerator#lazy`. *fatkodima*, *Matthew Draper*, *Jonathan Hefner* - Improve error message when EventedFileUpdateChecker is used without a compatible version of the Listen gem *Hartley McGuire* #### Active Model - Error.full_message now strips ":base" from the message. *zzak* - Add a load hook for `ActiveModel::Model` (named `active_model`) to match the load hook for `ActiveRecord::Base` and allow for overriding aspects of the `ActiveModel::Model` class. #### Active Record - Restores functionality to the missing method when using enums and fixes. *paulreece* - Fix `StatementCache::Substitute` with serialized type. *ywenc* - Fix `:db_runtime` on notification payload when application have multiple databases. *Eileen M. Uchitelle* - Correctly dump check constraints for MySQL 8.0.16+. *Steve Hill* - Fix `ActiveRecord::QueryMethods#in_order_of` to include `nil`s, to match the behavior of `Enumerable#in_order_of`. For example, `Post.in_order_of(:title, [nil, "foo"])` will now include posts with `nil` titles, the same as `Post.all.to_a.in_order_of(:title, [nil, "foo"])`. *fatkodima* - Revert "Fix autosave associations with validations added on `:base` of the associated objects." This change intended to remove the :base attribute from the message, but broke many assumptions which key these errors were stored. *zzak* - Fix `#previously_new_record?` to return true for destroyed records. Before, if a record was created and then destroyed, `#previously_new_record?` would return true. Now, any UPDATE or DELETE to a record is considered a change, and will result in `#previously_new_record?` returning false. *Adrianna Chang* - Revert breaking changes to `has_one` relationship deleting the old record before the new one is validated. *zzak* - Fix support for Active Record instances being uses in queries. As of `7.0.5`, query arguments were deep duped to avoid mutations impacting the query cache, but this had the adverse effect to clearing the primary key when the query argument contained an `ActiveRecord::Base` instance. This broke the `noticed` gem. *Jean Boussier* #### Action View - Fix `render collection: @records, cache: true` to cache fragments as bare strings Previously it would incorrectly cache them as Action View buffers. *Jean Boussier* - Don't double-encode nested `field_id` and `field_name` index values Pass `index: @options` as a default keyword argument to `field_id` and `field_name` view helper methods. *Sean Doyle* #### Action Pack - No changes. #### Active Job - No changes. #### Action Mailer - No changes. #### Action Cable - No changes. #### Active Storage - No changes. #### Action Mailbox - No changes. #### Action Text - No changes. #### Railties - Update default scaffold templates to set 303 (See Other) as status code on redirect for the update action for XHR requests other than GET or POST to avoid issues (e.g browsers trying to follow the redirect using the original request method resulting in double PATCH/PUT) *Guillermo Iguaran*Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.