Skip to content

Commit bf59d36

Browse files
committed
Clean CHANGELOG for 8.0
1 parent dc96d29 commit bf59d36

File tree

12 files changed

+0
-1836
lines changed

12 files changed

+0
-1836
lines changed

actioncable/CHANGELOG.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
1-
* Record ping on every Action Cable message.
2-
3-
Previously only `ping` and `welcome` message types were keeping the connection active.
4-
Now every Action Cable message updates the `pingedAt` value, preventing the connection
5-
from being marked as stale.
6-
7-
*yauhenininjia*
8-
9-
* Add two new assertion methods for Action Cable test cases: `assert_has_no_stream`
10-
and `assert_has_no_stream_for`. These methods can be used to assert that a
11-
stream has been stopped, e.g. via `stop_stream` or `stop_stream_for`. They complement
12-
the already existing `assert_has_stream` and `assert_has_stream_for` methods.
13-
14-
```ruby
15-
assert_has_no_stream "messages"
16-
assert_has_no_stream_for User.find(42)
17-
```
18-
19-
*Sebastian Pöll*, *Junichi Sato*
201

212
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actioncable/CHANGELOG.md) for previous changes.

actionmailbox/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
* Fix all Action Mailbox database related models to respect
2-
`ActiveRecord::Base.table_name_prefix` configuration.
3-
4-
*Chedli Bourguiba*
51

62
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actionmailbox/CHANGELOG.md) for previous changes.

actionmailer/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
* Remove deprecated params via `:args` for `assert_enqueued_email_with`.
2-
3-
*Rafael Mendonça França*
4-
5-
* Remove deprecated `config.action_mailer.preview_path`.
6-
7-
*Rafael Mendonça França*
81

92
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actionmailer/CHANGELOG.md) for previous changes.

actionpack/CHANGELOG.md

Lines changed: 0 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,2 @@
1-
* Fix `Mime::Type.parse` handling type parameters for HTTP Accept headers.
2-
3-
*Taylor Chaparro*
4-
5-
* Fix the error page that is displayed when a view template is missing to account for nested controller paths in the
6-
suggested correct location for the missing template.
7-
8-
*Joshua Young*
9-
10-
* Add `save_and_open_page` helper to IntegrationTest
11-
`save_and_open_page` is a helpful helper to keep a short feedback loop when working on system tests.
12-
A similar helper with matching signature has been added to integration tests.
13-
14-
*Joé Dupuis*
15-
16-
* Fix a regression in 7.1.3 passing a `to:` option without a controller when the controller is already defined by a scope.
17-
18-
```ruby
19-
Rails.application.routes.draw do
20-
controller :home do
21-
get "recent", to: "recent_posts"
22-
end
23-
end
24-
```
25-
26-
*Étienne Barrié*
27-
28-
* Request Forgery takes relative paths into account.
29-
30-
*Stefan Wienert*
31-
32-
* Add ".test" as a default allowed host in development to ensure smooth golden-path setup with puma.dev.
33-
34-
*DHH*
35-
36-
* Add `allow_browser` to set minimum browser versions for the application.
37-
38-
A browser that's blocked will by default be served the file in `public/406-unsupported-browser.html` with a HTTP status code of "406 Not Acceptable".
39-
40-
```ruby
41-
class ApplicationController < ActionController::Base
42-
# Allow only browsers natively supporting webp images, web push, badges, import maps, CSS nesting + :has
43-
allow_browser versions: :modern
44-
end
45-
46-
class ApplicationController < ActionController::Base
47-
# All versions of Chrome and Opera will be allowed, but no versions of "internet explorer" (ie). Safari needs to be 16.4+ and Firefox 121+.
48-
allow_browser versions: { safari: 16.4, firefox: 121, ie: false }
49-
end
50-
51-
class MessagesController < ApplicationController
52-
# In addition to the browsers blocked by ApplicationController, also block Opera below 104 and Chrome below 119 for the show action.
53-
allow_browser versions: { opera: 104, chrome: 119 }, only: :show
54-
end
55-
```
56-
57-
*DHH*
58-
59-
* Add rate limiting API.
60-
61-
```ruby
62-
class SessionsController < ApplicationController
63-
rate_limit to: 10, within: 3.minutes, only: :create
64-
end
65-
66-
class SignupsController < ApplicationController
67-
rate_limit to: 1000, within: 10.seconds,
68-
by: -> { request.domain }, with: -> { redirect_to busy_controller_url, alert: "Too many signups!" }, only: :new
69-
end
70-
```
71-
72-
*DHH*, *Jean Boussier*
73-
74-
* Add `image/svg+xml` to the compressible content types of ActionDispatch::Static
75-
76-
*Georg Ledermann*
77-
78-
* Add instrumentation for ActionController::Live#send_stream
79-
80-
Allows subscribing to `send_stream` events. The event payload contains the filename, disposition, and type.
81-
82-
*Hannah Ramadan*
83-
84-
* Add support for `with_routing` test helper in `ActionDispatch::IntegrationTest`
85-
86-
*Gannon McGibbon*
87-
88-
* Remove deprecated support to set `Rails.application.config.action_dispatch.show_exceptions` to `true` and `false`.
89-
90-
*Rafael Mendonça França*
91-
92-
* Remove deprecated `speaker`, `vibrate`, and `vr` permissions policy directives.
93-
94-
*Rafael Mendonça França*
95-
96-
* Remove deprecated `Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type`.
97-
98-
*Rafael Mendonça França*
99-
100-
* Deprecate `Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality`.
101-
102-
*Rafael Mendonça França*
103-
104-
* Remove deprecated comparison between `ActionController::Parameters` and `Hash`.
105-
106-
*Rafael Mendonça França*
107-
108-
* Remove deprecated constant `AbstractController::Helpers::MissingHelperError`.
109-
110-
*Rafael Mendonça França*
111-
112-
* Fix a race condition that could cause a `Text file busy - chromedriver`
113-
error with parallel system tests
114-
115-
*Matt Brictson*
116-
117-
* Add `racc` as a dependency since it will become a bundled gem in Ruby 3.4.0
118-
119-
*Hartley McGuire*
120-
* Remove deprecated constant `ActionDispatch::IllegalStateError`.
121-
122-
*Rafael Mendonça França*
123-
124-
* Add parameter filter capability for redirect locations.
125-
126-
It uses the `config.filter_parameters` to match what needs to be filtered.
127-
The result would be like this:
128-
129-
Redirected to http://secret.foo.bar?username=roque&password=[FILTERED]
130-
131-
Fixes #14055.
132-
133-
*Roque Pinel*, *Trevor Turk*, *tonytonyjan*
1341

