actioncable 6.1.3.2 → 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -31
  3. data/MIT-LICENSE +1 -1
  4. data/app/assets/javascripts/action_cable.js +230 -257
  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/base.rb +1 -1
  8. data/lib/action_cable/channel/broadcasting.rb +1 -1
  9. data/lib/action_cable/channel/naming.rb +1 -1
  10. data/lib/action_cable/channel/streams.rb +5 -7
  11. data/lib/action_cable/channel/test_case.rb +16 -1
  12. data/lib/action_cable/connection/base.rb +3 -3
  13. data/lib/action_cable/connection/identification.rb +1 -1
  14. data/lib/action_cable/connection/subscriptions.rb +1 -1
  15. data/lib/action_cable/connection/tagged_logger_proxy.rb +3 -3
  16. data/lib/action_cable/connection/test_case.rb +1 -1
  17. data/lib/action_cable/engine.rb +9 -0
  18. data/lib/action_cable/gem_version.rb +4 -4
  19. data/lib/action_cable/helpers/action_cable_helper.rb +3 -2
  20. data/lib/action_cable/remote_connections.rb +1 -1
  21. data/lib/action_cable/server/broadcasting.rb +1 -1
  22. data/lib/action_cable/server/configuration.rb +1 -0
  23. data/lib/action_cable/server/worker/active_record_connection_management.rb +2 -2
  24. data/lib/action_cable/server/worker.rb +3 -4
  25. data/lib/action_cable/subscription_adapter/postgresql.rb +2 -2
  26. data/lib/action_cable/subscription_adapter/test.rb +1 -1
  27. data/lib/action_cable/test_helper.rb +2 -2
  28. data/lib/action_cable/version.rb +1 -1
  29. data/lib/action_cable.rb +1 -1
  30. data/lib/rails/generators/channel/USAGE +1 -1
  31. data/lib/rails/generators/channel/channel_generator.rb +79 -20
  32. data/lib/rails/generators/channel/templates/application_cable/{channel.rb.tt → channel.rb} +0 -0
  33. data/lib/rails/generators/channel/templates/application_cable/{connection.rb.tt → connection.rb} +0 -0
  34. data/lib/rails/generators/channel/templates/javascript/index.js.tt +1 -5
  35. metadata +16 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbb0ee4bbf0fdad04bcc679b0c31c2f75df0a0e2d6d79c9617c5a11133b8d0f3
4
- data.tar.gz: 9fcf8b42eef4e33ff5ed149a5df61258f123be4e0f2a1d2eb337afbb522db9ed
3
+ metadata.gz: 7294e8477c23e63558167989d2cde088da65d58289884a00940cfc83d7ed8549
4
+ data.tar.gz: 4d68105c0c252e959c9a47d336cf9877c88eaf22bf0af4b48f5dc8b15edc4aec
5
5
  SHA512:
6
- metadata.gz: 5e9fcbf6cb42e76219f51c28f1ee68bf0d12136670fb7058c8cc8daa5a2a918e0d05fa96097e68833eac615bd0043984a3f2817cda836fa2eaa3801056112454
7
- data.tar.gz: 68057250da24df74bc08dd7557ab7d1b1b7ee98c06f02810f16df6e551a34f94764f41b83e89377d3c913e289caee2fa509a131a960f9e68ef7211950a714af0
6
+ metadata.gz: f622a763302ed4d2c2da4128ff9eb8ebf3ce7e132123939e1d437989cdfe27f04f33e8cd910940f65872ae3396b4a43d1c3ad2c19c48741503587256d1ee4f59
7
+ data.tar.gz: 2118b822316ae38d38bbb93e50241e3e60ffd72be33f027ac3645920d26cd7584c0e69999d84be32c02abe1f7db0791967f19710e5ac2c2938bfb1daa483b029
data/CHANGELOG.md CHANGED
@@ -1,70 +1,105 @@
1
- ## Rails 6.1.3.2 (May 05, 2021) ##
1
+ ## Rails 7.0.3 (May 09, 2022) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 6.1.3.1 (March 26, 2021) ##
6
+ ## Rails 7.0.2.4 (April 26, 2022) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 6.1.3 (February 17, 2021) ##
11
+ ## Rails 7.0.2.3 (March 08, 2022) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 6.1.2.1 (February 10, 2021) ##
16
+ ## Rails 7.0.2.2 (February 11, 2022) ##
17
17
 
18
18
  * No changes.
19
19
 
