Update dependency activesupport to v8.0.3 (master)
This MR contains the following updates:
| Package | Update | Change |
|---|---|---|
| activesupport (source, changelog) | patch |
8.0.2 -> 8.0.3
|
⚠️ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
rails/rails (activesupport)
v8.0.3: 8.0.3
Active Support
-
ActiveSupport::FileUpdateCheckerdoes not depend onTime.nowto prevent unnecessary reloads with time travel test helpersJan Grodowski
-
Fix
ActiveSupport::BroadcastLoggerfrom executing a block argument for each logger (tagged, info, etc.).Jared Armstrong
-
Make
ActiveSupport::Logger#freeze-friendly.Joshua Young
-
Fix
ActiveSupport::HashWithIndifferentAccess#transform_keys!removing defaults.Hartley McGuire
-
Fix
ActiveSupport::HashWithIndifferentAccess#tranform_keys!to handle collisions.If the transformation would result in a key equal to another not yet transformed one, it would result in keys being lost.
Before:
>> {a: 1, b: 2}.with_indifferent_access.transform_keys!(&:succ) => {"c" => 1}After:
>> {a: 1, b: 2}.with_indifferent_access.transform_keys!(&:succ) => {"c" => 1, "d" => 2}Jason T Johnson, Jean Boussier
-
Fix
ActiveSupport::Cache::MemCacheStore#read_multito handle network errors.This method specifically wasn't handling network errors like other codepaths.
Alessandro Dal Grande
-
Fix configuring
RedisCacheStorewithraw: true.fatkodima
-
Fix
Enumerable#solefor infinite collections.fatkodima
Active Model
-
Fix
has_secure_passwordto perform confirmation validation of the password even when blank.The validation was incorrectly skipped when the password only contained whitespace characters.
Fabio Sangiovanni
Active Record
-
Fix query cache for pinned connections in multi threaded transactional tests
When a pinned connection is used across separate threads, they now use a separate cache store for each thread.
This improve accuracy of system tests, and any test using multiple threads.
Heinrich Lee Yu, Jean Boussier
-
Don't add
id_valueattribute alias when attribute/column with that name already exists.Rob Lewis
-
Fix false positive change detection involving STI and polymorphic has one relationships.
Polymorphic
has_onerelationships would always be considered changed when defined in a STI child class, causing nedless extra autosaves.David Fritsch
-
Skip calling
PG::Connection#cancelincancel_any_running_querywhen using libpq >= 18 with pg < 1.6.0, due to incompatibility. Rollback still runs, but may take longer.Yasuo Honda, Lars Kanis
-
Fix stale association detection for polymorphic
belongs_to.Florent Beaurain, Thomas Crambert
-
Fix removal of PostgreSQL version comments in
structure.sqlfor latest PostgreSQL versions which include\restrictBrendan Weibrecht
-
Allow setting
schema_formatin database configuration.primary: schema_format: rubyUseful in multi-database setups to have different formats per-database.
T S Vallender
-
Use ntuples to populate row_count instead of count for Postgres
Jonathan Calvert
-
Fix
#mergewith#oror#andand a mixture of attributes and SQL strings resulting in an incorrect query.base = Comment.joins(:post).where(user_id: 1).where("recent = 1") puts base.merge(base.where(draft: true).or(Post.where(archived: true))).to_sqlBefore:
SELECT "comments".* FROM "comments" INNER JOIN "posts" ON "posts"."id" = "comments"."post_id" WHERE (recent = 1) AND ( "comments"."user_id" = 1 AND (recent = 1) AND "comments"."draft" = 1 OR "posts"."archived" = 1 )After:
SELECT "comments".* FROM "comments" INNER JOIN "posts" ON "posts"."id" = "comments"."post_id" WHERE "comments"."user_id" = 1 AND (recent = 1) AND ( "comments"."user_id" = 1 AND (recent = 1) AND "comments"."draft" = 1 OR "posts"."archived" = 1 )Joshua Young
-
Fix inline
has_and_belongs_to_manyfixtures for tables with composite primary keys.fatkodima
-
Fix migration log message for down operations.
Bernardo Barreto
-
Prepend
extra_flagsin postgres'structure_loadWhen specifying
structure_load_flagswith a postgres adapter, the flags were appended to the default flags, instead of prepended. This caused issues with flags not being taken into account by postgres.Alice Loeser
-
Fix
annotatecomments to propagate toupdate_all/delete_all.fatkodima
-
Fix checking whether an unpersisted record is
include?d in a strictly loadedhas_and_belongs_to_manyassociation.Hartley McGuire
-
create_or_find_bywill now correctly rollback a transaction.When using
create_or_find_by, raising a ActiveRecord::Rollback error in aafter_savecallback had no effect, the transaction was committed and a record created.Edouard Chin
-
Gracefully handle
Timeout.timeoutfiring during connection configuration.Use of
Timeout.timeoutcould result in improperly initialized database connection.This could lead to a partially configured connection being used, resulting in various exceptions, the most common being with the PostgreSQLAdapter raising
undefined method 'key?' for nilorTypeError: wrong argument type nil (expected PG::TypeMap).Jean Boussier
-
Fix stale state for composite foreign keys in belongs_to associations.
Varun Sharma
Action View
-
Fix label with
foroption not getting prefixed by formnamespacevalueAbeid Ahmed, Hartley McGuire
-
Fix
javascript_include_tagtypeoption to accept either strings and symbols.javascript_include_tag "application", type: :module javascript_include_tag "application", type: "module"Previously, only the string value was recognized.
Jean Boussier
-
Fix
excerpthelper with non-whitespace separator.Jonathan Hefner
Action Pack
-
URL helpers for engines mounted at the application root handle
SCRIPT_NAMEcorrectly.Fixed an issue where
SCRIPT_NAMEis not applied to paths generated for routes in an engine mounted at "/".Mike Dalessio
-
Fix
Rails.application.reload_routes!from clearing almost all routes.When calling
Rails.application.reload_routes!inside a middleware of a Rake task, it was possible under certain conditions that all routes would be cleared. If ran inside a middleware, this would result in getting a 404 on most page you visit. This issue was only happening in development.Edouard Chin
-
Address
rack 3.2deprecations warnings.warning: Status code :unprocessable_entity is deprecated and will be removed in a future version of Rack. Please use :unprocessable_content instead.Rails API will transparently convert one into the other for the foreseeable future.
Earlopain, Jean Boussier
-
Support hash-source in Content Security Policy.
madogiwa
-
Always return empty body for HEAD requests in
PublicExceptionsandDebugExceptions.This is required by
Rack::Lint(per RFC9110).Hartley McGuire
Active Job
-
Include the actual Active Job locale when serializing rather than I18n locale.
Adrien S
-
Fix
retry_jobinstrumentation when using:testadapter for Active Job.fatkodima
Action Mailer
- No changes.
Action Cable
-
Fixed compatibility with
redisgem5.4.1Jean Boussier
-
Fixed a possible race condition in
stream_from.OuYangJinTing
Active Storage
-
Address deprecation of
Aws::S3::Object#upload_streaminActiveStorage::Service::S3Service.Joshua Young
-
Fix
config.active_storage.touch_attachment_recordsto work with eager loading.fatkodima
Action Mailbox
- No changes.
Action Text
-
Add rollup-plugin-terser as a dev dependency.
Édouard Chin
Railties
-
Fix
polymorphic_urlandpolymorphic_pathnot working when routes are not loaded.Édouard Chin
-
Fix Rails console to not override user defined IRB_NAME.
Only change the prompt name if it hasn't been customized in
.irbrc.Jarrett Lusso
Guides
- No changes.
v8.0.2.1: 8.0.2.1
Active Support
- No changes.
Active Model
- No changes.
Active Record
-
Call inspect on ids in RecordNotFound error
[CVE-2025-55193]
Gannon McGibbon, John Hawthorn
Action View
- No changes.
Action Pack
- No changes.
Active Job
- No changes.
Action Mailer
- No changes.
Action Cable
- No changes.
Active Storage
Remove dangerous transformations
[CVE-2025-24293]
*Zack Deveau*
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
- No changes.
Guides
- No changes.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.