webpacker 5.4.4 → 6.0.0.beta

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 (159) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.js +1 -1
  3. data/.github/workflows/ruby.yml +28 -4
  4. data/.gitignore +2 -0
  5. data/.node-version +1 -1
  6. data/.rubocop.yml +3 -111
  7. data/6_0_upgrade.md +43 -0
  8. data/CHANGELOG.md +19 -26
  9. data/Gemfile.lock +91 -94
  10. data/README.md +215 -98
  11. data/gemfiles/Gemfile-rails-edge +1 -1
  12. data/lib/install/config/webpack/base.js +3 -0
  13. data/lib/install/config/webpack/development.js +2 -2
  14. data/lib/install/config/webpack/production.js +2 -2
  15. data/lib/install/config/webpack/test.js +2 -2
  16. data/lib/install/config/webpacker.yml +8 -37
  17. data/lib/install/javascript/packs/application.css +9 -0
  18. data/lib/install/javascript/packs/application.js +3 -1
  19. data/lib/install/template.rb +33 -27
  20. data/lib/tasks/webpacker/binstubs.rake +6 -4
  21. data/lib/tasks/webpacker/check_binstubs.rake +4 -4
  22. data/lib/tasks/webpacker/check_yarn.rake +1 -1
  23. data/lib/tasks/webpacker/compile.rake +4 -2
  24. data/lib/tasks/webpacker/info.rake +12 -10
  25. data/lib/tasks/webpacker/install.rake +6 -4
  26. data/lib/tasks/webpacker/verify_install.rake +2 -1
  27. data/lib/tasks/webpacker/yarn_install.rake +9 -7
  28. data/lib/tasks/webpacker.rake +2 -11
  29. data/lib/webpacker/compiler.rb +15 -8
  30. data/lib/webpacker/configuration.rb +10 -45
  31. data/lib/webpacker/dev_server_runner.rb +21 -2
  32. data/lib/webpacker/env.rb +1 -5
  33. data/lib/webpacker/helper.rb +22 -32
  34. data/lib/webpacker/manifest.rb +1 -1
  35. data/lib/webpacker/version.rb +1 -1
  36. data/lib/webpacker/webpack_runner.rb +5 -0
  37. data/package/__tests__/config.js +5 -37
  38. data/package/__tests__/development.js +9 -11
  39. data/package/__tests__/env.js +12 -4
  40. data/package/__tests__/production.js +6 -6
  41. data/package/__tests__/staging.js +7 -6
  42. data/package/__tests__/test.js +4 -5
  43. data/package/babel/preset.js +55 -0
  44. data/package/config.js +3 -11
  45. data/package/env.js +8 -2
  46. data/package/environments/__tests__/base.js +15 -47
  47. data/package/environments/base.js +62 -125
  48. data/package/environments/development.js +45 -44
  49. data/package/environments/production.js +63 -68
  50. data/package/environments/test.js +2 -2
  51. data/package/index.js +13 -8
  52. data/package/rules/babel.js +9 -7
  53. data/package/rules/coffee.js +6 -0
  54. data/package/rules/erb.js +15 -0
  55. data/package/rules/file.js +19 -19
  56. data/package/rules/index.js +15 -18
  57. data/package/rules/less.js +22 -0
  58. data/package/rules/sass.js +10 -10
  59. data/package/rules/svg.js +20 -0
  60. data/package/utils/get_style_rule.js +26 -36
  61. data/package/utils/helpers.js +26 -35
  62. data/package.json +29 -45
  63. data/test/compiler_test.rb +0 -12
  64. data/test/configuration_test.rb +1 -32
  65. data/test/dev_server_runner_test.rb +24 -5
  66. data/test/engine_rake_tasks_test.rb +39 -0
  67. data/test/helper_test.rb +24 -30
  68. data/test/mounted_app/Rakefile +4 -0
  69. data/test/mounted_app/test/dummy/Rakefile +3 -0
  70. data/test/mounted_app/test/dummy/bin/rails +3 -0
  71. data/test/mounted_app/test/dummy/bin/rake +3 -0
  72. data/test/mounted_app/test/dummy/config/application.rb +10 -0
  73. data/test/mounted_app/test/dummy/config/environment.rb +3 -0
  74. data/test/mounted_app/test/dummy/config/webpacker.yml +75 -0
  75. data/test/mounted_app/test/dummy/config.ru +5 -0
  76. data/test/mounted_app/test/dummy/package.json +7 -0
  77. data/test/rake_tasks_test.rb +1 -10
  78. data/test/test_app/config/webpacker.yml +1 -25
  79. data/test/test_app/config/webpacker_public_root.yml +0 -1
  80. data/test/test_app/public/packs/manifest.json +17 -13
  81. data/test/test_app/some.config.js +0 -0
  82. data/test/webpack_runner_test.rb +9 -3
  83. data/yarn.lock +2505 -4943
  84. metadata +37 -82
  85. data/docs/assets.md +0 -119
  86. data/docs/cloud9.md +0 -310
  87. data/docs/css.md +0 -308
  88. data/docs/deployment.md +0 -130
  89. data/docs/docker.md +0 -68
  90. data/docs/engines.md +0 -213
  91. data/docs/env.md +0 -63
  92. data/docs/es6.md +0 -72
  93. data/docs/folder-structure.md +0 -66
  94. data/docs/integrations.md +0 -220
  95. data/docs/misc.md +0 -23
  96. data/docs/props.md +0 -223
  97. data/docs/target.md +0 -22
  98. data/docs/testing.md +0 -136
  99. data/docs/troubleshooting.md +0 -158
  100. data/docs/typescript.md +0 -190
  101. data/docs/v4-upgrade.md +0 -142
  102. data/docs/webpack-dev-server.md +0 -92
  103. data/docs/webpack.md +0 -364
  104. data/docs/yarn.md +0 -23
  105. data/lib/install/angular.rb +0 -23
  106. data/lib/install/coffee.rb +0 -25
  107. data/lib/install/config/.browserslistrc +0 -1
  108. data/lib/install/config/babel.config.js +0 -82
  109. data/lib/install/config/postcss.config.js +0 -12
  110. data/lib/install/config/webpack/environment.js +0 -3
  111. data/lib/install/elm.rb +0 -39
  112. data/lib/install/erb.rb +0 -25
  113. data/lib/install/examples/angular/hello_angular/app/app.component.ts +0 -9
  114. data/lib/install/examples/angular/hello_angular/app/app.module.ts +0 -16
  115. data/lib/install/examples/angular/hello_angular/index.ts +0 -8
  116. data/lib/install/examples/angular/hello_angular/polyfills.ts +0 -73
  117. data/lib/install/examples/angular/hello_angular.js +0 -7
  118. data/lib/install/examples/coffee/hello_coffee.coffee +0 -4
  119. data/lib/install/examples/elm/Main.elm +0 -55
  120. data/lib/install/examples/elm/hello_elm.js +0 -16
  121. data/lib/install/examples/erb/hello_erb.js.erb +0 -6
  122. data/lib/install/examples/react/babel.config.js +0 -99
  123. data/lib/install/examples/react/hello_react.jsx +0 -26
  124. data/lib/install/examples/react/tsconfig.json +0 -21
  125. data/lib/install/examples/stimulus/application.js +0 -1
  126. data/lib/install/examples/stimulus/controllers/hello_controller.js +0 -18
  127. data/lib/install/examples/stimulus/controllers/index.js +0 -9
  128. data/lib/install/examples/svelte/app.svelte +0 -11
  129. data/lib/install/examples/svelte/hello_svelte.js +0 -20
  130. data/lib/install/examples/typescript/hello_typescript.ts +0 -4
  131. data/lib/install/examples/typescript/tsconfig.json +0 -24
  132. data/lib/install/examples/vue/app.vue +0 -22
  133. data/lib/install/examples/vue/hello_vue.js +0 -72
  134. data/lib/install/loaders/coffee.js +0 -6
  135. data/lib/install/loaders/elm.js +0 -25
  136. data/lib/install/loaders/erb.js +0 -11
  137. data/lib/install/loaders/svelte.js +0 -9
  138. data/lib/install/loaders/vue.js +0 -6
  139. data/lib/install/react.rb +0 -18
  140. data/lib/install/stimulus.rb +0 -12
  141. data/lib/install/svelte.rb +0 -29
  142. data/lib/install/typescript.rb +0 -39
  143. data/lib/install/vue.rb +0 -49
  144. data/lib/tasks/installers.rake +0 -42
  145. data/package/config_types/__tests__/config_list.js +0 -118
  146. data/package/config_types/__tests__/config_object.js +0 -43
  147. data/package/config_types/config_list.js +0 -75
  148. data/package/config_types/config_object.js +0 -55
  149. data/package/config_types/index.js +0 -7
  150. data/package/rules/module.css.js +0 -3
  151. data/package/rules/module.sass.js +0 -8
  152. data/package/rules/node_modules.js +0 -22
  153. data/package/utils/__tests__/deep_assign.js +0 -32
  154. data/package/utils/__tests__/deep_merge.js +0 -10
  155. data/package/utils/__tests__/get_style_rule.js +0 -65
  156. data/package/utils/__tests__/objectify.js +0 -9
  157. data/package/utils/deep_assign.js +0 -22
  158. data/package/utils/deep_merge.js +0 -22
  159. data/package/utils/objectify.js +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0370a980c6e40b16b54b814c08883722bd218a9dcfc8a7d6678cb2d93bba9a46
