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