1352
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actionpack/CHANGELOG.md) for previous changes.

actiontext/CHANGELOG.md

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,2 @@
1-
* Use `includes` instead of `eager_load` for `with_all_rich_text`.
2-
3-
*Petrik de Heus*
4-
5-
* Delegate `ActionText::Content#deconstruct` to `Nokogiri::XML::DocumentFragment#elements`
6-
7-
```ruby
8-
content = ActionText::Content.new <<~HTML
9-
<h1>Hello, world</h1>
10-
11-
<div>The body</div>
12-
HTML
13-
14-
content => [h1, div]
15-
16-
assert_pattern { h1 => { content: "Hello, world" } }
17-
assert_pattern { div => { content: "The body" } }
18-
```
19-
20-
*Sean Doyle*
21-
22-
* Fix all Action Text database related models to respect
23-
`ActiveRecord::Base.table_name_prefix` configuration.
24-
25-
*Chedli Bourguiba*
26-
27-
* Compile ESM package that can be used directly in the browser as actiontext.esm.js
28-
29-
*Matias Grunberg*
30-
31-
* Fix using actiontext.js with Sprockets
32-
33-
*Matias Grunberg*
34-
35-
* Upgrade Trix to 2.0.7
36-
37-
*Hartley McGuire*
38-
39-
* Fix using Trix with Sprockets
40-
41-
*Hartley McGuire*
421

432
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actiontext/CHANGELOG.md) for previous changes.

