forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
58 changed files
with
303 additions
and
6,449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.1.0.rc1 | ||
7.2.0.alpha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,2 @@ | ||
## Rails 7.1.0.rc1 (September 27, 2023) ## | ||
|
||
* No changes. | ||
|
||
|
||
## Rails 7.1.0.beta1 (September 13, 2023) ## | ||
|
||
* Add a `@server` instance variable referencing the `ActionCable.server` | ||
singleton to `ActionCable::Channel::ConnectionStub` | ||
|
||
This lets us delegate the `pubsub` and `config` method calls | ||
to the server. This fixes `NoMethodError` errors when testing | ||
channel logic that call `pubsub` (e.g. `stop_stream_for`). | ||
|
||
*Julian Foo* | ||
|
||
* Added `health_check_path` and `health_check_application` config to | ||
mount a given health check rack app on a given path. | ||
Useful when mounting Action Cable standalone. | ||
|
||
*Joé Dupuis* | ||
|
||
* Introduce the `capture_broadcasts` test helper. | ||
|
||
Returns all messages broadcast in a block. | ||
|
||
```ruby | ||
messages = capture_broadcasts("test") do | ||
ActionCable.server.broadcast "test", { message: "one" } | ||
ActionCable.server.broadcast "test", { message: "two" } | ||
end | ||
assert_equal 2, messages.length | ||
assert_equal({ "message" => "one" }, messages.first) | ||
assert_equal({ "message" => "two" }, messages.last) | ||
``` | ||
|
||
*Alex Ghiculescu* | ||
|
||
* Display broadcasted messages on error message when using `assert_broadcast_on` | ||
|
||
*Stéphane Robino* | ||
|
||
* The Action Cable client now supports subprotocols to allow passing arbitrary data | ||
to the server. | ||
|
||
```js | ||
const consumer = ActionCable.createConsumer() | ||
consumer.addSubProtocol('custom-protocol') | ||
consumer.connect() | ||
``` | ||
|
||
See also: | ||
|
||
* https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#subprotocols | ||
|
||
*Guillaume Hain* | ||
|
||
* Redis pub/sub adapter now automatically reconnects when Redis connection is lost. | ||
|
||
*Vladimir Dementyev* | ||
|
||
* The `connected()` callback can now take a `{reconnected}` parameter to differentiate | ||
connections from reconnections. | ||
|
||
```js | ||
import consumer from "./consumer" | ||
consumer.subscriptions.create("ExampleChannel", { | ||
connected({reconnected}) { | ||
if (reconnected) { | ||
... | ||
} else { | ||
... | ||
} | ||
} | ||
}) | ||
``` | ||
|
||
*Mansa Keïta* | ||
|
||
* The Redis adapter is now compatible with redis-rb 5.0 | ||
|
||
Compatibility with redis-rb 3.x was dropped. | ||
|
||
*Jean Boussier* | ||
|
||
* The Action Cable server is now mounted with `anchor: true`. | ||
|
||
This means that routes that also start with `/cable` will no longer clash with Action Cable. | ||
|
||
*Alex Ghiculescu* | ||
|
||
* `ActionCable.server.remote_connections.where(...).disconnect` now sends `disconnect` message | ||
before closing the connection with the reconnection strategy specified (defaults to `true`). | ||
|
||
*Vladimir Dementyev* | ||
|
||
* Added command callbacks to `ActionCable::Connection::Base`. | ||
|
||
Now you can define `before_command`, `after_command`, and `around_command` to be invoked before, after or around any command received by a client respectively. | ||
|
||
*Vladimir Dementyev* | ||
|
||
Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/actioncable/CHANGELOG.md) for previous changes. | ||
Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-stable/actioncable/CHANGELOG.md) for previous changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,2 @@ | ||
## Rails 7.1.0.rc1 (September 27, 2023) ## | ||
|
||
* No changes. | ||
|
||
|
||
## Rails 7.1.0.beta1 (September 13, 2023) ## | ||
|
||
* Added `bounce_now_with` to send the bounce email without going through a mailer queue. | ||
|
||
*Ronan Limon Duparcmeur* | ||
|
||
* Support configured primary key types in generated migrations. | ||
|
||
*Nishiki Liu* | ||
|
||
* Fixed ingress controllers' ability to accept emails that contain no UTF-8 encoded parts. | ||
|
||
Fixes #46297. | ||
|
||
*Jan Honza Sterba* | ||
|
||
* Add X-Forwarded-To addresses to recipients. | ||
|
||
*Andrew Stewart* | ||
|
||
Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/actionmailbox/CHANGELOG.md) for previous changes. | ||
Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-stable/actionmailbox/CHANGELOG.md) for previous changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.