stimulus_reflex 3.5.0.pre3 → 3.5.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: de74a55565a28991a825bcc37db07d7e2fc9335bf68c29fec27610f311060ee4
4
- data.tar.gz: d178376b89fa7a061c71d6346189094831bb53c143c5e99c62ab3128fb70138a
3
+ metadata.gz: 7405634b194a94ccfe3fc3306f7bbdb56fb8db4444289fbbe58f1c51f9ef2bf8
4
+ data.tar.gz: 9580eb10f36f1253fdee8eb6fd28ad1c6917d610ced8c6a6e993078dee7bb972
5
5
  SHA512:
6
- metadata.gz: e90fdee9c58d66893eb1af762848b0c8f81972de1198f947ca10e0224092c674b5008289cade3639568df44ab735ac1c6b95547c932d66a8ce707c6fb0a5f428
7
- data.tar.gz: 5956987432927c7af475e524886354eda2439c8dd3793d135e8c63d1aab4a46d21edfab80a66c6315081daba07efa4f52bce33f3a5fdca8195a38c76df2e522d
6
+ metadata.gz: 98b50b8e87323f71774b5818effa260f2f4d89f3aa53670eea71dc5612fd11187d84148c1a4a8a5ade93ddfa94999615d9b5983f082eced625650c2d2ebf6780
7
+ data.tar.gz: cc3dc5df11fd4e79e8e59fa89298a257a181f9ec2efaea521ead1d829a890458d9983696cb4fae0e5c4383bc280109d106a47f0c9c1d34d898330fda010d9225
data/CHANGELOG.md CHANGED
@@ -2,11 +2,21 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/stimulusreflex/stimulus_reflex/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre2...HEAD)
5
+ [Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre3...HEAD)
6
+
7
+ **Closed issues:**
8
+
9
+ - Rails 7 Alpha Incompatibility [\#552](https://github.com/stimulusreflex/stimulus_reflex/issues/552)
10
+
11
+ ## [v3.5.0.pre3](https://github.com/stimulusreflex/stimulus_reflex/tree/v3.5.0.pre3) (2021-10-01)
12
+
13
+ [Full Changelog](https://github.com/stimulusreflex/stimulus_reflex/compare/v3.5.0.pre2...v3.5.0.pre3)
6
14
 
7
15
  **Implemented enhancements:**
8
16
 
9
17
  - Allow to skip stages in the generator [\#541](https://github.com/stimulusreflex/stimulus_reflex/issues/541)
18
+ - document body connection status classes [\#547](https://github.com/stimulusreflex/stimulus_reflex/pull/547) ([leastbad](https://github.com/leastbad))
19
+ - overhaul Reflex logging [\#546](https://github.com/stimulusreflex/stimulus_reflex/pull/546) ([leastbad](https://github.com/leastbad))
10
20
  - reverse merge params into locals [\#542](https://github.com/stimulusreflex/stimulus_reflex/pull/542) ([leastbad](https://github.com/leastbad))
11
21
  - specify env headers for page morph controller [\#538](https://github.com/stimulusreflex/stimulus_reflex/pull/538) ([leastbad](https://github.com/leastbad))
12
22
  - New CR wire format + reworked server message events [\#536](https://github.com/stimulusreflex/stimulus_reflex/pull/536) ([leastbad](https://github.com/leastbad))
@@ -179,6 +189,7 @@
179
189
 
180
190
  - life-cycle callbacks return correct element reference [\#431](https://github.com/stimulusreflex/stimulus_reflex/pull/431) ([leastbad](https://github.com/leastbad))
181
191
  - encode form data for chars like '&' and '=' [\#418](https://github.com/stimulusreflex/stimulus_reflex/pull/418) ([RolandStuder](https://github.com/RolandStuder))
192
+ - Bug fix: Updating changelog generator to push to master, not main [\#416](https://github.com/stimulusreflex/stimulus_reflex/pull/416) ([MikeRogers0](https://github.com/MikeRogers0))
182
193
  - Prefix dom\_id with hash/pound [\#410](https://github.com/stimulusreflex/stimulus_reflex/pull/410) ([hopsoft](https://github.com/hopsoft))
183
194
 
184
195
  **Closed issues:**
@@ -219,7 +230,6 @@
219
230
 
220
231
  **Fixed bugs:**
221
232
 
222
- - Bug fix: Updating changelog generator to push to master, not main [\#416](https://github.com/stimulusreflex/stimulus_reflex/pull/416) ([MikeRogers0](https://github.com/MikeRogers0))
223
233
  - fix up install task [\#401](https://github.com/stimulusreflex/stimulus_reflex/pull/401) ([leastbad](https://github.com/leastbad))
224
234
  - Fix multiple broadcasts from within the same reflex [\#400](https://github.com/stimulusreflex/stimulus_reflex/pull/400) ([hopsoft](https://github.com/hopsoft))
225
235
 
@@ -542,7 +552,6 @@
542
552
  - beforeUpdate/updateSuccess/updateError functions deprecated? [\#255](https://github.com/stimulusreflex/stimulus_reflex/issues/255)
543
553
  - Error handling will fail if reflex is not defined [\#253](https://github.com/stimulusreflex/stimulus_reflex/issues/253)
544
554
  - Select with data-reflex in Firefox flickers [\#251](https://github.com/stimulusreflex/stimulus_reflex/issues/251)
545
- - data-reflex-attributes vs data-reflex-dataset [\#237](https://github.com/stimulusreflex/stimulus_reflex/issues/237)
546
555
  - Shorthand action notations corresponding to stimulus [\#233](https://github.com/stimulusreflex/stimulus_reflex/issues/233)
547
556
  - Lifecycle methods only called for one reflex [\#225](https://github.com/stimulusreflex/stimulus_reflex/issues/225)
548
557
  - Tweak the generator so we can specify reflex actions [\#219](https://github.com/stimulusreflex/stimulus_reflex/issues/219)
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (3.5.0.pre3)
5
- cable_ready (= 5.0.0.pre4)
4
+ stimulus_reflex (3.5.0.pre7)
5
+ cable_ready (= 5.0.0.pre7)
6
6
  nokogiri
7
7
  rack
8
8
  rails (>= 5.2)
@@ -72,7 +72,7 @@ GEM
72
72
  zeitwerk (~> 2.3)
73
73
  ast (2.4.2)
74
74
  builder (3.2.4)
75
- cable_ready (5.0.0.pre4)
75
+ cable_ready (5.0.0.pre7)
76
76
  rails (>= 5.2)
77
77
  thread-local (>= 1.1.0)
78
78
  coderay (1.1.3)
@@ -90,16 +90,12 @@ GEM
90
90
  mini_mime (>= 0.1.1)
91
91
  marcel (1.0.2)
92
92
  method_source (0.9.2)
93
- mini_mime (1.1.1)
93
+ mini_mime (1.1.2)
94
94
  minitest (5.14.4)
95
95
  mocha (1.13.0)
96
96
  nio4r (2.5.8)
97
97
  nokogiri (1.12.5-arm64-darwin)
98
98
  racc (~> 1.4)
99
- nokogiri (1.12.5-x86_64-darwin)
100
- racc (~> 1.4)
101
- nokogiri (1.12.5-x86_64-linux)
102
- racc (~> 1.4)
103
99
  parallel (1.20.1)
104
100
  parser (3.0.2.0)
105
101
  ast (~> 2.4.1)
@@ -108,7 +104,7 @@ GEM
108
104
  method_source (~> 0.9.0)
109
105
  pry-nav (0.3.0)
110
106
  pry (>= 0.9.10, < 0.13.0)
111
- racc (1.5.2)
107
+ racc (1.6.0)
112
108
  rack (2.2.3)
113
109
  rack-test (1.1.0)
114
110
  rack (>= 1.0, < 3)
@@ -140,7 +136,7 @@ GEM
140
136
  thor (~> 1.0)
141
137
  rainbow (3.0.0)
142
138
  rake (13.0.6)
143
- redis (4.4.0)
139
+ redis (4.5.1)
144
140
  regexp_parser (2.1.1)
145
141
  rexml (3.2.5)
146
142
  rubocop (1.18.3)
@@ -178,7 +174,7 @@ GEM
178
174
  websocket-driver (0.7.5)
179
175
  websocket-extensions (>= 0.1.0)
180
176
  websocket-extensions (0.1.5)
181
- zeitwerk (2.4.2)
177
+ zeitwerk (2.5.1)
182
178
 
183
179
  PLATFORMS
184
180
  arm64-darwin-20
data/README.md CHANGED
@@ -109,11 +109,17 @@ View the [wiki](https://github.com/stimulusreflex/stimulus_reflex/wiki/Editor-Co
109
109
 
110
110
  ## 📦 Releasing
111
111
 
112
- 1. Bump version number at `lib/stimulus_reflex/version.rb`
113
- 2. Run `rake build`
114
- 3. Run `rake release`
115
- 4. Run `yarn publish --no-git-tag-version`
116
- 5. Commit and push changes to the `package.json` file
112
+ 1. Always publish CableReady first!
113
+ 1. Update the `cable_ready` dependency version in `stimulus_reflex.gemspec` and `package.json`
114
+ 1. Make sure that you run `yarn` and `bundle` to pick up the latest.
115
+ 1. Bump version number at `lib/stimulus_reflex/version.rb`. Pre-release versions use `.preN`
116
+ 1. Run `rake build`
117
+ 1. Commit and push changes to github
118
+ 1. Run `rake release`
119
+ 1. Run `yarn publish --no-git-tag-version`
120
+ 1. Yarn will prompt you for the new version. Pre-release versions use `-preN`
121
+ 1. Run `GITHUB_CHANGELOG_GENERATOR_TOKEN=SECRET rake changelog`
122
+ 1. Commit and push changes to github
117
123
 
118
124
  ## 📝 License
119
125
 
@@ -27,12 +27,12 @@ class StimulusReflex::Channel < StimulusReflex.configuration.parent_channel.cons
27
27
  reflex.logger&.error error_message
28
28
  reflex.error data: data, body: "#{exception} #{exception.backtrace.first.split(":in ")[0] if Rails.env.development?}"
29
29
  else
30
- reflex.logger&.error error_message
30
+ StimulusReflex.config.logger.error error_message
31
31
 
32
32
  if body.to_s.include? "No route matches"
33
33
  initializer_path = Rails.root.join("config", "initializers", "stimulus_reflex.rb")
34
34
 
35
- reflex.logger&.warn <<~NOTE
35
+ StimulusReflex.config.logger.warn <<~NOTE
36
36
  \e[33mNOTE: StimulusReflex failed to locate a matching route and could not re-render the page.
37
37
 
38
38
  If your app uses Rack middleware to rewrite part of the request path, you must enable those middleware modules in StimulusReflex.
@@ -6,6 +6,7 @@ module StimulusReflex
6
6
  operations << ["document", :dispatch_event]
7
7
  cable_ready.dispatch_event(
8
8
  name: "stimulus-reflex:morph-nothing",
9
+ selector: nil,
9
10
  payload: payload,
10
11
  stimulus_reflex: data.merge(morph: to_sym)
11
12
  ).broadcast
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "3.5.0.pre3"
4
+ VERSION = "3.5.0.pre7"
5
5
  end
data/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "stimulus_reflex",
3
+ "version": "3.5.0-pre6",
4
+ "description": "Build reactive applications with the Rails tooling you already know and love.",
5
+ "keywords": [
6
+ "ruby",
7
+ "rails",
8
+ "websockets",
9
+ "actioncable",
10
+ "turbolinks",
11
+ "reactive",
12
+ "cable",
13
+ "ujs",
14
+ "ssr",
15
+ "stimulus",
16
+ "reflex",
17
+ "stimulus_reflex",
18
+ "dom",
19
+ "morphdom"
20
+ ],
21
+ "homepage": "https://docs.stimulusreflex.com/",
22
+ "bugs": {
23
+ "url": "https://github.com/stimulusreflex/stimulus_reflex/issues"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com:stimulusreflex/stimulus_reflex.git"
28
+ },
29
+ "license": "MIT",
30
+ "author": "Nathan Hopkins <natehop@gmail.com>",
31
+ "main": "./javascript/stimulus_reflex.js",
32
+ "module": "./javascript/stimulus_reflex.js",
33
+ "scripts": {
34
+ "prettier-standard:check": "yarn run prettier-standard --check ./javascript/*.js ./javascript/**/*.js",
35
+ "prettier-standard:format": "yarn run prettier-standard ./javascript/*.js ./javascript/**/*.js",
36
+ "test": "yarn run mocha --require @babel/register --require jsdom-global/register --require esm ./javascript/test"
37
+ },
38
+ "peerDependencies": {
39
+ "stimulus": ">= 1.1"
40
+ },
41
+ "dependencies": {
42
+ "@rails/actioncable": ">= 6.0",
43
+ "cable_ready": "5.0.0-pre7"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.6.2",
47
+ "@babel/preset-env": "^7.6.2",
48
+ "@babel/register": "^7.6.2",
49
+ "assert": "^2.0.0",
50
+ "esm": "^3.2.25",
51
+ "jsdom": "^16.0.1",
52
+ "jsdom-global": "^3.0.2",
53
+ "mocha": "^8.0.1",
54
+ "prettier-standard": "^16.4.1",
55
+ "stimulus": ">= 1.1"
56
+ }
57
+ }
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path("../lib/stimulus_reflex/version", __FILE__)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "stimulus_reflex"
7
+ gem.license = "MIT"
8
+ gem.version = StimulusReflex::VERSION
9
+ gem.authors = ["Nathan Hopkins"]
10
+ gem.email = ["natehop@gmail.com"]
11
+ gem.homepage = "https://github.com/stimulusreflex/stimulus_reflex"
12
+ gem.summary = "Build reactive applications with the Rails tooling you already know and love."
13
+ gem.post_install_message = <<~MESSAGE
14
+ Finish installation by running:
15
+
16
+ rake stimulus_reflex:install
17
+
18
+ Get support for StimulusReflex and CableReady on Discord:
19
+
20
+ https://discord.gg/stimulus-reflex
21
+
22
+ MESSAGE
23
+
24
+ gem.metadata = {
25
+ "bug_tracker_uri" => "https://github.com/stimulusreflex/stimulus_reflex/issues",
26
+ "changelog_uri" => "https://github.com/stimulusreflex/stimulus_reflex/CHANGELOG.md",
27
+ "documentation_uri" => "https://docs.stimulusreflex.com",
28
+ "homepage_uri" => gem.homepage,
29
+ "source_code_uri" => gem.homepage
30
+ }
31
+
32
+ gem.files = Dir["app/**/*", "lib/**/*", "bin/*", "[A-Z]*"]
33
+ gem.test_files = Dir["test/**/*.rb"]
34
+
35
+ gem.add_dependency "rack"
36
+ gem.add_dependency "nokogiri"
37
+ gem.add_dependency "rails", ">= 5.2"
38
+ gem.add_dependency "redis"
39
+ gem.add_dependency "cable_ready", "5.0.0.pre7"
40
+
41
+ gem.add_development_dependency "bundler", "~> 2.0"
42
+ gem.add_development_dependency "pry-nav"
43
+ gem.add_development_dependency "pry"
44
+ gem.add_development_dependency "rake"
45
+ gem.add_development_dependency "mocha"
46
+ gem.add_development_dependency "standardrb", "~> 1.0"
47
+ end
@@ -32,4 +32,5 @@ class DemoReflex < ApplicationReflex
32
32
  # end
33
33
  #
34
34
  # Learn more at: https://docs.stimulusreflex.com/rtfm/reflex-classes
35
+
35
36
  end