actioncable 6.1.4.1 → 7.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -58
- data/MIT-LICENSE +1 -1
- data/app/assets/javascripts/action_cable.js +229 -256
- data/app/assets/javascripts/actioncable.esm.js +491 -0
- data/app/assets/javascripts/actioncable.js +489 -0
- data/lib/action_cable/channel/broadcasting.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 +3 -3
- 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 +2 -2
- data/lib/action_cable/engine.rb +9 -0
- data/lib/action_cable/gem_version.rb +4 -4
- data/lib/action_cable/helpers/action_cable_helper.rb +3 -2
- 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/test_helper.rb +2 -2
- 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/application_cable/{channel.rb.tt → channel.rb} +0 -0
- data/lib/rails/generators/channel/templates/application_cable/{connection.rb.tt → connection.rb} +0 -0
- data/lib/rails/generators/channel/templates/javascript/index.js.tt +1 -5
- metadata +17 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f58d466a24200bf6ff56f5dff64e853ef19e669eae6777a8d0ed197fe718e8
|
4
|
+
data.tar.gz: a2fd7aaa51937dd874c7e94ac30f0c77c6c5314207b79c840298aad425c0d176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c98e32085e9636b10e80ca51ea709e659b8733eb59710d0fe4dcc2f58a17a5a49b635c0ea9576296481636b271743b012ef2da3a9ba673599c5eaba20d40fbb
|
7
|
+
data.tar.gz: ef38d720b4d27d6155239c12492e27c3d40bd4283440fcf9cc5066ea8737bc9a59bbdc570c4aedc619e2a004e4a902685cede7cc880b016ddc322df09b74665e
|
data/CHANGELOG.md
CHANGED
@@ -1,82 +1,56 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 7.0.0.rc2 (December 14, 2021) ##
|
2
2
|
|
3
|
-
*
|
4
|
-
|
5
|
-
|
6
|
-
## Rails 6.1.4 (June 24, 2021) ##
|
7
|
-
|
8
|
-
* Fix `ArgumentError` with ruby 3.0 on `RemoteConnection#disconnect`.
|
9
|
-
|
10
|
-
*Vladislav*
|
11
|
-
|
12
|
-
|
13
|
-
## Rails 6.1.3.2 (May 05, 2021) ##
|
14
|
-
|
15
|
-
* No changes.
|
16
|
-
|
17
|
-
|
18
|
-
## Rails 6.1.3.1 (March 26, 2021) ##
|
19
|
-
|
20
|
-
* No changes.
|
3
|
+
* The Action Cable client now ensures successful channel subscriptions:
|
21
4
|
|
5
|
+
* The client maintains a set of pending subscriptions until either
|
6
|
+
the server confirms the subscription or the channel is torn down.
|
7
|
+
* Rectifies the race condition where an unsubscribe is rapidly followed
|
8
|
+
by a subscribe (on the same channel identifier) and the requests are
|
9
|
+
handled out of order by the ActionCable server, thereby ignoring the
|
10
|
+
subscribe command.
|
22
11
|
|
23
|
-
|
24
|
-
|
25
|
-
* No changes.
|
12
|
+
*Daniel Spinosa*
|
26
13
|
|
27
14
|
|
28
|
-
## Rails
|
15
|
+
## Rails 7.0.0.alpha2 (September 15, 2021) ##
|
29
16
|
|
30
17
|
* No changes.
|
31
18
|
|
32
19
|
|
33
|
-
## Rails
|
34
|
-
|
35
|
-
* No changes.
|
20
|
+
## Rails 7.0.0.alpha1 (September 15, 2021) ##
|
36
21
|
|
22
|
+
* Compile ESM package that can be used directly in the browser as actioncable.esm.js.
|
37
23
|
|
38
|
-
|
39
|
-
|
40
|
-
* No changes.
|
41
|
-
|
42
|
-
|
43
|
-
## Rails 6.1.0 (December 09, 2020) ##
|
44
|
-
|
45
|
-
* `ActionCable::Connection::Base` now allows intercepting unhandled exceptions
|
46
|
-
with `rescue_from` before they are logged, which is useful for error reporting
|
47
|
-
tools and other integrations.
|
24
|
+
*DHH*
|
48
25
|
|
49
|
-
|
26
|
+
* Move action_cable.js to actioncable.js to match naming convention used for other Rails frameworks, and use JS console to communicate the deprecation.
|
50
27
|
|
51
|
-
*
|
28
|
+
*DHH*
|
52
29
|
|
53
|
-
|
30
|
+
* Stop transpiling the UMD package generated as actioncable.js and drop the IE11 testing that relied on that.
|
54
31
|
|
55
|
-
*
|
32
|
+
*DHH*
|
56
33
|
|
57
|
-
|
34
|
+
* Truncate broadcast logging messages.
|
58
35
|
|
59
|
-
*
|
36
|
+
*J Smith*
|
60
37
|
|
61
|
-
|
62
|
-
Also, you can set custom `id` in `cable.yml` configuration.
|
38
|
+
* OpenSSL constants are now used for Digest computations.
|
63
39
|
|
64
|
-
|
65
|
-
SELECT application_name FROM pg_stat_activity;
|
66
|
-
/*
|
67
|
-
application_name
|
68
|
-
------------------------
|
69
|
-
psql
|
70
|
-
ActionCable-PID-42
|
71
|
-
(2 rows)
|
72
|
-
*/
|
73
|
-
```
|
40
|
+
*Dirkjan Bussink*
|
74
41
|
|
75
|
-
|
42
|
+
* The Action Cable client now includes safeguards to prevent a "thundering
|
43
|
+
herd" of client reconnects after server connectivity loss:
|
76
44
|
|
77
|
-
*
|
45
|
+
* The client will wait a random amount between 1x and 3x of the stale
|
46
|
+
threshold after the server's last ping before making the first
|
47
|
+
reconnection attempt.
|
48
|
+
* Subsequent reconnection attempts now use exponential backoff instead of
|
49
|
+
logarithmic backoff. To allow the delay between reconnection attempts to
|
50
|
+
increase slowly at first, the default exponentiation base is < 2.
|
51
|
+
* Random jitter is applied to each delay between reconnection attempts.
|
78
52
|
|
79
|
-
*
|
53
|
+
*Jonathan Hefner*
|
80
54
|
|
81
55
|
|
82
|
-
Please check [6-
|
56
|
+
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actioncable/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED