webpacker 5.2.1 → 5.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8190ac2a707c460f76018576f61a78d1a9f42da441d123619f708a18e3a120b
4
- data.tar.gz: 6311e214c6fa99598a2f530b4950c6c3fbf0ed4cc313d99c16bff9515444adc1
3
+ metadata.gz: 0370a980c6e40b16b54b814c08883722bd218a9dcfc8a7d6678cb2d93bba9a46
4
+ data.tar.gz: caa8625ecc6fd35bd5906007574671c542232d1fc899304d0de5dec507afbaf2
5
5
  SHA512:
6
- metadata.gz: c9a5a34f8a7fd156f6e31e6102439c19ce5247600901aab060fde1f929da8a4164379a439a8b67275ece33114a09f1fee3bb8401aede13c7369b51b9cd925a61
7
- data.tar.gz: e05b9e78d6c2b846b3ce3edd311fcca9b883137490a04be9c5cdce8cc5115efb1c5f9bcf8c1fdf6593417047d4ec9669de49975dc75088e449965577c5cedf4a
6
+ metadata.gz: 2a189c9360243cd577442a4373e2d10c98262730a0539dbfb35ea24f9fab45b365964b53f9184c3ee3c261bd561b2aa1bb504057318400b5bf94a87441ce1d1e
7
+ data.tar.gz: 53e0c0fcd2bd906ea5099c5d10bbccd6ef0e462c398b12345730dab201362e008d858c22bae89377144e4ddee18ae0942927f9c94b334816a137e79111581fa1
@@ -7,9 +7,6 @@ jobs:
7
7
  name: Ruby specs
8
8
  runs-on: ${{ matrix.os }}
9
9
  continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
10
- env:
11
- BUNDLE_JOBS: 4
12
- BUNDLE_RETRY: 3
13
10
  strategy:
14
11
  fail-fast: false
15
12
  matrix:
@@ -29,42 +26,21 @@ jobs:
29
26
  gemfile: gemfiles/Gemfile-rails.6.0.x
30
27
  experimental: [false]
31
28
  include:
32
- - ruby: head
33
- os: ubuntu-latest
34
- gemfile: gemfiles/Gemfile-rails.6.0.x
35
- experimental: true
36
- - ruby: head
37
- os: ubuntu-latest
38
- gemfile: gemfiles/Gemfile-rails-edge
39
- experimental: true
40
- - ruby: 2.6
41
- os: ubuntu-latest
42
- gemfile: gemfiles/Gemfile-rails-edge
43
- experimental: true
44
29
  - ruby: 2.7
45
30
  os: ubuntu-latest
46
31
  gemfile: gemfiles/Gemfile-rails-edge
47
32
  experimental: true
48
33
 
34
+ env:
35
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
49
36
  steps:
50
37
  - uses: actions/checkout@v2
51
- - uses: actions/cache@v2
52
- with:
53
- path: /home/runner/bundle
54
- key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
55
- restore-keys: |
56
- bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
57
38
 
58
39
  - uses: ruby/setup-ruby@v1
59
40
  with:
60
41
  ruby-version: ${{ matrix.ruby }}
61
-
62
- - name: Bundle install
63
- run: |
64
- gem install bundler -v 2.1.4
65
- bundle config path /home/runner/bundle
66
- bundle config --global gemfile ${{ matrix.gemfile }}
67
- bundle install --jobs 4 --retry 3
42
+ bundler-cache: true
43
+ rubygems: ${{ matrix.ruby < '2.6' && 'default' || 'latest' }}
68
44
 
69
45
  - name: Ruby specs
70
46
  run: bundle exec rake test
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  require: rubocop-performance
2
2
  AllCops:
3
- TargetRubyVersion: 2.2
3
+ TargetRubyVersion: 2.4
4
4
  # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
5
5
  # to ignore them, so only the ones explicitly set in this file are enabled.
6
6
  DisabledByDefault: true
@@ -13,11 +13,6 @@ AllCops:
13
13
  Style/AndOr:
14
14
  Enabled: true
15
15
 
16
- # Do not use braces for hash literals when they are the last argument of a
17
- # method call.
18
- Style/BracesAroundHashParameters:
19
- Enabled: true
20
-
21
16
  # Align `when` with `case`.
22
17
  Layout/CaseIndentation:
23
18
  Enabled: true