actionview/CHANGELOG.md

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,2 @@
1-
* Add queries count to template rendering instrumentation
2-
3-
```
4-
# Before
5-
Completed 200 OK in 3804ms (Views: 41.0ms | ActiveRecord: 33.5ms | Allocations: 112788)
6-
7-
# After
8-
Completed 200 OK in 3804ms (Views: 41.0ms | ActiveRecord: 33.5ms (2 queries, 1 cached) | Allocations: 112788)
9-
```
10-
11-
*fatkodima*
12-
13-
* Raise `ArgumentError` if `:renderable` object does not respond to `#render_in`
14-
15-
*Sean Doyle*
16-
17-
* Add the `nonce: true` option for `stylesheet_link_tag` helper to support automatic nonce generation for Content Security Policy.
18-
Works the same way as `javascript_include_tag nonce: true` does.
19-
20-
*Akhil G Krishnan*, *AJ Esler*
21-
22-
* Parse `ActionView::TestCase#rendered` HTML content as `Nokogiri::XML::DocumentFragment` instead of `Nokogiri::XML::Document`
23-
24-
*Sean Doyle*
25-
26-
* Rename `ActionView::TestCase::Behavior::Content` to `ActionView::TestCase::Behavior::RenderedViewContent`
27-
28-
Make `RenderedViewContent` inherit from `String`. Make private API with `:nodoc:`
29-
30-
*Sean Doyle*
31-
32-
* Deprecate passing `nil` as value for the `model:` argument to the `form_with` method.
33-
34-
*Collin Jilbert*
35-
36-
* Alias `field_set_tag` helper to `fieldset_tag` to match `<fieldset>` element
37-
38-
*Sean Doyle*
39-
40-
* Deprecate passing content to void elements when using `tag.br` type tag builders.
41-
42-
*Hartley McGuire*
43-
44-
* Fix the `number_to_human_size` view helper to correctly work with negative numbers.
45-
46-
*Earlopain*
47-
48-
* Automatically discard the implicit locals injected by collection rendering for template that can't accept them
49-
50-
When rendering a collection, two implicit variables are injected, which breaks templates with strict locals.
51-
52-
Now they are only passed if the template will actually accept them.
53-
54-
*Yasha Krasnou*, *Jean Boussier*
55-
56-
* Fix `@rails/ujs` calling `start()` an extra time when using bundlers
57-
58-
*Hartley McGuire*, *Ryunosuke Sato*
59-
60-
* Fix the `capture` view helper compatibility with HAML and Slim
61-
62-
When a blank string was captured in HAML or Slim (and possibly other template engines)
63-
it would instead return the entire buffer.
64-
65-
*Jean Boussier*
66-
67-
* Updated `@rails/ujs` files to ignore certain data-* attributes when element is contenteditable.
68-
69-
This fix was already landed in >= 7.0.4.3, < 7.1.0.
70-
[[CVE-2023-23913](https://github.com/advisories/GHSA-xp5h-f8jf-rc8q)]
71-
72-
*Ryunosuke Sato*
73-
74-
* Added validation for HTML tag names in the `tag` and `content_tag` helper method. The `tag` and
75-
`content_tag` method now checks that the provided tag name adheres to the HTML specification. If
76-
an invalid HTML tag name is provided, the method raises an `ArgumentError` with an appropriate error
77-
message.
78-
79-
Examples:
80-
81-
```ruby
82-
# Raises ArgumentError: Invalid HTML5 tag name: 12p
83-
content_tag("12p") # Starting with a number
84-
85-
# Raises ArgumentError: Invalid HTML5 tag name: ""
86-
content_tag("") # Empty tag name
87-
88-
# Raises ArgumentError: Invalid HTML5 tag name: div/
89-
tag("div/") # Contains a solidus
90-
91-
# Raises ArgumentError: Invalid HTML5 tag name: "image file"
92-
tag("image file") # Contains a space
93-
```
94-
95-
*Akhil G Krishnan*
961

972
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actionview/CHANGELOG.md) for previous changes.

activejob/CHANGELOG.md

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,2 @@
1-
* All tests now respect the `active_job.queue_adapter` config
2-
3-
Previously if you had set `config.active_job.queue_adapter` in your `config/application.rb`
4-
or `config/environments/test.rb` file, the adapter you selected was previously not used consistently
5-
across all tests. In some tests your adapter would be used, but other tests would use the `TestAdapter`.
6-
7-
In Rails 7.2, all tests will respect the `queue_adapter` config if provided. If no config is provided,
8-
the `TestAdapter` will continue to be used.
9-
10-
See [#48585](https://github.com/rails/rails/pull/48585) for more details.
11-
12-
*Alex Ghiculescu*
13-
14-
* Make Active Job transaction aware when used conjointly with Active Record.
15-
16-
A common mistake with Active Job is to enqueue jobs from inside a transaction,
17-
causing them to potentially be picked and ran by another process, before the
18-
transaction is committed, which may result in various errors.
19-
20-
```ruby
21-
Topic.transaction do
22-
topic = Topic.create(...)
23-
NewTopicNotificationJob.perform_later(topic)
24-
end
25-
```
26-
27-
Now Active Job will automatically defer the enqueuing to after the transaction is committed,
28-
and drop the job if the transaction is rolled back.
29-
30-
Various queue implementations can choose to disable this behavior, and users can disable it,
31-
or force it on a per job basis:
32-
33-
```ruby
34-
class NewTopicNotificationJob < ApplicationJob
35-
self.enqueue_after_transaction_commit = :never # or `:always` or `:default`
36-
end
37-
```
38-
39-
*Jean Boussier*, *Cristian Bica*
40-
41-
* Do not trigger immediate loading of `ActiveJob::Base` when loading `ActiveJob::TestHelper`.
42-
43-
*Maxime Réty*
44-
45-
* Preserve the serialized timezone when deserializing `ActiveSupport::TimeWithZone` arguments.
46-
47-
*Joshua Young*
48-
49-
* Remove deprecated `:exponentially_longer` value for the `:wait` in `retry_on`.
50-
51-
*Rafael Mendonça França*
52-
53-
* Remove deprecated support to set numeric values to `scheduled_at` attribute.
54-
55-
*Rafael Mendonça França*
56-
57-
* Deprecate `Rails.application.config.active_job.use_big_decimal_serialize`.
58-
59-
*Rafael Mendonça França*
60-
61-
* Remove deprecated primitive serializer for `BigDecimal` arguments.
62-
63-
*Rafael Mendonça França*
641

652
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/activejob/CHANGELOG.md) for previous changes.

0 commit comments

Comments
 (0)