@rails/actioncable 6.0.3 → 6.0.4-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/CHANGELOG.md +0 -194
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/actioncable",
3
- "version": "6.0.3",
3
+ "version": "6.0.4-4",
4
4
  "description": "WebSocket framework for Ruby on Rails.",
5
5
  "main": "app/assets/javascripts/action_cable.js",
6
6
  "files": [
package/CHANGELOG.md DELETED
@@ -1,194 +0,0 @@
1
- ## Rails 6.0.3 (May 06, 2020) ##
2
-
3
- * No changes.
4
-
5
-
6
- ## Rails 6.0.2.2 (March 19, 2020) ##
7
-
8
- * No changes.
9
-
10
-
11
- ## Rails 6.0.2.1 (December 18, 2019) ##
12
-
13
- * No changes.
14
-
15
-
16
- ## Rails 6.0.2 (December 13, 2019) ##
17
-
18
- * No changes.
19
-
20
-
21
- ## Rails 6.0.1 (November 5, 2019) ##
22
-
23
- * No changes.
24
-
25
-
26
- ## Rails 6.0.0 (August 16, 2019) ##
27
-
28
- * No changes.
29
-
30
-
31
- ## Rails 6.0.0.rc2 (July 22, 2019) ##
32
-
33
- * No changes.
34
-
35
-
36
- ## Rails 6.0.0.rc1 (April 24, 2019) ##
37
-
38
- * No changes.
39
-
40
-
41
- ## Rails 6.0.0.beta3 (March 11, 2019) ##
42
-
43
- * No changes.
44
-
45
-
46
- ## Rails 6.0.0.beta2 (February 25, 2019) ##
47
-
48
- * PostgreSQL subscription adapters now support `channel_prefix` option in cable.yml
49
-
50
- Avoids channel name collisions when multiple apps use the same database for Action Cable.
51
-
52
- *Vladimir Dementyev*
53
-
54
- * Allow passing custom configuration to `ActionCable::Server::Base`.
55
-
56
- You can now create a standalone Action Cable server with a custom configuration
57
- (e.g. to run it in isolation from the default one):
58
-
59
- ```ruby
60
- config = ActionCable::Server::Configuration.new
61
- config.cable = { adapter: "redis", channel_prefix: "custom_" }
62
-
63
- CUSTOM_CABLE = ActionCable::Server::Base.new(config: config)
64
- ```
65
-
66
- Then you can mount it in the `routes.rb` file:
67
-
68
- ```ruby
69
- Rails.application.routes.draw do
70
- mount CUSTOM_CABLE => "/custom_cable"
71
- # ...
72
- end
73
- ```
74
-
75
- *Vladimir Dementyev*
76
-
77
- * Add `:action_cable_connection` and `:action_cable_channel` load hooks.
78
-
79
- You can use them to extend `ActionCable::Connection::Base` and `ActionCable::Channel::Base`
80
- functionality:
81
-
82
- ```ruby
83
- ActiveSupport.on_load(:action_cable_channel) do
84
- # do something in the context of ActionCable::Channel::Base
85
- end
86
- ```
87
-
88
- *Vladimir Dementyev*
89
-
90
- * Add `Channel::Base#broadcast_to`.
91
-
92
- You can now call `broadcast_to` within a channel action, which equals to
93
- the `self.class.broadcast_to`.
94
-
95
- *Vladimir Dementyev*
96
-
97
- * Make `Channel::Base.broadcasting_for` a public API.
98
-
99
- You can use `.broadcasting_for` to generate a unique stream identifier within
100
- a channel for the specified target (e.g. Active Record model):
101
-
102
- ```ruby
103
- ChatChannel.broadcasting_for(model) # => "chat:<model.to_gid_param>"
104
- ```
105
-
106
- *Vladimir Dementyev*
107
-
108
-
109
- ## Rails 6.0.0.beta1 (January 18, 2019) ##
110
-
111
- * [Rename npm package](https://github.com/rails/rails/pull/34905) from
112
- [`actioncable`](https://www.npmjs.com/package/actioncable) to
113
- [`@rails/actioncable`](https://www.npmjs.com/package/@rails/actioncable).
114
-
115
- *Javan Makhmali*
116
-
117
- * Merge [`action-cable-testing`](https://github.com/palkan/action-cable-testing) to Rails.
118
-
119
- *Vladimir Dementyev*
120
-
121
- * The JavaScript WebSocket client will no longer try to reconnect
122
- when you call `reject_unauthorized_connection` on the connection.
123
-
124
- *Mick Staugaard*
125
-
126
- * `ActionCable.Connection#getState` now references the configurable
127
- `ActionCable.adapters.WebSocket` property rather than the `WebSocket` global
128
- variable, matching the behavior of `ActionCable.Connection#open`.
129
-
130
- *Richard Macklin*
131
-
132
- * The ActionCable javascript package has been converted from CoffeeScript
133
- to ES2015, and we now publish the source code in the npm distribution.
134
-
135
- This allows ActionCable users to depend on the javascript source code
136
- rather than the compiled code, which can produce smaller javascript bundles.
137
-
138
- This change includes some breaking changes to optional parts of the
139
- ActionCable javascript API:
140
-
141
- - Configuration of the WebSocket adapter and logger adapter have been moved
142
- from properties of `ActionCable` to properties of `ActionCable.adapters`.
143
- If you are currently configuring these adapters you will need to make
144
- these changes when upgrading:
145
-
146
- ```diff
147
- - ActionCable.WebSocket = MyWebSocket
148
- + ActionCable.adapters.WebSocket = MyWebSocket
149
- ```
150
- ```diff
151
- - ActionCable.logger = myLogger
152
- + ActionCable.adapters.logger = myLogger
153
- ```
154
-
155
- - The `ActionCable.startDebugging()` and `ActionCable.stopDebugging()`
156
- methods have been removed and replaced with the property
157
- `ActionCable.logger.enabled`. If you are currently using these methods you
158
- will need to make these changes when upgrading:
159
-
160
- ```diff
161
- - ActionCable.startDebugging()
162
- + ActionCable.logger.enabled = true
163
- ```
164
- ```diff
165
- - ActionCable.stopDebugging()
166
- + ActionCable.logger.enabled = false
167
- ```
168
-
169
- *Richard Macklin*
170
-
171
- * Add `id` option to redis adapter so now you can distinguish
172
- ActionCable's redis connections among others. Also, you can set
173
- custom id in options.
174
-
175
- Before:
176
- ```
177
- $ redis-cli client list
178
- id=669 addr=127.0.0.1:46442 fd=8 name= age=18 ...
179
- ```
180
-
181
- After:
182
- ```
183
- $ redis-cli client list
184
- id=673 addr=127.0.0.1:46516 fd=8 name=ActionCable-PID-19413 age=2 ...
185
- ```
186
-
187
- *Ilia Kasianenko*
188
-
189
- * Rails 6 requires Ruby 2.5.0 or newer.
190
-
191
- *Jeremy Daer*, *Kasper Timm Hansen*
192
-
193
-
194
- Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actioncable/CHANGELOG.md) for previous changes.