@@ -50,7 +45,11 @@ Style/HashSyntax:
50
45
  # extra level of indentation.
51
46
  Layout/IndentationConsistency:
52
47
  Enabled: true
53
- EnforcedStyle: rails
48
+ EnforcedStyle: indented_internal_methods
49
+
50
+ # Detect hard tabs, no hard tabs.
51
+ Layout/IndentationStyle:
52
+ Enabled: true
54
53
 
55
54
  # Two spaces, no tabs (for indentation).
56
55
  Layout/IndentationWidth:
@@ -98,12 +97,8 @@ Style/StringLiterals:
98
97
  Enabled: true
99
98
  EnforcedStyle: double_quotes
100
99
 
101
- # Detect hard tabs, no hard tabs.
102
- Layout/Tab:
103
- Enabled: true
104
-
105
100
  # Blank lines should not have any spaces.
106
- Layout/TrailingBlankLines:
101
+ Layout/TrailingEmptyLines:
107
102
  Enabled: true
108
103
 
109
104
  # No trailing whitespace.
@@ -111,7 +106,10 @@ Layout/TrailingWhitespace:
111
106
  Enabled: true
112
107
 
113
108
  # Use quotes for string literals when they are enough.
114
- Style/UnneededPercentQ:
109
+ Style/RedundantPercentQ:
110
+ Enabled: true
111
+
112
+ Lint/DeprecatedClassMethods:
115
113
  Enabled: true
116
114
 
117
115
  # Align `end` with the matching keyword or starting expression except for
@@ -123,3 +121,108 @@ Layout/EndAlignment:
123
121
  # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
124
122
  Lint/RequireParentheses:
125
123
  Enabled: true
124
+
125
+ # Use `bind_call(obj, args, ...)` instead of `bind(obj).call(args, ...)`.
126
+ Performance/BindCall:
127
+ Enabled: true
128
+
129
+ # Use `caller(n..n)` instead of `caller`.
130
+ Performance/Caller:
131
+ Enabled: true
132
+
133
+ # Use `casecmp` for case comparison.
134
+ Performance/Casecmp:
135
+ Enabled: true
136
+
137
+ # Extract Array and Hash literals outside of loops into local variables or constants.
138
+ Performance/CollectionLiteralInLoop:
139
+ Enabled: true
140
+
141
+ # Prefer `sort_by(&:foo)` instead of `sort { |a, b| a.foo <=> b.foo }`.
142
+ Performance/CompareWithBlock:
143
+ Enabled: true
144
+
145
+ # Use `count` instead of `{select,find_all,filter,reject}...{size,count,length}`.
146
+ Performance/Count:
147
+ Enabled: true
148
+
149
+ # Use `delete_prefix` instead of `gsub`.
150
+ Performance/DeletePrefix:
151
+ Enabled: true
152
+
153
+ # Use `delete_suffix` instead of `gsub`.
154
+ Performance/DeleteSuffix:
155
+ Enabled: true
156
+
157
+ # Use `detect` instead of `select.first`, `find_all.first`, `filter.first`, `select.last`, `find_all.last`, and `filter.last`.
158
+ Performance/Detect:
159
+ Enabled: true
160
+
161
+ # Use `str.{start,end}_with?(x, ..., y, ...)` instead of `str.{start,end}_with?(x, ...) || str.{start,end}_with?(y, ...)`.
162
+ Performance/DoubleStartEndWith:
163
+ Enabled: true
164
+
165
+ # Use `end_with?` instead of a regex match anchored to the end of a string.
166
+ Performance/EndWith:
167
+ Enabled: true
168
+
169
+ # Do not compute the size of statically sized objects except in constants.
170
+ Performance/FixedSize:
171
+ Enabled: true
172
+
173
+ # Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1).
174
+ Performance/FlatMap:
175
+ Enabled: true
176
+
177
+ # Use `key?` or `value?` instead of `keys.include?` or `values.include?`.
178
+ Performance/InefficientHashSearch:
179
+ Enabled: true
180
+
181
+ # Use `Range#cover?` instead of `Range#include?` (or `Range#member?`).
182
+ Performance/RangeInclude:
183
+ Enabled: true
184
+
185
+ # Use `yield` instead of `block.call`.
186
+ Performance/RedundantBlockCall:
187
+ Enabled: true
188
+
189
+ # Use `=~` instead of `String#match` or `Regexp#match` in a context where the returned `MatchData` is not needed.
190
+ Performance/RedundantMatch:
191
+ Enabled: true
192
+
193
+ # Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
194
+ Performance/RedundantMerge:
195
+ Enabled: true
196
+
197
+ # Use `match?` instead of `Regexp#match`, `String#match`, `Symbol#match`, `Regexp#===`, or `=~` when `MatchData` is not used.
198
+ Performance/RegexpMatch:
199
+ Enabled: true
200
+
201
+ # Use `reverse_each` instead of `reverse.each`.
202
+ Performance/ReverseEach:
203
+ Enabled: true
204
+
205
+ # Use `size` instead of `count` for counting the number of elements in `Array` and `Hash`.
206
+ Performance/Size:
207
+ Enabled: true
208
+
209
+ # Use `start_with?` instead of a regex match anchored to the beginning of a string.
210
+ Performance/StartWith:
211
+ Enabled: true
212
+
213
+ # Use `tr` instead of `gsub` when you are replacing the same number of characters.
214
+ # Use `delete` instead of `gsub` when you are deleting characters.
215
+ Performance/StringReplacement:
216
+ Enabled: true
217
+
218
+ # Checks for .times.map calls.
219
+ Performance/TimesMap:
220
+ Enabled: true
221
+
222
+ # Use unary plus to get an unfrozen string literal.
223
+ Performance/UnfreezeString:
224
+ Enabled: true
225
+
226
+ # Use `URI::DEFAULT_PARSER` instead of `URI::Parser.new`.
227
+ Performance/UriDefaultParser:
228
+ Enabled: true
data/CHANGELOG.md CHANGED
@@ -2,11 +2,43 @@
2
2
 
