Skip to content

Commit 9466080

Browse files
committed
twir-2025-08-09
1 parent bf07fd3 commit 9466080

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: post
3+
title: "Support for rack.response_finished callbacks in executor"
4+
categories: news
5+
author: zzak
6+
og_image: assets/images/this-week-in-rails.png
7+
published: true
8+
date: 2025-08-09
9+
---
10+
11+
12+
Hi, it's [zzak](https://github.com/zzak). Let's explore this week's changes in the Rails codebase.
13+
14+
[Add support for "rack.response_finished" callbacks in Action Dispatch's Executor](https://github.com/rails/rails/pull/55425)
15+
The executor middleware now supports deferring completion callbacks to later in the request lifecycle by utilizing Rack's `rack.response_finished` mechanism, when available. This enables applications to define callbacks that may rely on state that would be cleaned up by the executor's completion callbacks.
16+
17+
[Enable configuring Action View's render tracker](https://github.com/rails/rails/pull/55194)
18+
You can opt-in to the new parser with `config.action_view.render_tracker = :ruby` or `load_defaults(8.1)`.
19+
This new render tracking implementation was added in Rails 7.2, the [RubyTracker](https://github.com/rails/rails/commit/d743a2b).
20+
21+
[Add credentials:fetch command](https://github.com/rails/rails/pull/53119)
22+
This new command allows fetching the value of a credential from the Kamal 2 credentials file.
23+
24+
```
25+
$ bin/rails credentials:fetch kamal_registry/password
26+
```
27+
28+
[Make Logger freeze-friendly](https://github.com/rails/rails/pull/55465)
29+
Previously, you would get a `FrozenError` when trying to use a logger you called `freeze` on.
30+
31+
[Stop trying to tidy bytes when escaping HTML](https://github.com/rails/rails/pull/55467)
32+
When using `ERB::Util.html_escape` we no longer try to handle invalid UTF-8 strings, since this is an issue for handling user-input, not escaping, we can optimize this method by not doing it.
33+
34+
_You can view the whole list of changes [here](https://github.com/rails/rails/compare/@%7B2025-08-02%7D...main@%7B2025-08-09%7D)._
35+
_We had [22 contributors](https://contributors.rubyonrails.org/contributors/in-time-window/20250802-20250809) to the Rails codebase this past week!_
36+
37+
Until next time!
38+
39+
_[Subscribe](https://world.hey.com/this.week.in.rails) to get these updates mailed to you._

0 commit comments

Comments
 (0)