actioncable 6.1.7.8 → 7.0.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +78 -69
- data/README.md +1 -1
- data/app/assets/javascripts/action_cable.js +211 -295
- data/app/assets/javascripts/actioncable.esm.js +491 -0
- data/app/assets/javascripts/actioncable.js +489 -0
- data/lib/action_cable/channel/base.rb +1 -1
- data/lib/action_cable/channel/broadcasting.rb +1 -1
- data/lib/action_cable/channel/naming.rb +1 -1
- data/lib/action_cable/channel/streams.rb +5 -7
- data/lib/action_cable/channel/test_case.rb +16 -1
- data/lib/action_cable/connection/base.rb +5 -5
- data/lib/action_cable/connection/identification.rb +1 -1
- data/lib/action_cable/connection/subscriptions.rb +1 -1
- data/lib/action_cable/connection/tagged_logger_proxy.rb +3 -3
- data/lib/action_cable/connection/test_case.rb +1 -1
- data/lib/action_cable/engine.rb +10 -1
- data/lib/action_cable/gem_version.rb +5 -5
- data/lib/action_cable/helpers/action_cable_helper.rb +3 -2
- data/lib/action_cable/server/configuration.rb +1 -0
- data/lib/action_cable/server/worker/active_record_connection_management.rb +2 -2
- data/lib/action_cable/server/worker.rb +3 -4
- data/lib/action_cable/subscription_adapter/postgresql.rb +2 -2
- data/lib/action_cable/subscription_adapter/redis.rb +98 -22
- data/lib/action_cable/subscription_adapter/test.rb +1 -1
- data/lib/action_cable/test_helper.rb +2 -2
- data/lib/action_cable/version.rb +1 -1
- data/lib/rails/generators/channel/USAGE +1 -1
- data/lib/rails/generators/channel/channel_generator.rb +79 -20
- data/lib/rails/generators/channel/templates/javascript/index.js.tt +1 -5
- metadata +13 -11
- /data/lib/rails/generators/channel/templates/application_cable/{channel.rb.tt → channel.rb} +0 -0
- /data/lib/rails/generators/channel/templates/application_cable/{connection.rb.tt → connection.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 628ed5f32ba25ffd8af55381b7f6e2da738e2c858859de0bf6c90571450c2e34
|
|
4
|
+
data.tar.gz: d1c1215140b31a12f7b7a60550a87646ee216a46c83ad01376ece3c31d1877af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 053fb484287d6aa12426d34c8885ff23fcbe559ac559bf610713bed175c61976ee345e5df3e5bf1ca02d62c487bf40ae26626a10d2c7d1a5c42a5eeed5c56aec
|
|
7
|
+
data.tar.gz: eac6757ed3c340311f712cfd29ea3448f666d43335c682fd83846f6244422083ca67b12b8b6ceb86c3d77bf9ca7fedc3747f655ca066388c4c59a7d79538c67c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,190 +1,199 @@
|
|
|
1
|
-
## Rails
|
|
1
|
+
## Rails 7.0.8.4 (June 04, 2024) ##
|
|
2
2
|
|
|
3
3
|
* No changes.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
## Rails
|
|
6
|
+
## Rails 7.0.8.3 (May 17, 2024) ##
|
|
7
7
|
|
|
8
8
|
* No changes.
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
## Rails
|
|
11
|
+
## Rails 7.0.8.2 (May 16, 2024) ##
|
|
12
12
|
|
|
13
13
|
* No changes.
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
## Rails
|
|
16
|
+
## Rails 7.0.8.1 (February 21, 2024) ##
|
|
17
17
|
|
|
18
18
|
* No changes.
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
## Rails
|
|
21
|
+
## Rails 7.0.8 (September 09, 2023) ##
|
|
22
22
|
|
|
23
23
|
* No changes.
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
## Rails
|
|
26
|
+
## Rails 7.0.7.2 (August 22, 2023) ##
|
|
27
27
|
|
|
28
28
|
* No changes.
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
## Rails
|
|
31
|
+
## Rails 7.0.7.1 (August 22, 2023) ##
|
|
32
32
|
|
|
33
33
|
* No changes.
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
## Rails
|
|
36
|
+
## Rails 7.0.7 (August 09, 2023) ##
|
|
37
37
|
|
|
38
38
|
* No changes.
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
## Rails
|
|
41
|
+
## Rails 7.0.6 (June 29, 2023) ##
|
|
42
42
|
|
|
43
|
-
*
|
|
43
|
+
* Fix Action Cable Redis configuration with sentinels.
|
|
44
|
+
|
|
45
|
+
*Dmitriy Ivliev*
|
|
44
46
|
|
|
45
47
|
|
|
46
|
-
## Rails
|
|
48
|
+
## Rails 7.0.5.1 (June 26, 2023) ##
|
|
47
49
|
|
|
48
50
|
* No changes.
|
|
49
51
|
|
|
50
52
|
|
|
51
|
-
## Rails
|
|
53
|
+
## Rails 7.0.5 (May 24, 2023) ##
|
|
54
|
+
|
|
55
|
+
* Restore Action Cable Redis pub/sub listener on connection failure.
|
|
56
|
+
|
|
57
|
+
*Vladimir Dementyev*
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Rails 7.0.4.3 (March 13, 2023) ##
|
|
52
61
|
|
|
53
62
|
* No changes.
|
|
54
63
|
|
|
55
64
|
|
|
56
|
-
## Rails
|
|
65
|
+
## Rails 7.0.4.2 (January 24, 2023) ##
|
|
57
66
|
|
|
58
67
|
* No changes.
|
|
59
68
|
|
|
60
69
|
|
|
61
|
-
## Rails
|
|
70
|
+
## Rails 7.0.4.1 (January 17, 2023) ##
|
|
62
71
|
|
|
63
|
-
*
|
|
72
|
+
* No changes.
|
|
64
73
|
|
|
65
|
-
* The client maintains a set of pending subscriptions until either
|
|
66
|
-
the server confirms the subscription or the channel is torn down.
|
|
67
|
-
* Rectifies the race condition where an unsubscribe is rapidly followed
|
|
68
|
-
by a subscribe (on the same channel identifier) and the requests are
|
|
69
|
-
handled out of order by the ActionCable server, thereby ignoring the
|
|
70
|
-
subscribe command.
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
## Rails 7.0.4 (September 09, 2022) ##
|
|
73
76
|
|
|
74
|
-
*
|
|
77
|
+
* The Redis adapter is now compatible with redis-rb 5.0
|
|
75
78
|
|
|
76
|
-
|
|
79
|
+
Compatibility with redis-rb 3.x was dropped.
|
|
77
80
|
|
|
81
|
+
*Jean Boussier*
|
|
78
82
|
|
|
79
|
-
|
|
83
|
+
* The Action Cable server is now mounted with `anchor: true`.
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
This means that routes that also start with `/cable` will no longer clash with Action Cable.
|
|
86
|
+
|
|
87
|
+
*Alex Ghiculescu*
|
|
82
88
|
|
|
83
89
|
|
|
84
|
-
## Rails
|
|
90
|
+
## Rails 7.0.3.1 (July 12, 2022) ##
|
|
85
91
|
|
|
86
92
|
* No changes.
|
|
87
93
|
|
|
88
94
|
|
|
89
|
-
## Rails
|
|
95
|
+
## Rails 7.0.3 (May 09, 2022) ##
|
|
90
96
|
|
|
91
97
|
* No changes.
|
|
92
98
|
|
|
93
99
|
|
|
94
|
-
## Rails
|
|
100
|
+
## Rails 7.0.2.4 (April 26, 2022) ##
|
|
95
101
|
|
|
96
102
|
* No changes.
|
|
97
103
|
|
|
98
104
|
|
|
99
|
-
## Rails
|
|
105
|
+
## Rails 7.0.2.3 (March 08, 2022) ##
|
|
100
106
|
|
|
101
107
|
* No changes.
|
|
102
108
|
|
|
103
109
|
|
|
104
|
-
## Rails
|
|
110
|
+
## Rails 7.0.2.2 (February 11, 2022) ##
|
|
105
111
|
|
|
106
112
|
* No changes.
|
|
107
113
|
|
|
108
114
|
|
|
109
|
-
## Rails
|
|
115
|
+
## Rails 7.0.2.1 (February 11, 2022) ##
|
|
110
116
|
|
|
111
117
|
* No changes.
|
|
112
118
|
|
|
113
119
|
|
|
114
|
-
## Rails
|
|
120
|
+
## Rails 7.0.2 (February 08, 2022) ##
|
|
115
121
|
|
|
116
|
-
*
|
|
117
|
-
|
|
118
|
-
*Vladislav*
|
|
122
|
+
* No changes.
|
|
119
123
|
|
|
120
124
|
|
|
121
|
-
## Rails
|
|
125
|
+
## Rails 7.0.1 (January 06, 2022) ##
|
|
122
126
|
|
|
123
127
|
* No changes.
|
|
124
128
|
|
|
125
129
|
|
|
126
|
-
## Rails
|
|
130
|
+
## Rails 7.0.0 (December 15, 2021) ##
|
|
127
131
|
|
|
128
132
|
* No changes.
|
|
129
133
|
|
|
130
134
|
|
|
131
|
-
## Rails
|
|
135
|
+
## Rails 7.0.0.rc3 (December 14, 2021) ##
|
|
132
136
|
|
|
133
137
|
* No changes.
|
|
134
138
|
|
|
135
139
|
|
|
136
|
-
## Rails
|
|
140
|
+
## Rails 7.0.0.rc2 (December 14, 2021) ##
|
|
137
141
|
|
|
138
142
|
* No changes.
|
|
139
143
|
|
|
144
|
+
## Rails 7.0.0.rc1 (December 06, 2021) ##
|
|
140
145
|
|
|
141
|
-
|
|
146
|
+
* The Action Cable client now ensures successful channel subscriptions:
|
|
142
147
|
|
|
143
|
-
*
|
|
148
|
+
* The client maintains a set of pending subscriptions until either
|
|
149
|
+
the server confirms the subscription or the channel is torn down.
|
|
150
|
+
* Rectifies the race condition where an unsubscribe is rapidly followed
|
|
151
|
+
by a subscribe (on the same channel identifier) and the requests are
|
|
152
|
+
handled out of order by the ActionCable server, thereby ignoring the
|
|
153
|
+
subscribe command.
|
|
154
|
+
|
|
155
|
+
*Daniel Spinosa*
|
|
144
156
|
|
|
145
157
|
|
|
146
|
-
## Rails
|
|
158
|
+
## Rails 7.0.0.alpha2 (September 15, 2021) ##
|
|
147
159
|
|
|
148
160
|
* No changes.
|
|
149
161
|
|
|
150
162
|
|
|
151
|
-
## Rails
|
|
163
|
+
## Rails 7.0.0.alpha1 (September 15, 2021) ##
|
|
152
164
|
|
|
153
|
-
*
|
|
154
|
-
with `rescue_from` before they are logged, which is useful for error reporting
|
|
155
|
-
tools and other integrations.
|
|
165
|
+
* Compile ESM package that can be used directly in the browser as actioncable.esm.js.
|
|
156
166
|
|
|
157
|
-
*
|
|
167
|
+
*DHH*
|
|
158
168
|
|
|
159
|
-
*
|
|
169
|
+
* Move action_cable.js to actioncable.js to match naming convention used for other Rails frameworks, and use JS console to communicate the deprecation.
|
|
160
170
|
|
|
161
|
-
*
|
|
171
|
+
*DHH*
|
|
162
172
|
|
|
163
|
-
*
|
|
173
|
+
* Stop transpiling the UMD package generated as actioncable.js and drop the IE11 testing that relied on that.
|
|
164
174
|
|
|
165
|
-
*
|
|
175
|
+
*DHH*
|
|
166
176
|
|
|
167
|
-
*
|
|
177
|
+
* Truncate broadcast logging messages.
|
|
178
|
+
|
|
179
|
+
*J Smith*
|
|
168
180
|
|
|
169
|
-
|
|
170
|
-
Also, you can set custom `id` in `cable.yml` configuration.
|
|
181
|
+
* OpenSSL constants are now used for Digest computations.
|
|
171
182
|
|
|
172
|
-
|
|
173
|
-
SELECT application_name FROM pg_stat_activity;
|
|
174
|
-
/*
|
|
175
|
-
application_name
|
|
176
|
-
------------------------
|
|
177
|
-
psql
|
|
178
|
-
ActionCable-PID-42
|
|
179
|
-
(2 rows)
|
|
180
|
-
*/
|
|
181
|
-
```
|
|
183
|
+
*Dirkjan Bussink*
|
|
182
184
|
|
|
183
|
-
|
|
185
|
+
* The Action Cable client now includes safeguards to prevent a "thundering
|
|
186
|
+
herd" of client reconnects after server connectivity loss:
|
|
184
187
|
|
|
185
|
-
*
|
|
188
|
+
* The client will wait a random amount between 1x and 3x of the stale
|
|
189
|
+
threshold after the server's last ping before making the first
|
|
190
|
+
reconnection attempt.
|
|
191
|
+
* Subsequent reconnection attempts now use exponential backoff instead of
|
|
192
|
+
logarithmic backoff. To allow the delay between reconnection attempts to
|
|
193
|
+
increase slowly at first, the default exponentiation base is < 2.
|
|
194
|
+
* Random jitter is applied to each delay between reconnection attempts.
|
|
186
195
|
|
|
187
|
-
*
|
|
196
|
+
*Jonathan Hefner*
|
|
188
197
|
|
|
189
198
|
|
|
190
|
-
Please check [6-
|
|
199
|
+
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actioncable/CHANGELOG.md) for previous changes.
|
data/README.md
CHANGED