actioncable 6.1.4.1 → 7.0.0.rc2

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -58
  3. data/MIT-LICENSE +1 -1
  4. data/app/assets/javascripts/action_cable.js +229 -256
  5. data/app/assets/javascripts/actioncable.esm.js +491 -0
  6. data/app/assets/javascripts/actioncable.js +489 -0
  7. data/lib/action_cable/channel/broadcasting.rb +1 -1
  8. data/lib/action_cable/channel/streams.rb +5 -7
  9. data/lib/action_cable/channel/test_case.rb +16 -1
  10. data/lib/action_cable/connection/base.rb +3 -3
  11. data/lib/action_cable/connection/identification.rb +1 -1
  12. data/lib/action_cable/connection/subscriptions.rb +1 -1
  13. data/lib/action_cable/connection/tagged_logger_proxy.rb +2 -2
  14. data/lib/action_cable/engine.rb +9 -0
  15. data/lib/action_cable/gem_version.rb +4 -4
  16. data/lib/action_cable/helpers/action_cable_helper.rb +3 -2
  17. data/lib/action_cable/server/broadcasting.rb +1 -1
  18. data/lib/action_cable/server/configuration.rb +1 -0
  19. data/lib/action_cable/server/worker/active_record_connection_management.rb +2 -2
  20. data/lib/action_cable/server/worker.rb +3 -4
  21. data/lib/action_cable/subscription_adapter/postgresql.rb +2 -2
  22. data/lib/action_cable/test_helper.rb +2 -2
  23. data/lib/action_cable.rb +1 -1
  24. data/lib/rails/generators/channel/USAGE +1 -1
  25. data/lib/rails/generators/channel/channel_generator.rb +79 -20
  26. data/lib/rails/generators/channel/templates/application_cable/{channel.rb.tt → channel.rb} +0 -0
  27. data/lib/rails/generators/channel/templates/application_cable/{connection.rb.tt → connection.rb} +0 -0
  28. data/lib/rails/generators/channel/templates/javascript/index.js.tt +1 -5
  29. metadata +17 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2cec513356bee041bd5253be80c7cba5d93fbea577edb996191b26239da7731
4
- data.tar.gz: 18c18afc92cfab9a295392d90ec4342a9deab56173b660c5b4ee1105bf9ea4b3
3
+ metadata.gz: a4f58d466a24200bf6ff56f5dff64e853ef19e669eae6777a8d0ed197fe718e8
4
+ data.tar.gz: a2fd7aaa51937dd874c7e94ac30f0c77c6c5314207b79c840298aad425c0d176
5
5
  SHA512:
6
- metadata.gz: 264b8608fa625a0c5b4ee13769f2d4c3e653f3bea0e323f9e24db4f55602ad06da80654e4067dc7b83dd58707bbbade3ec8d3d48223cd286df78dea82b4548cb
7
- data.tar.gz: 7ea91bc4d00c72db3ed1c3a62f9d785b1b9a2f5d6c4f9d125e02f5ca48544c74dfef42164f46d2479bdc0d08d8b1c46b43950cd9cde39f7f271ef0e4399d9916
6
+ metadata.gz: 1c98e32085e9636b10e80ca51ea709e659b8733eb59710d0fe4dcc2f58a17a5a49b635c0ea9576296481636b271743b012ef2da3a9ba673599c5eaba20d40fbb
7
+ data.tar.gz: ef38d720b4d27d6155239c12492e27c3d40bd4283440fcf9cc5066ea8737bc9a59bbdc570c4aedc619e2a004e4a902685cede7cc880b016ddc322df09b74665e
data/CHANGELOG.md CHANGED
@@ -1,82 +1,56 @@
1
- ## Rails 6.1.4.1 (August 19, 2021) ##
1
+ ## Rails 7.0.0.rc2 (December 14, 2021) ##
2
2
 
3
- * No changes.
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
- ## Rails 6.1.3 (February 17, 2021) ##
24
-
25
- * No changes.
12
+ *Daniel Spinosa*
26
13
 
27
14
 
28
- ## Rails 6.1.2.1 (February 10, 2021) ##
15
+ ## Rails 7.0.0.alpha2 (September 15, 2021) ##
29
16
 
30
17
  * No changes.
31
18
 
32
19
 
33
- ## Rails 6.1.2 (February 09, 2021) ##
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
- ## Rails 6.1.1 (January 07, 2021) ##
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
- *Justin Talbott*
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
- * Add `ActionCable::Channel#stream_or_reject_for` to stream if record is present, otherwise reject the connection
28
+ *DHH*
52
29
 
53
- *Atul Bhosale*
30
+ * Stop transpiling the UMD package generated as actioncable.js and drop the IE11 testing that relied on that.
54
31
 
55
- * Add `ActionCable::Channel#stop_stream_from` and `#stop_stream_for` to unsubscribe from a specific stream.
32
+ *DHH*
56
33
 
57
- *Zhang Kang*
34
+ * Truncate broadcast logging messages.
58
35
 
59
- * Add PostgreSQL subscription connection identificator.
36
+ *J Smith*
60
37
 
61
- Now you can distinguish Action Cable PostgreSQL subscription connections among others.
62
- Also, you can set custom `id` in `cable.yml` configuration.
38
+ * OpenSSL constants are now used for Digest computations.
63
39
 
64
- ```sql
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
- *Sergey Ponomarev*
42
+ * The Action Cable client now includes safeguards to prevent a "thundering
43
+ herd" of client reconnects after server connectivity loss:
76
44
 
77
- * Subscription confirmations and rejections are now logged at the `DEBUG` level instead of `INFO`.
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
- *DHH*
53
+ *Jonathan Hefner*
80
54
 
81
55
 
82
- Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actioncable/CHANGELOG.md) for previous changes.
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2020 Basecamp, LLC
1
+ Copyright (c) 2015-2021 Basecamp, LLC
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the