4
- data.tar.gz: caa8625ecc6fd35bd5906007574671c542232d1fc899304d0de5dec507afbaf2
3
+ metadata.gz: 19faa9561fccec8279b1d8031c2a386c44554ba0f24acc048ec4856853900fc5
4
+ data.tar.gz: a10901426f6b8ff524c243ddc21392ada8cf189fd85d63d3a6b558cd71b4237f
5
5
  SHA512:
6
- metadata.gz: 2a189c9360243cd577442a4373e2d10c98262730a0539dbfb35ea24f9fab45b365964b53f9184c3ee3c261bd561b2aa1bb504057318400b5bf94a87441ce1d1e
7
- data.tar.gz: 53e0c0fcd2bd906ea5099c5d10bbccd6ef0e462c398b12345730dab201362e008d858c22bae89377144e4ddee18ae0942927f9c94b334816a137e79111581fa1
6
+ metadata.gz: cda09944b075aa8da83a0c568f656d63b040b4c110b5a87f1e5962b60c24e63d70020a4648c1133674611a64178f048ad081128ea891df1950f82957e7a2a5da
7
+ data.tar.gz: aa72ec1ac73614d32405ca4dfbfbd05e910167599b30e9ed91b3360bdbc0ba12db577fb55096942f6e1a468e21e1e05ccf8bfc5b80596fb3f68e187a73fe1a63
data/.eslintrc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- extends: 'airbnb',
2
+ extends: ['airbnb', 'prettier'],
3
3
  rules: {
4
4
  'comma-dangle': ['error', 'never'],
5
5
  'import/no-unresolved': 'off',
@@ -7,6 +7,9 @@ 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
10
13
  strategy:
11
14
  fail-fast: false
12
15
  matrix:
@@ -26,21 +29,42 @@ jobs:
26
29
  gemfile: gemfiles/Gemfile-rails.6.0.x
27
30
  experimental: [false]
28
31
  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
29
44
  - ruby: 2.7
30
45
  os: ubuntu-latest
31
46
  gemfile: gemfiles/Gemfile-rails-edge
32
47
  experimental: true
33
48
 
34
- env:
35
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
36
49
  steps:
37
50
  - 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-
38
57
 
39
58
  - uses: ruby/setup-ruby@v1
40
59
  with:
41
60
  ruby-version: ${{ matrix.ruby }}
42
- bundler-cache: true
43
- rubygems: ${{ matrix.ruby < '2.6' && 'default' || 'latest' }}
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
44
68
 
45
69
  - name: Ruby specs
46
70
  run: bundle exec rake test
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  /.bundle
2
2
  /pkg
3
+ /test/mounted_app/test/dummy/log
3
4
  /test/test_app/log
4
5
  node_modules
5
6
  .byebug_history
@@ -9,3 +10,4 @@ yarn-error.log*
9
10
  .yarn-integrity
10
11
  /log
11
12
  gemfiles/*.lock
13
+ .DS_Store
data/.node-version CHANGED
@@ -1 +1 @@
1
- 10.17.0
1
+ 10.22.1
data/.rubocop.yml CHANGED
@@ -5,9 +5,9 @@ AllCops:
5
5
  # to ignore them, so only the ones explicitly set in this file are enabled.
6
6
  DisabledByDefault: true
7
7
  Exclude:
8
- - 'lib/install/templates/**'
9
- - 'vendor/**/*'
10
- - 'node_modules/**/*'
8
+ - "lib/install/templates/**"
9
+ - "vendor/**/*"
10
+ - "node_modules/**/*"
11
11
 
12
12
  # Prefer &&/|| over and/or.
13
13
  Style/AndOr:
@@ -109,9 +109,6 @@ Layout/TrailingWhitespace:
109
109
  Style/RedundantPercentQ:
110
110
  Enabled: true
111
111
 
112
- Lint/DeprecatedClassMethods:
113
- Enabled: true
114
-
115
112
  # Align `end` with the matching keyword or starting expression except for
116
113
  # assignments, where it should be aligned with the LHS.
117
114
  Layout/EndAlignment:
@@ -121,108 +118,3 @@ Layout/EndAlignment:
121
118
  # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
122
119
  Lint/RequireParentheses:
123
120
  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/6_0_upgrade.md ADDED
@@ -0,0 +1,43 @@
1
+ # To webpacker v6 from v5
2
+
3
+ This guide aims to help you migrating to webpacker 6. If you are using
4
+ vanilla webpacker install then hopefully, the upgrade should be really
5
+ straightforward.
6
+
7
+ ## Preparation
8
+
9
+ - Rename `config/webpack` to `config/webpack_old`
10
+ - Rename `config/webpacker.yml` to `config/webpacker_old.yml`
11
+ - Upgrade webpacker
12
+
13
+ ```ruby
14
+ # Gemfile
15
+ gem 'webpacker', '~> 6.x'
16
+ ```
17
+
18
+ ```
19
+ bundle
20
+ ```
21
+
22
+ ```bash
23
+ yarn add @rails/webpacker@next
24
+ ```
25
+
26
+ ```bash
27
+ bundle exec rails webpacker:install
28
+ ```
29
+
30
+ - Change `javascript_pack_tag` and `stylesheet_pack_tag` to `javascript_packs_with_chunks_tag` and
31
+ `stylesheet_packs_with_chunks_tag`
32
+
33
+ - If you are using any integrations like css, react or typescript. Please see https://github.com/rails/webpacker#integrations section on how they work in v6.0
34
+
35
+ - Copy over any custom webpack config from `config/webpack_old`
36
+
37
+ ```js
38
+ // config/webpack/base.js
39
+ const { webpackConfig, merge } = require('@rails/webpacker')
40
+ const customConfig = require('./custom')
41
+
42
+ module.exports = merge(webpackConfig, customConfig)
43
+ ```
data/CHANGELOG.md CHANGED
@@ -2,43 +2,36 @@
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.4.4]](https://github.com/rails/webpacker/compare/v5.4.3...v5.4.4) - 2023-01-31
5
+ ## [[6.0.0]](https://github.com/rails/webpacker/compare/v5.1.1...master) - 2021-TBD
6
6
 
7
- - Fix compatibility with Ruby 3.2. (#3306)
7
+ - `node_modules` will no longer be compiled by default. This primarily fixes [rails issue #35501](https://github.com/rails/rails/issues/35501) as well as [numerous other webpacker issues](https://github.com/rails/webpacker/issues/2131#issuecomment-581618497). The disabled loader can still be required explicitly via:
8
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
9
+ ```js
10
+ const nodeModules = require('@rails/webpacker/rules/node_modules.js')
11
+ environment.loaders.append('nodeModules', nodeModules)
12
+ ```
28
13
 
14
+ - If you have added `environment.loaders.delete('nodeModules')` to your `environment.js`, this must be removed or you will receive an error (`Item nodeModules not found`).
15
+ - The install task will now set the `extract_css` default to `true` in all environments and generate a separate `application.css` file for the default `application` pack, as supported by multiple files per entry introduced in 5.0.0. [#2608](https://github.com/rails/webpacker/pull/2608)
16
+ - Webpacker's wrapper to the `splitChunks()` API will now default `runtimeChunk: 'single'` which will help prevent potential issues when using multiple entry points per page [#2708](https://github.com/rails/webpacker/pull/2708).
17
+ - Changes `@babel/preset-env` modules option to `'auto'` per recommendation in the Babel docs [#2709](https://github.com/rails/webpacker/pull/2709)
29
18
  - Adds experimental Yarn 2 support. Note you must manually set `nodeLinker: node-modules` in your `.yarnrc.yml`.
30
19
 
31
- - Keep backups, even when they're old [#2912](https://github.com/rails/webpacker/pull/2912)
20
+ ### Breaking changes
32
21
 
33
- ## [[5.2.2]](https://github.com/rails/webpacker/compare/v5.2.1...v5.2.2) - 2021-04-27
22
+ - Simple webpack config
23
+ - Removed integration installers
24
+ - Splitchunks enabled by default
25
+ - CSS extraction enabled by default
26
+ - Optional CSS support
34
27
 
35
- - Bump deps and remove node-sass [#2997](https://github.com/rails/webpacker/pull/2997).
28
+ Please see upgrade [guide](./6_0_upgrade.md)
36
29
 
37
- ## [[5.2.1]](https://github.com/rails/webpacker/compare/v5.2.0...v5.2.1) - 2020-08-17
30
+ ## [[5.2.1]](https://github.com/rails/webpacker/compare/v5.2.0...5.2.1) - 2020-08-17
38
31
 
39
32
  - Revert [#1311](https://github.com/rails/webpacker/pull/1311).
40
33
 
41
- ## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...v5.2.0) - 2020-08-16
34
+ ## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...5.2.0) - 2020-08-16
42
35
 
43
36
  - Bump dependencies and fixes. See [diff](https://github.com/rails/webpacker/compare/v5.1.1...5-x-stable) for changes.
44
37
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webpacker (5.4.4)
4
+ webpacker (6.0.0.beta)
5
5
  activesupport (>= 5.2)
6
6
  rack-proxy (>= 0.6.1)
7
7
  railties (>= 5.2)
@@ -10,128 +10,124 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.1.3.2)
14
- actionpack (= 6.1.3.2)
15
- activesupport (= 6.1.3.2)
13
+ actioncable (6.0.3.2)
14
+ actionpack (= 6.0.3.2)
16
15
  nio4r (~> 2.0)
17
16
  websocket-driver (>= 0.6.1)
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)
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)
24
23
  mail (>= 2.7.1)
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)
24
+ actionmailer (6.0.3.2)
25
+ actionpack (= 6.0.3.2)
26
+ actionview (= 6.0.3.2)
27
+ activejob (= 6.0.3.2)
30
28
  mail (~> 2.5, >= 2.5.4)
31
29
  rails-dom-testing (~> 2.0)
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)
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)
36
34
  rack-test (>= 0.6.3)
37
35
  rails-dom-testing (~> 2.0)
38
36
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
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)
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)
44
42
  nokogiri (>= 1.8.5)
