Generally followed the pattern for https://github.com/rails/rails/pull/32034 * Removes needless CI configs for 2.4 * Targets 2.5 in rubocop * Updates existing CHANGELOG entries for fewer merge conflicts * Removes Hash#slice extension as that's inlined on Ruby 2.5. * Removes the need for send on define_method in MethodCallAssertions.
2.4 KiB
-
The JavaScript WebSocket client will no longer try to reconnect when you call
reject_unauthorized_connection
on the connection.Mick Staugaard
-
ActionCable.Connection#getState
now references the configurableActionCable.adapters.WebSocket
property rather than theWebSocket
global variable, matching the behavior ofActionCable.Connection#open
.Richard Macklin
-
The ActionCable javascript package has been converted from CoffeeScript to ES2015, and we now publish the source code in the npm distribution.
This allows ActionCable users to depend on the javascript source code rather than the compiled code, which can produce smaller javascript bundles.
This change includes some breaking changes to optional parts of the ActionCable javascript API:
-
Configuration of the WebSocket adapter and logger adapter have been moved from properties of
ActionCable
to properties ofActionCable.adapters
. If you are currently configuring these adapters you will need to make these changes when upgrading:- ActionCable.WebSocket = MyWebSocket + ActionCable.adapters.WebSocket = MyWebSocket
- ActionCable.logger = myLogger + ActionCable.adapters.logger = myLogger
-
The
ActionCable.startDebugging()
andActionCable.stopDebugging()
methods have been removed and replaced with the propertyActionCable.logger.enabled
. If you are currently using these methods you will need to make these changes when upgrading:- ActionCable.startDebugging() + ActionCable.logger.enabled = true
- ActionCable.stopDebugging() + ActionCable.logger.enabled = false
Richard Macklin
-
-
Add
id
option to redis adapter so now you can distinguish ActionCable's redis connections among others. Also, you can set custom id in options.Before:
$ redis-cli client list id=669 addr=127.0.0.1:46442 fd=8 name= age=18 ...
After:
$ redis-cli client list id=673 addr=127.0.0.1:46516 fd=8 name=ActionCable-PID-19413 age=2 ...
Ilia Kasianenko
-
Rails 6 requires Ruby 2.5.0 or newer.
Jeremy Daer, Kasper Timm Hansen
Please check 5-2-stable for previous changes.