20
20
 
21
- ## Rails 6.1.2 (February 09, 2021) ##
21
+ ## Rails 7.0.2.1 (February 11, 2022) ##
22
22
 
23
23
  * No changes.
24
24
 
25
25
 
26
- ## Rails 6.1.1 (January 07, 2021) ##
26
+ ## Rails 7.0.2 (February 08, 2022) ##
27
27
 
28
28
  * No changes.
29
29
 
30
30
 
31
- ## Rails 6.1.0 (December 09, 2020) ##
31
+ ## Rails 7.0.1 (January 06, 2022) ##
32
32
 
33
- * `ActionCable::Connection::Base` now allows intercepting unhandled exceptions
34
- with `rescue_from` before they are logged, which is useful for error reporting
35
- tools and other integrations.
33
+ * No changes.
34
+
35
+
36
+ ## Rails 7.0.0 (December 15, 2021) ##
37
+
38
+ * No changes.
39
+
40
+
41
+ ## Rails 7.0.0.rc3 (December 14, 2021) ##
42
+
43
+ * No changes.
36
44
 
37
- *Justin Talbott*
38
45
 
39
- * Add `ActionCable::Channel#stream_or_reject_for` to stream if record is present, otherwise reject the connection
46
+ ## Rails 7.0.0.rc2 (December 14, 2021) ##
47
+
48
+ * No changes.
40
49
 
41
- *Atul Bhosale*
50
+ ## Rails 7.0.0.rc1 (December 06, 2021) ##
42
51
 
43
- * Add `ActionCable::Channel#stop_stream_from` and `#stop_stream_for` to unsubscribe from a specific stream.
52
+ * The Action Cable client now ensures successful channel subscriptions:
44
53
 
45
- *Zhang Kang*
54
+ * The client maintains a set of pending subscriptions until either
55
+ the server confirms the subscription or the channel is torn down.
56
+ * Rectifies the race condition where an unsubscribe is rapidly followed
57
+ by a subscribe (on the same channel identifier) and the requests are
58
+ handled out of order by the ActionCable server, thereby ignoring the
59
+ subscribe command.
46
60
 
47
- * Add PostgreSQL subscription connection identificator.
61
+ *Daniel Spinosa*
48
62
 
49
- Now you can distinguish Action Cable PostgreSQL subscription connections among others.
50
- Also, you can set custom `id` in `cable.yml` configuration.
51
63
 
52
- ```sql
53
- SELECT application_name FROM pg_stat_activity;
54
- /*
55
- application_name
56
- ------------------------
57
- psql
58
- ActionCable-PID-42
59
- (2 rows)
60
- */
61
- ```
64
+ ## Rails 7.0.0.alpha2 (September 15, 2021) ##
65
+
66
+ * No changes.
67
+
62
68
 
63
- *Sergey Ponomarev*
69
+ ## Rails 7.0.0.alpha1 (September 15, 2021) ##
64
70
 
65
- * Subscription confirmations and rejections are now logged at the `DEBUG` level instead of `INFO`.
71
+ * Compile ESM package that can be used directly in the browser as actioncable.esm.js.
66
72
 
67
73
  *DHH*
68
74
 
75
+ * Move action_cable.js to actioncable.js to match naming convention used for other Rails frameworks, and use JS console to communicate the deprecation.
76
+
77
+ *DHH*
78
+
79
+ * Stop transpiling the UMD package generated as actioncable.js and drop the IE11 testing that relied on that.
80
+
81
+ *DHH*
82
+
83
+ * Truncate broadcast logging messages.
84
+
85
+ *J Smith*
86
+
87
+ * OpenSSL constants are now used for Digest computations.
88
+
89
+ *Dirkjan Bussink*
90
+
91
+ * The Action Cable client now includes safeguards to prevent a "thundering
92
+ herd" of client reconnects after server connectivity loss:
93
+
94
+ * The client will wait a random amount between 1x and 3x of the stale
95
+ threshold after the server's last ping before making the first
96
+ reconnection attempt.
97
+ * Subsequent reconnection attempts now use exponential backoff instead of
98
+ logarithmic backoff. To allow the delay between reconnection attempts to
99
+ increase slowly at first, the default exponentiation base is < 2.
100
+ * Random jitter is applied to each delay between reconnection attempts.
101
+
102
+ *Jonathan Hefner*
103
+
69
104
 
70
- Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actioncable/CHANGELOG.md) for previous changes.
105
+ 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-2022 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