未验证 提交 fa94115a 编写于 作者: A Alex Kitchens 提交者: Prathamesh Sonpatki

Merge pull request #36166 from alexcameron89/add_action_cable_rn

Add Action Cable Release Notes
上级 18e684b5
......@@ -151,25 +151,44 @@ Please refer to the [Changelog][action-cable] for detailed changes.
### Removals
* Replace `ActionCable.startDebugging()` and `ActionCable.stopDebugging()`
with `ActionCable.logger.enabled`.
([Pull Request](https://github.com/rails/rails/pull/34370))
### Deprecations
* There are no deprecations for Action Cable in Rails 6.0.
### Notable changes
* The ActionCable javascript package has been converted from CoffeeScript
to ES2015, and we now publish the source code in the npm distribution.
* Add support for the `channel_prefix` option for PostgreSQL subscription adapters
in `cable.yml`.
([Pull Request](https://github.com/rails/rails/pull/35276))
* Allow passing a custom configuration to `ActionCable::Server::Base`.
([Pull Request](https://github.com/rails/rails/pull/34714))
* Add `:action_cable_connection` and `:action_cable_channel` load hooks.
([Pull Request](https://github.com/rails/rails/pull/35094))
* Add `Channel::Base#broadcast_to` and `Channel::Base.broadcasting_for`.
([Pull Request](https://github.com/rails/rails/pull/35021))
This allows ActionCable users to depend on the javascript source code
rather than the compiled code, which can produce smaller javascript bundles.
* Close a connection when calling `reject_unauthorized_connection` from an
`ActionCable::Connection`.
([Pull Request](https://github.com/rails/rails/pull/34194))
This change includes some breaking changes to optional parts of the
ActionCable javascript API:
* Convert the Action Cable Javascript package from CoffeeScript to ES2015 and
publish the source code in the npm distribution.
([Pull Request](https://github.com/rails/rails/pull/34370))
- Configuration of the WebSocket adapter and logger adapter have been moved
from properties of `ActionCable` to properties of `ActionCable.adapters`.
* Move the configuration of the WebSocket adapter and logger adapter
from properties of `ActionCable` to `ActionCable.adapters`.
([Pull Request](https://github.com/rails/rails/pull/34370))
- The `ActionCable.startDebugging()` and `ActionCable.stopDebugging()`
methods have been removed and replaced with the property
`ActionCable.logger.enabled`.
* Add an `id` option to the Redis adapter to distinguish Action Cable's Redis
connections.
([Pull Request](https://github.com/rails/rails/pull/33798))
Action Pack
-----------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册