3
3
  **Please note that Webpacker 4.1.0 has an installer bug. Please use 4.2.0 or above**
4
4
 
5
- ## [[5.2.1]](https://github.com/rails/webpacker/compare/v5.2.0...5.2.1) - 2020-08-17
5
+ ## [[5.4.4]](https://github.com/rails/webpacker/compare/v5.4.3...v5.4.4) - 2023-01-31
6
+
7
+ - Fix compatibility with Ruby 3.2. (#3306)
8
+
9
+ ## [[5.4.3]](https://github.com/rails/webpacker/compare/v5.4.2...v5.4.3) - 2021-09-14
10
+
11
+ - Specify webpack-dev-server to be v3, to avoid getting webpack-dev-server v4 (#3121)
12
+
13
+ ## [[5.4.2]](https://github.com/rails/webpacker/compare/v5.4.1...v5.4.2) - 2021-08-20
14
+
15
+ - Fix babel warning about private-methods in @babel/plugin-proposal-private-property-in-object as well.
16
+
17
+ ## [[5.4.1]](https://github.com/rails/webpacker/compare/v5.4.0...v5.4.1) - 2021-08-20
18
+
19
+ - Update all dependencies within the same major version (#3120)
20
+
21
+ - Fix babel warning about private-methods (#3016)
22
+
23
+ ## [[5.4.0]](https://github.com/rails/webpacker/compare/v5.3.0...v5.4.0) - 2021-05-18
24
+
25
+ - Fix compatibility with Psych 4
26
+
27
+ ## [[5.3.0]](https://github.com/rails/webpacker/compare/v5.2.1...v5.3.0) - 2021-04-27
28
+
29
+ - Adds experimental Yarn 2 support. Note you must manually set `nodeLinker: node-modules` in your `.yarnrc.yml`.
30
+
31
+ - Keep backups, even when they're old [#2912](https://github.com/rails/webpacker/pull/2912)
32
+
33
+ ## [[5.2.2]](https://github.com/rails/webpacker/compare/v5.2.1...v5.2.2) - 2021-04-27
34
+
35
+ - Bump deps and remove node-sass [#2997](https://github.com/rails/webpacker/pull/2997).
36
+
37
+ ## [[5.2.1]](https://github.com/rails/webpacker/compare/v5.2.0...v5.2.1) - 2020-08-17
6
38
 
7
39
  - Revert [#1311](https://github.com/rails/webpacker/pull/1311).
8
40
 
9
- ## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...5.2.0) - 2020-08-16
41
+ ## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...v5.2.0) - 2020-08-16
10
42
 
11
43
  - Bump dependencies and fixes. See [diff](https://github.com/rails/webpacker/compare/v5.1.1...5-x-stable) for changes.
12
44
 
data/CONTRIBUTING.md CHANGED
@@ -9,7 +9,7 @@ yarn
9
9
  ```
10
10
 
11
11
  ## Making sure your changes pass all tests
12
- There are a number of automated checks which run on Travis CI when a pull request is created.
12
+ There are a number of automated checks which run on Github Actions when a pull request is created.
13
13
  You can run those checks on your own locally to make sure that your changes would not break the CI build.
14
14
 
15
15
  ### 1. Check the code for JavaScript style violations
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webpacker (5.2.1)
4
+ webpacker (5.4.4)
5
5
  activesupport (>= 5.2)
6
6
  rack-proxy (>= 0.6.1)
7
7
  railties (>= 5.2)
@@ -10,150 +10,159 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.0.3.2)
14
- actionpack (= 6.0.3.2)
13
+ actioncable (6.1.3.2)
14
+ actionpack (= 6.1.3.2)
15
+ activesupport (= 6.1.3.2)
15
16
  nio4r (~> 2.0)
16
17
  websocket-driver (>= 0.6.1)
17
- actionmailbox (6.0.3.2)
18
- actionpack (= 6.0.3.2)
19
- activejob (= 6.0.3.2)
20
- activerecord (= 6.0.3.2)
21
- activestorage (= 6.0.3.2)
22
- activesupport (= 6.0.3.2)
18
+ actionmailbox (6.1.3.2)
19
+ actionpack (= 6.1.3.2)
20
+ activejob (= 6.1.3.2)
21
+ activerecord (= 6.1.3.2)
22
+ activestorage (= 6.1.3.2)
23
+ activesupport (= 6.1.3.2)
23
24
  mail (>= 2.7.1)
24
- actionmailer (6.0.3.2)
25
- actionpack (= 6.0.3.2)
26
- actionview (= 6.0.3.2)
27
- activejob (= 6.0.3.2)
25
+ actionmailer (6.1.3.2)
26
+ actionpack (= 6.1.3.2)
27
+ actionview (= 6.1.3.2)
28
+ activejob (= 6.1.3.2)
29
+ activesupport (= 6.1.3.2)
28
30
  mail (~> 2.5, >= 2.5.4)
29
31
  rails-dom-testing (~> 2.0)
30
- actionpack (6.0.3.2)
31
- actionview (= 6.0.3.2)
32
- activesupport (= 6.0.3.2)
33
- rack (~> 2.0, >= 2.0.8)
32
+ actionpack (6.1.3.2)
33
+ actionview (= 6.1.3.2)
34
+ activesupport (= 6.1.3.2)
35
+ rack (~> 2.0, >= 2.0.9)
34
36
  rack-test (>= 0.6.3)
35
37
  rails-dom-testing (~> 2.0)
36
38
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.0.3.2)
38
- actionpack (= 6.0.3.2)
39
- activerecord (= 6.0.3.2)
40
- activestorage (= 6.0.3.2)
41
- activesupport (= 6.0.3.2)
39
+ actiontext (6.1.3.2)
40
+ actionpack (= 6.1.3.2)
41
+ activerecord (= 6.1.3.2)
42
+ activestorage (= 6.1.3.2)
43
+ activesupport (= 6.1.3.2)
42
44
  nokogiri (>= 1.8.5)
43
- actionview (6.0.3.2)
44
- activesupport (= 6.0.3.2)
45
+ actionview (6.1.3.2)
46
+ activesupport (= 6.1.3.2)
45
47
  builder (~> 3.1)
46
48
  erubi (~> 1.4)
47
49
  rails-dom-testing (~> 2.0)
48
50
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.0.3.2)
50
- activesupport (= 6.0.3.2)
51
+ activejob (6.1.3.2)
52
+ activesupport (= 6.1.3.2)
51
53
  globalid (>= 0.3.6)
52
- activemodel (6.0.3.2)
53
- activesupport (= 6.0.3.2)
54
- activerecord (6.0.3.2)
55
- activemodel (= 6.0.3.2)
56
- activesupport (= 6.0.3.2)
57
- activestorage (6.0.3.2)
58
- actionpack (= 6.0.3.2)
59
- activejob (= 6.0.3.2)
60
- activerecord (= 6.0.3.2)
61
- marcel (~> 0.3.1)
62
- activesupport (6.0.3.2)
54
+ activemodel (6.1.3.2)
55
+ activesupport (= 6.1.3.2)
56
+ activerecord (6.1.3.2)
57
+ activemodel (= 6.1.3.2)
58
+ activesupport (= 6.1.3.2)
59
+ activestorage (6.1.3.2)
60
+ actionpack (= 6.1.3.2)
61
+ activejob (= 6.1.3.2)
62
+ activerecord (= 6.1.3.2)
63
+ activesupport (= 6.1.3.2)
64
+ marcel (~> 1.0.0)
65
+ mini_mime (~> 1.0.2)
66
+ activesupport (6.1.3.2)
63
67
  concurrent-ruby (~> 1.0, >= 1.0.2)
64
- i18n (>= 0.7, < 2)
65
- minitest (~> 5.1)
66
- tzinfo (~> 1.1)
67
- zeitwerk (~> 2.2, >= 2.2.2)
68
- ast (2.4.1)
68
+ i18n (>= 1.6, < 2)
69
+ minitest (>= 5.1)
70
+ tzinfo (~> 2.0)
71
+ zeitwerk (~> 2.3)
72
+ ast (2.4.2)
69
73
  builder (3.2.4)
70
74
  byebug (11.1.3)
71
- concurrent-ruby (1.1.6)
75
+ concurrent-ruby (1.1.8)
72
76
  crass (1.0.6)
73
- erubi (1.9.0)
77
+ erubi (1.10.0)
74
78
  globalid (0.4.2)
75
79
  activesupport (>= 4.2.0)
76
- i18n (1.8.5)
80
+ i18n (1.8.10)
77
81
  concurrent-ruby (~> 1.0)
78
- jaro_winkler (1.5.4)
79
- loofah (2.6.0)
82
+ loofah (2.9.1)
80
83
  crass (~> 1.0.2)
81
84
  nokogiri (>= 1.5.9)
82
85
  mail (2.7.1)
83
86
  mini_mime (>= 0.1.1)
84
- marcel (0.3.3)
85
- mimemagic (~> 0.3.2)
87
+ marcel (1.0.1)
86
88
  method_source (1.0.0)
87
- mimemagic (0.3.5)
88
- mini_mime (1.0.2)
89
- mini_portile2 (2.4.0)
90
- minitest (5.14.1)
91
- nio4r (2.5.2)
92
- nokogiri (1.10.10)
93
- mini_portile2 (~> 2.4.0)
94
- parallel (1.19.2)
95
- parser (2.7.1.4)
89
+ mini_mime (1.0.3)
90
+ mini_portile2 (2.5.1)
91
+ minitest (5.14.4)
92
+ nio4r (2.5.7)
93
+ nokogiri (1.11.4)
94
+ mini_portile2 (~> 2.5.0)
95
+ racc (~> 1.4)
96
+ parallel (1.20.1)
97
+ parser (3.0.1.1)
96
98
  ast (~> 2.4.1)
99
+ racc (1.5.2)
97
100
  rack (2.2.3)
98
101
  rack-proxy (0.6.5)
99
102
  rack
100
103
  rack-test (1.1.0)
101
104
  rack (>= 1.0, < 3)
102
- rails (6.0.3.2)
103
- actioncable (= 6.0.3.2)
104
- actionmailbox (= 6.0.3.2)
105
- actionmailer (= 6.0.3.2)
106
- actionpack (= 6.0.3.2)
107
- actiontext (= 6.0.3.2)
108
- actionview (= 6.0.3.2)
109
- activejob (= 6.0.3.2)
110
- activemodel (= 6.0.3.2)
111
- activerecord (= 6.0.3.2)
112
- activestorage (= 6.0.3.2)
113
- activesupport (= 6.0.3.2)
114
- bundler (>= 1.3.0)
115
- railties (= 6.0.3.2)
105
+ rails (6.1.3.2)
106
+ actioncable (= 6.1.3.2)
107
+ actionmailbox (= 6.1.3.2)
108
+ actionmailer (= 6.1.3.2)
109
+ actionpack (= 6.1.3.2)
110
+ actiontext (= 6.1.3.2)
111
+ actionview (= 6.1.3.2)
112
+ activejob (= 6.1.3.2)
113
+ activemodel (= 6.1.3.2)
114
+ activerecord (= 6.1.3.2)
115
+ activestorage (= 6.1.3.2)
116
+ activesupport (= 6.1.3.2)
117
+ bundler (>= 1.15.0)
118
+ railties (= 6.1.3.2)
116
119
  sprockets-rails (>= 2.0.0)
117
120
  rails-dom-testing (2.0.3)
118
121
  activesupport (>= 4.2.0)
119
122
  nokogiri (>= 1.6)
120
123
  rails-html-sanitizer (1.3.0)
121
124
  loofah (~> 2.3)
122
- railties (6.0.3.2)
123
- actionpack (= 6.0.3.2)
124
- activesupport (= 6.0.3.2)
125
+ railties (6.1.3.2)
126
+ actionpack (= 6.1.3.2)
127
+ activesupport (= 6.1.3.2)
125
128
  method_source
126
129
  rake (>= 0.8.7)
127
- thor (>= 0.20.3, < 2.0)
130
+ thor (~> 1.0)
128
131
  rainbow (3.0.0)
129
- rake (13.0.1)
130
- rubocop (0.68.1)
131
- jaro_winkler (~> 1.5.1)
132
+ rake (13.0.3)
133
+ regexp_parser (2.1.1)
134
+ rexml (3.2.5)
135
+ rubocop (0.93.1)
132
136
  parallel (~> 1.10)
133
- parser (>= 2.5, != 2.5.1.1)
137
+ parser (>= 2.7.1.5)
134
138
  rainbow (>= 2.2.2, < 4.0)
139
+ regexp_parser (>= 1.8)
140
+ rexml
141
+ rubocop-ast (>= 0.6.0)
135
142
  ruby-progressbar (~> 1.7)
136
- unicode-display_width (>= 1.4.0, < 1.6)
137
- rubocop-performance (1.3.0)
138
- rubocop (>= 0.68.0)
139
- ruby-progressbar (1.10.1)
140
- semantic_range (2.3.0)
143
+ unicode-display_width (>= 1.4.0, < 2.0)
144
+ rubocop-ast (1.5.0)
145
+ parser (>= 3.0.1.1)
146
+ rubocop-performance (1.10.2)
147
+ rubocop (>= 0.90.0, < 2.0)
148
+ rubocop-ast (>= 0.4.0)
149
+ ruby-progressbar (1.11.0)
150
+ semantic_range (3.0.0)
141
151
  sprockets (4.0.2)
142
152
  concurrent-ruby (~> 1.0)
143
153
  rack (> 1, < 3)
144
- sprockets-rails (3.2.1)
154
+ sprockets-rails (3.2.2)
145
155
  actionpack (>= 4.0)
146
156
  activesupport (>= 4.0)
147
157
  sprockets (>= 3.0.0)
148
- thor (1.0.1)
149
- thread_safe (0.3.6)
150
- tzinfo (1.2.7)
151
- thread_safe (~> 0.1)
152
- unicode-display_width (1.5.0)
158
+ thor (1.1.0)
159
+ tzinfo (2.0.4)
160
+ concurrent-ruby (~> 1.0)
161
+ unicode-display_width (1.7.0)
153
162
  websocket-driver (0.7.3)
154
163
  websocket-extensions (>= 0.1.0)
155
164
  websocket-extensions (0.1.5)
156
- zeitwerk (2.4.0)
165
+ zeitwerk (2.4.2)
157
166
 
158
167
  PLATFORMS
159
168
  ruby
@@ -165,10 +174,10 @@ DEPENDENCIES
165
174
  rack-proxy
166
175
  rails
167
176
  rake (>= 11.1)
168
- rubocop (< 0.69)
177
+ rubocop (= 0.93.1)
169
178
  rubocop-performance
170
179
  semantic_range
171
180
  webpacker!
172
181
 
173
182
  BUNDLED WITH
174
- 2.1.4
183
+ 2.2.3
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Webpacker
2
2
 
3
- [![Build Status](https://travis-ci.org/rails/webpacker.svg?branch=master)](https://travis-ci.org/rails/webpacker)
3
+ [![Ruby specs](https://github.com/rails/webpacker/workflows/Ruby%20specs/badge.svg)](https://github.com/rails/webpacker/actions)
4
+ [![Jest specs](https://github.com/rails/webpacker/workflows/Jest%20specs/badge.svg)](https://github.com/rails/webpacker/actions)
5
+ [![Rubocop](https://github.com/rails/webpacker/workflows/Rubocop/badge.svg)](https://github.com/rails/webpacker/actions)
6
+ [![JS lint](https://github.com/rails/webpacker/workflows/JS%20lint/badge.svg)](https://github.com/rails/webpacker/actions)
7
+
4
8
  [![node.js](https://img.shields.io/badge/node-%3E%3D%2010.17.0-brightgreen.svg)](https://www.npmjs.com/package/@rails/webpacker)
5
9
  [![Gem](https://img.shields.io/gem/v/webpacker.svg)](https://rubygems.org/gems/webpacker)
6
10
 
@@ -4,7 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4
4
 
5
5
  gemspec path: "../"
6
6
 
7
- gem "rails", github: "rails/rails"
7
+ gem "rails", github: "rails/rails", branch: "main"
8
8
  gem "arel", github: "rails/arel"
9
9
  gem "rake", ">= 11.1"
10
10
  gem "rack-proxy", require: false
@@ -53,6 +53,18 @@ module.exports = function(api) {
53
53
  useBuiltIns: true
54
54
  }
55
55
  ],
56
+ [
57
+ '@babel/plugin-proposal-private-methods',
58
+ {
59
+ loose: true
60
+ }
61
+ ],
62
+ [
63
+ '@babel/plugin-proposal-private-property-in-object',
64
+ {
65
+ loose: true
66
+ }
67
+ ],
56
68
  [
57
69
  '@babel/plugin-transform-runtime',
58
70
  {
@@ -62,6 +62,18 @@ module.exports = function(api) {
62
62
  useBuiltIns: true
63
63
  }
64
64
  ],
65
+ [
66
+ '@babel/plugin-proposal-private-methods',
67
+ {
68
+ loose: true
69
+ }
70
+ ],
71
+ [
72
+ '@babel/plugin-proposal-private-property-in-object',
73
+ {
74
+ loose: true
75
+ }
76
+ ],
65
77
  [
66
78
  '@babel/plugin-transform-runtime',
67
79
  {
@@ -13,7 +13,7 @@ copy_file "#{__dir__}/config/babel.config.js", "babel.config.js"
13
13
  say "Copying .browserslistrc to app root directory"
14
14
  copy_file "#{__dir__}/config/.browserslistrc", ".browserslistrc"
15
15
 
16
- if Dir.exists?(Webpacker.config.source_path)
16
+ if Dir.exist?(Webpacker.config.source_path)
17
17
  say "The JavaScript app source directory already exists"
18
18
  else
19
19
  say "Creating JavaScript app source directory"
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  apply "#{__dir__}/binstubs.rb"
24
24
 
25
- if File.exists?(".gitignore")
25
+ if File.exist?(".gitignore")
26
26
  append_to_file ".gitignore" do
27
27
  "\n" +
28
28
  "/public/packs\n" +
@@ -34,7 +34,7 @@ if File.exists?(".gitignore")
34
34
  end
35
35
  end
36
36
 
37
- if Webpacker::VERSION =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
37
+ if Webpacker::VERSION.match?(/^[0-9]+\.[0-9]+\.[0-9]+$/)
38
38
  say "Installing all JavaScript dependencies [#{Webpacker::VERSION}]"
39
39
  run "yarn add @rails/webpacker@#{Webpacker::VERSION}"
40
40
  else
@@ -42,8 +42,16 @@ else
42
42
  run "yarn add @rails/webpacker@next"
43
43
  end
44
44
 
45
+ package_json = File.read("#{__dir__}/../../package.json")
46
+ webpack_version = package_json.match(/"webpack": "(.*)"/)[1]
47
+ webpack_cli_version = package_json.match(/"webpack-cli": "(.*)"/)[1]
48
+
49
+ # needed for experimental Yarn 2 support and should not harm Yarn 1
50
+ say "Installing webpack and webpack-cli as direct dependencies"
51
+ run "yarn add webpack@#{webpack_version} webpack-cli@#{webpack_cli_version}"
52
+
45
53
  say "Installing dev server for live reloading"
46
- run "yarn add --dev webpack-dev-server"
54
+ run "yarn add --dev webpack-dev-server@^3"
47
55
 
48
56
  if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 1
49
57
  say "You need to allow webpack-dev-server host as allowed origin for connect-src.", :yellow