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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +140 -31
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +1 -1
  5. data/app/assets/javascripts/action_cable.js +230 -257
  6. data/app/assets/javascripts/actioncable.esm.js +491 -0
  7. data/app/assets/javascripts/actioncable.js +489 -0
  8. data/lib/action_cable/channel/base.rb +1 -1
  9. data/lib/action_cable/channel/broadcasting.rb +1 -1
  10. data/lib/action_cable/channel/naming.rb +1 -1
  11. data/lib/action_cable/channel/streams.rb +5 -7
  12. data/lib/action_cable/channel/test_case.rb +16 -1
  13. data/lib/action_cable/connection/base.rb +5 -5
  14. data/lib/action_cable/connection/identification.rb +1 -1
  15. data/lib/action_cable/connection/subscriptions.rb +1 -1
  16. data/lib/action_cable/connection/tagged_logger_proxy.rb +3 -3
  17. data/lib/action_cable/connection/test_case.rb +1 -1
  18. data/lib/action_cable/engine.rb +10 -1
  19. data/lib/action_cable/gem_version.rb +5 -5
  20. data/lib/action_cable/helpers/action_cable_helper.rb +3 -2
  21. data/lib/action_cable/remote_connections.rb +1 -1
  22. data/lib/action_cable/server/broadcasting.rb +1 -1
  23. data/lib/action_cable/server/configuration.rb +1 -0
  24. data/lib/action_cable/server/worker/active_record_connection_management.rb +2 -2
  25. data/lib/action_cable/server/worker.rb +3 -4
  26. data/lib/action_cable/subscription_adapter/postgresql.rb +2 -2
  27. data/lib/action_cable/subscription_adapter/redis.rb +98 -22
  28. data/lib/action_cable/subscription_adapter/test.rb +1 -1
  29. data/lib/action_cable/test_helper.rb +2 -2
  30. data/lib/action_cable/version.rb +1 -1
  31. data/lib/action_cable.rb +1 -1
  32. data/lib/rails/generators/channel/USAGE +1 -1
  33. data/lib/rails/generators/channel/channel_generator.rb +79 -20
  34. data/lib/rails/generators/channel/templates/javascript/index.js.tt +1 -5
  35. metadata +16 -13
  36. /data/lib/rails/generators/channel/templates/application_cable/{channel.rb.tt → channel.rb} +0 -0
  37. /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: bbb0ee4bbf0fdad04bcc679b0c31c2f75df0a0e2d6d79c9617c5a11133b8d0f3
4
- data.tar.gz: 9fcf8b42eef4e33ff5ed149a5df61258f123be4e0f2a1d2eb337afbb522db9ed
3
+ metadata.gz: 9e436e1c17f1c9f8b7e0d14f60dea7dfeef4d27b6c87c3a2e8f98fc4d7fa3313
4
+ data.tar.gz: f56295e032d83db377338defd835f48ca5e22b9ea234531fad4c45deb4b03255
5
5
  SHA512:
6
- metadata.gz: 5e9fcbf6cb42e76219f51c28f1ee68bf0d12136670fb7058c8cc8daa5a2a918e0d05fa96097e68833eac615bd0043984a3f2817cda836fa2eaa3801056112454
7
- data.tar.gz: 68057250da24df74bc08dd7557ab7d1b1b7ee98c06f02810f16df6e551a34f94764f41b83e89377d3c913e289caee2fa509a131a960f9e68ef7211950a714af0
6
+ metadata.gz: 4f28bae465c1c10fd3d9ef6a2da614f55367f0d36dc4519af8e1b12f8f004668d770553d512932d1455497d56e2cd02c26b19b202f4ee43aa0b195fd979ad4af
7
+ data.tar.gz: 2e7529a70efdc70b69b523851a228349772d15632f6c9784b0564c748c6bcccb56ca7d332ca3db7f0945908163a646f0bd46091007729cfd4dc843abc43f40c9
data/CHANGELOG.md CHANGED
@@ -1,70 +1,179 @@
1
- ## Rails 6.1.3.2 (May 05, 2021) ##
1
+ ## Rails 7.0.8 (September 09, 2023) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 6.1.3.1 (March 26, 2021) ##
6
+ ## Rails 7.0.7.2 (August 22, 2023) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 6.1.3 (February 17, 2021) ##
11
+ ## Rails 7.0.7.1 (August 22, 2023) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 6.1.2.1 (February 10, 2021) ##
16
+ ## Rails 7.0.7 (August 09, 2023) ##
17
17
 
18
18
  * No changes.
19
19
 
20
20
 
21
- ## Rails 6.1.2 (February 09, 2021) ##
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 6.1.1 (January 07, 2021) ##
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 6.1.0 (December 09, 2020) ##
85
+ ## Rails 7.0.2.3 (March 08, 2022) ##
32
86
 
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.
87
+ * No changes.
36
88
 
37
- *Justin Talbott*
38
89
 
39
- * Add `ActionCable::Channel#stream_or_reject_for` to stream if record is present, otherwise reject the connection
90
+ ## Rails 7.0.2.2 (February 11, 2022) ##
40
91
 
41
- *Atul Bhosale*
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
- *Zhang Kang*
95
+ ## Rails 7.0.2.1 (February 11, 2022) ##
46
96
 
47
- * Add PostgreSQL subscription connection identificator.
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
- ```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
- ```
100
+ ## Rails 7.0.2 (February 08, 2022) ##
62
101
 
63
- *Sergey Ponomarev*
102
+ * No changes.
64
103
 
65
- * Subscription confirmations and rejections are now logged at the `DEBUG` level instead of `INFO`.
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-0-stable](https://github.com/rails/rails/blob/6-0-stable/actioncable/CHANGELOG.md) for previous changes.
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
@@ -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
data/README.md CHANGED
@@ -15,7 +15,7 @@ API documentation is at:
15
15
 
16
16
  * https://api.rubyonrails.org
17
17
 
18
- Bug reports for the Ruby on Rails project can be filed here:
18
+ Bug reports for the Ruby on \Rails project can be filed here:
19
19
 
20
20
  * https://github.com/rails/rails/issues
21
21