45
- actionview (6.1.3.2)
46
- activesupport (= 6.1.3.2)
43
+ actionview (6.0.3.2)
44
+ activesupport (= 6.0.3.2)
47
45
  builder (~> 3.1)
48
46
  erubi (~> 1.4)
49
47
  rails-dom-testing (~> 2.0)
50
48
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (6.1.3.2)
52
- activesupport (= 6.1.3.2)
49
+ activejob (6.0.3.2)
50
+ activesupport (= 6.0.3.2)
53
51
  globalid (>= 0.3.6)
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)
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)
67
63
  concurrent-ruby (~> 1.0, >= 1.0.2)
68
- i18n (>= 1.6, < 2)
69
- minitest (>= 5.1)
70
- tzinfo (~> 2.0)
71
- zeitwerk (~> 2.3)
72
- ast (2.4.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)
73
69
  builder (3.2.4)
74
70
  byebug (11.1.3)
75
- concurrent-ruby (1.1.8)
71
+ concurrent-ruby (1.1.6)
76
72
  crass (1.0.6)
77
- erubi (1.10.0)
73
+ erubi (1.9.0)
78
74
  globalid (0.4.2)
79
75
  activesupport (>= 4.2.0)
80
- i18n (1.8.10)
76
+ i18n (1.8.5)
81
77
  concurrent-ruby (~> 1.0)
82
- loofah (2.9.1)
78
+ loofah (2.6.0)
83
79
  crass (~> 1.0.2)
84
80
  nokogiri (>= 1.5.9)
85
81
  mail (2.7.1)
86
82
  mini_mime (>= 0.1.1)
87
- marcel (1.0.1)
83
+ marcel (0.3.3)
84
+ mimemagic (~> 0.3.2)
88
85
  method_source (1.0.0)
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)
86
+ mimemagic (0.3.5)
87
+ mini_mime (1.0.2)
88
+ mini_portile2 (2.4.0)
89
+ minitest (5.14.1)
90
+ nio4r (2.5.2)
91
+ nokogiri (1.10.10)
92
+ mini_portile2 (~> 2.4.0)
93
+ parallel (1.19.2)
94
+ parser (2.7.2.0)
98
95
  ast (~> 2.4.1)
99
- racc (1.5.2)
100
96
  rack (2.2.3)
101
97
  rack-proxy (0.6.5)
102
98
  rack
103
99
  rack-test (1.1.0)
104
100
  rack (>= 1.0, < 3)
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)
101
+ rails (6.0.3.2)
102
+ actioncable (= 6.0.3.2)
103
+ actionmailbox (= 6.0.3.2)
104
+ actionmailer (= 6.0.3.2)
105
+ actionpack (= 6.0.3.2)
106
+ actiontext (= 6.0.3.2)
107
+ actionview (= 6.0.3.2)
108
+ activejob (= 6.0.3.2)
109
+ activemodel (= 6.0.3.2)
110
+ activerecord (= 6.0.3.2)
111
+ activestorage (= 6.0.3.2)
112
+ activesupport (= 6.0.3.2)
113
+ bundler (>= 1.3.0)
114
+ railties (= 6.0.3.2)
119
115
  sprockets-rails (>= 2.0.0)
120
116
  rails-dom-testing (2.0.3)
121
117
  activesupport (>= 4.2.0)
122
118
  nokogiri (>= 1.6)
123
119
  rails-html-sanitizer (1.3.0)
124
120
  loofah (~> 2.3)
125
- railties (6.1.3.2)
126
- actionpack (= 6.1.3.2)
127
- activesupport (= 6.1.3.2)
121
+ railties (6.0.3.2)
122
+ actionpack (= 6.0.3.2)
123
+ activesupport (= 6.0.3.2)
128
124
  method_source
129
125
  rake (>= 0.8.7)
130
- thor (~> 1.0)
126
+ thor (>= 0.20.3, < 2.0)
131
127
  rainbow (3.0.0)
132
- rake (13.0.3)
133
- regexp_parser (2.1.1)
134
- rexml (3.2.5)
128
+ rake (13.0.1)
129
+ regexp_parser (1.8.2)
130
+ rexml (3.2.4)
135
131
  rubocop (0.93.1)
136
132
  parallel (~> 1.10)
137
133
  parser (>= 2.7.1.5)
@@ -141,28 +137,29 @@ GEM
141
137
  rubocop-ast (>= 0.6.0)
142
138
  ruby-progressbar (~> 1.7)
143
139
  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)
140
+ rubocop-ast (0.8.0)
141
+ parser (>= 2.7.1.5)
142
+ rubocop-performance (1.8.1)
143
+ rubocop (>= 0.87.0)
148
144
  rubocop-ast (>= 0.4.0)
149
- ruby-progressbar (1.11.0)
150
- semantic_range (3.0.0)
145
+ ruby-progressbar (1.10.1)
146
+ semantic_range (2.3.0)
151
147
  sprockets (4.0.2)
152
148
  concurrent-ruby (~> 1.0)
153
149
  rack (> 1, < 3)
154
- sprockets-rails (3.2.2)
150
+ sprockets-rails (3.2.1)
155
151
  actionpack (>= 4.0)
156
152
  activesupport (>= 4.0)
157
153
  sprockets (>= 3.0.0)
158
- thor (1.1.0)
159
- tzinfo (2.0.4)
160
- concurrent-ruby (~> 1.0)
154
+ thor (1.0.1)
155
+ thread_safe (0.3.6)
156
+ tzinfo (1.2.7)
157
+ thread_safe (~> 0.1)
161
158
  unicode-display_width (1.7.0)
162
159
  websocket-driver (0.7.3)
163
160
  websocket-extensions (>= 0.1.0)
164
161
  websocket-extensions (0.1.5)
165
- zeitwerk (2.4.2)
162
+ zeitwerk (2.4.0)
166
163
 
167
164
  PLATFORMS
168
165
  ruby
@@ -180,4 +177,4 @@ DEPENDENCIES
180
177
  webpacker!
181
178
 
182
179
  BUNDLED WITH
183
- 2.2.3
180
+ 2.1.4