stimulus_reflex 3.4.0.pre6 → 3.4.0.pre7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of stimulus_reflex might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c1b21d72db7dc3cae4b0a6225af2a17af6505e43b46d10a4db1ff1505566d1f
4
- data.tar.gz: 0a0d7acc4ebaf2b9f717e0cf01f0cdcb2999694627f960cea27db10693b5480e
3
+ metadata.gz: d53413cf3a4976f46192ac4158076417c4413ab02ca172b14d39e6e58ce9e441
4
+ data.tar.gz: cf98a2ae76724127124d5ad3d033d1d3433ab7c6efbbefc2430cb7b3fd10be30
5
5
  SHA512:
6
- metadata.gz: 92b7b673a36cea3d4bbbf3b491524a6f1819d5a7d477b0609bd605f236a24a4dc6a8c1ec9af336399a1179376c3e5257dd8266933607e45d183bb63220ddf1b8
7
- data.tar.gz: baada4b0985537e8aed1717f383cde05c94bcd502e047d6a58bbbb50580a691960f1ff792c8cefbc07a0940c1541f0e1eea985be9193d345db92d99c0560a054
6
+ metadata.gz: 4f6ac946ad23e7ad2e8bcb4788790dd7f2ea551db4433b4e2cb8f26eeed1c54d1aee7a2a809a18258a3ccefbd63b683db08ccc40900bc2ef996ddd4538e9ae87
7
+ data.tar.gz: 24df503ca6fbfe22e4080b8b81caa737a11d53b9139c238bb472ab6ec06c51e632e2e680222c70b6fec95c74b7c5ba696f82a1dcfb5ec519552885580c8c52f8
@@ -2,7 +2,21 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/hopsoft/stimulus_reflex/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.4.0.pre5...HEAD)
5
+ [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.4.0.pre6...HEAD)
6
+
7
+ **Closed issues:**
8
+
9
+ - Multiple reflex submissions can lead to unexpected behaviour. [\#391](https://github.com/hopsoft/stimulus_reflex/issues/391)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Trigger piggy back operations after SR operations [\#395](https://github.com/hopsoft/stimulus_reflex/pull/395) ([hopsoft](https://github.com/hopsoft))
14
+ - `invokeLifecycleMethod\(\)`: handle undefined `element` parameter [\#393](https://github.com/hopsoft/stimulus_reflex/pull/393) ([marcoroth](https://github.com/marcoroth))
15
+ - don't warn folks twice [\#392](https://github.com/hopsoft/stimulus_reflex/pull/392) ([leastbad](https://github.com/leastbad))
16
+
17
+ ## [v3.4.0.pre6](https://github.com/hopsoft/stimulus_reflex/tree/v3.4.0.pre6) (2020-11-29)
18
+
19
+ [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.4.0.pre5...v3.4.0.pre6)
6
20
 
7
21
  **Merged pull requests:**
8
22
 
@@ -270,6 +284,7 @@
270
284
  **Implemented enhancements:**
271
285
 
272
286
  - Returns more helpful error message if Reflex doesn't exist [\#254](https://github.com/hopsoft/stimulus_reflex/pull/254) ([leastbad](https://github.com/leastbad))
287
+ - Update install.rake to handle Typescript [\#241](https://github.com/hopsoft/stimulus_reflex/pull/241) ([iv-mexx](https://github.com/iv-mexx))
273
288
  - Morph Modes: page, selector and nothing [\#211](https://github.com/hopsoft/stimulus_reflex/pull/211) ([leastbad](https://github.com/leastbad))
274
289
 
275
290
  **Fixed bugs:**
@@ -310,10 +325,6 @@
310
325
 
311
326
  [Full Changelog](https://github.com/hopsoft/stimulus_reflex/compare/v3.2.2...v3.2.3)
312
327
 
313
- **Implemented enhancements:**
314
-
315
- - Update install.rake to handle Typescript [\#241](https://github.com/hopsoft/stimulus_reflex/pull/241) ([iv-mexx](https://github.com/iv-mexx))
316
-
317
328
  **Fixed bugs:**
318
329
 
319
330
  - Add more smarts to \_\_perform [\#235](https://github.com/hopsoft/stimulus_reflex/pull/235) ([hopsoft](https://github.com/hopsoft))
@@ -384,7 +395,6 @@
384
395
  - Loosen Rails requirement to 5.2 with instructions [\#205](https://github.com/hopsoft/stimulus_reflex/pull/205) ([jasoncharnes](https://github.com/jasoncharnes))
385
396
  - Fix undefined is not an object for Object.keys in log.js [\#201](https://github.com/hopsoft/stimulus_reflex/pull/201) ([marcoroth](https://github.com/marcoroth))
386
397
  - Small typo/grammar fix in quickstart doc. [\#198](https://github.com/hopsoft/stimulus_reflex/pull/198) ([acoffman](https://github.com/acoffman))
387
- - Add halted lifecycle event [\#193](https://github.com/hopsoft/stimulus_reflex/pull/193) ([websebdev](https://github.com/websebdev))
388
398
  - 147 extract multiple checkbox values [\#175](https://github.com/hopsoft/stimulus_reflex/pull/175) ([julianrubisch](https://github.com/julianrubisch))
389
399
 
390
400
  ## [v3.2.1](https://github.com/hopsoft/stimulus_reflex/tree/v3.2.1) (2020-05-09)
@@ -436,6 +446,7 @@
436
446
 
437
447
  **Merged pull requests:**
438
448
 
449
+ - Add halted lifecycle event [\#193](https://github.com/hopsoft/stimulus_reflex/pull/193) ([websebdev](https://github.com/websebdev))
439
450
  - Some housekeeping [\#189](https://github.com/hopsoft/stimulus_reflex/pull/189) ([hopsoft](https://github.com/hopsoft))
440
451
  - Allow to call stimulate without a reflex target [\#188](https://github.com/hopsoft/stimulus_reflex/pull/188) ([marcoroth](https://github.com/marcoroth))
441
452
  - Fix bug in super documentation [\#174](https://github.com/hopsoft/stimulus_reflex/pull/174) ([silva96](https://github.com/silva96))
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (3.4.0.pre6)
4
+ stimulus_reflex (3.4.0.pre7)
5
5
  cable_ready (>= 4.4)
6
6
  nokogiri
7
7
  rack
@@ -68,7 +68,7 @@ GEM
68
68
  zeitwerk (~> 2.2, >= 2.2.2)
69
69
  ast (2.4.1)
70
70
  builder (3.2.4)
71
- cable_ready (4.4.1)
71
+ cable_ready (4.4.3)
72
72
  rails (>= 5.2)
73
73
  coderay (1.1.3)
74
74
  concurrent-ruby (1.1.7)
@@ -135,19 +135,19 @@ GEM
135
135
  redis (4.2.5)
136
136
  regexp_parser (2.0.0)
137
137
  rexml (3.2.4)
138
- rubocop (1.2.0)
138
+ rubocop (1.4.2)
139
139
  parallel (~> 1.10)
140
140
  parser (>= 2.7.1.5)
141
141
  rainbow (>= 2.2.2, < 4.0)
142
142
  regexp_parser (>= 1.8)
143
143
  rexml
144
- rubocop-ast (>= 1.0.1)
144
+ rubocop-ast (>= 1.1.1)
145
145
  ruby-progressbar (~> 1.7)
146
146
  unicode-display_width (>= 1.4.0, < 2.0)
147
- rubocop-ast (1.2.0)
147
+ rubocop-ast (1.3.0)
148
148
  parser (>= 2.7.1.5)
149
- rubocop-performance (1.8.1)
150
- rubocop (>= 0.87.0)
149
+ rubocop-performance (1.9.1)
150
+ rubocop (>= 0.90.0, < 2.0)
151
151
  rubocop-ast (>= 0.4.0)
152
152
  ruby-progressbar (1.10.1)
153
153
  sprockets (4.0.2)
@@ -157,9 +157,9 @@ GEM
157
157
  actionpack (>= 4.0)
158
158
  activesupport (>= 4.0)
159
159
  sprockets (>= 3.0.0)
160
- standard (0.9.0)
161
- rubocop (= 1.2.0)
162
- rubocop-performance (= 1.8.1)
160
+ standard (0.10.1)
161
+ rubocop (= 1.4.2)
162
+ rubocop-performance (= 1.9.1)
163
163
  standardrb (1.0.0)
164
164
  standard
165
165
  thor (1.0.1)
@@ -16,6 +16,7 @@ class <%= class_name %>Reflex < ApplicationReflex
16
16
  # - signed - use a signed Global ID to map dataset attribute to a model eg. element.signed[:foo]
17
17
  # - unsigned - use an unsigned Global ID to map dataset attribute to a model eg. element.unsigned[:foo]
18
18
  # - cable_ready - a special cable_ready that can broadcast to the current visitor (no brackets needed)
19
+ # - reflex_id - a UUIDv4 that uniquely identies each Reflex
19
20
  #
20
21
  # Example:
21
22
  #
@@ -12,7 +12,7 @@ StimulusReflex.configure do |config|
12
12
 
13
13
  # Customize server-side Reflex logging format, with optional colorization:
14
14
  # Available tokens: session_id, session_id_full, reflex_info, operation, reflex_id, reflex_id_full, mode, selector, operation_counter, connection_id, connection_id_full, timestamp
15
- # Available colors: green, yellow, blue, magenta, cyan, white
15
+ # Available colors: red, green, yellow, blue, magenta, cyan, white
16
16
  # You can also use attributes from your ActionCable Connection's identifiers that resolve to valid ActiveRecord models
17
17
  # eg. if your connection is `identified_by :current_user` and your User model has an email attribute, you can access r.email (it will display `-` if the user isn't logged in)
18
18
 
@@ -23,6 +23,7 @@ module StimulusReflex
23
23
  })
24
24
  )
25
25
  end
26
+
26
27
  cable_ready.broadcast
27
28
  end
28
29
 
@@ -1,18 +1,12 @@
1
1
  module StimulusReflex
2
2
  class CableReadyChannels
3
+ stimulus_reflex_channel_methods = CableReady::Channels.instance.operations.keys + [:broadcast, :broadcast_to]
4
+ delegate(*stimulus_reflex_channel_methods, to: "@stimulus_reflex_channel")
5
+ delegate :[], to: "@cable_ready_channels"
6
+
3
7
  def initialize(stream_name)
4
8
  @cable_ready_channels = CableReady::Channels.instance
5
9
  @stimulus_reflex_channel = @cable_ready_channels[stream_name]
6
10
  end
7
-
8
- def method_missing(name, *args)
9
- return @stimulus_reflex_channel.send(name, *args) if @stimulus_reflex_channel.respond_to?(name)
10
- @cable_ready_channels.send(name, *args)
11
- end
12
-
13
- def respond_to_missing?(name, include_all)
14
- @stimulus_reflex_channel.respond_to?(name, include_all) ||
15
- @cable_ready_channels.respond_to?(name, include_all)
16
- end
17
11
  end
18
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "3.4.0.pre6"
4
+ VERSION = "3.4.0.pre7"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stimulus_reflex",
3
- "version": "3.4.0-pre5",
3
+ "version": "3.4.0-pre6",
4
4
  "description": "Build reactive applications with the Rails tooling you already know and love.",
5
5
  "keywords": [
6
6
  "ruby",
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ApplicationReflex < StimulusReflex::Reflex
4
- # Put application-wide Reflex behavior and callbacks in this file.
4
+ # Put application-wide Reflex behavior and callbacks in this file.
5
5
  #
6
6
  # Example:
7
7
  #
@@ -30,5 +30,4 @@ class DemoReflex < ApplicationReflex
30
30
  # end
31
31
  #
32
32
  # Learn more at: https://docs.stimulusreflex.com/reflexes#reflex-classes
33
-
34
33
  end
data/yarn.lock CHANGED
@@ -1256,9 +1256,9 @@ buffer-from@^1.0.0:
1256
1256
  integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
1257
1257
 
1258
1258
  "cable_ready@>= 4.4":
1259
- version "4.4.1"
1260
- resolved "https://registry.yarnpkg.com/cable_ready/-/cable_ready-4.4.1.tgz#b97564fb9347b2ad9ad21519956f1a5e5fa3690d"
1261
- integrity sha512-dB8W2JVQMuSW3YYyl321mZOrkdCt+10KVAeL+51/o6dC5H/QTWSZPj//POYEFynVL8hShYU9joC5Qrw0B5lxLw==
1259
+ version "4.4.3"
1260
+ resolved "https://registry.yarnpkg.com/cable_ready/-/cable_ready-4.4.3.tgz#eada6f43c471f9afc7b08df49b000f27d9b2cb66"
1261
+ integrity sha512-yp2JeCOvFLxIAdEa8jGa+ydZrlk1++ClK95OfCl/HrQXJ5p0PwNFGxDmgz2zqSMM1JM5p87JDw3QNsQD71NkCw==
1262
1262
  dependencies:
1263
1263
  morphdom "^2.6.1"
1264
1264
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0.pre6
4
+ version: 3.4.0.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-29 00:00:00.000000000 Z
11
+ date: 2020-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack