webpacker 3.3.0 → 3.3.1

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: c8a4af458838278327cdb33c8e8823c18b74b3c65346b8c15340cf2c2791d3b9
4
- data.tar.gz: 447be8bfef3508fd9fdd7757b8e89c3dd78c09bf0f01b8280dbeb1452ea2cfc8
3
+ metadata.gz: 8948ef5358c7aac19d89b4260b7dfee306f8a32e7c42b56d3006ad235449d0cf
4
+ data.tar.gz: 94bc168c4e24f6f80edfad97c37e50cbd591c4375b155572e1942448a65bf0af
5
5
  SHA512:
6
- metadata.gz: f66b910cd05928a6ef6a7fd6ca9832297207dcb4776ef838518f962ebaf82b0b49e9e7e7db26dd6ce7ffd90eca6904cc91efa3619c76014d09bf4e47cb4389a1
7
- data.tar.gz: 2779a7c38d3b3130e2c4cd386181d0e2a3b73480cc61d343104ad5a525eb25d79fb1e6b5728c3a51b27acf233b9b7ef08232e56017a47dc04257a85bd6da460d
6
+ metadata.gz: a0caa8e595e462e7039f3e8a41315408abc0bc8569e0604333bcbf61ad44c75fb3a1273b2e87d4fc0bba15fc423709aba705d5837c0dab06ff4a79a0931c8aee
7
+ data.tar.gz: 31f7ddf9709b74c32bec863a98bc855c245e8aeee204813d7acee196be3883117244dcd02b99125e969b23f687b7c3d28523d86de3997f5a8a2e6d647deb9bcf
@@ -1,5 +1,11 @@
1
1
  **Please note that Webpacker 3.1.0 and 3.1.1 has some serious bugs so please consider using either 3.0.2 or 3.2.0**
2
2
 
3
+ ## [3.3.1] - 2018-03-12
4
+
5
+ ## Fixed
6
+
7
+ - Use webpack dev server 2.x until webpacker supports webpack 4.x [#1338](https://github.com/rails/webpacker/issues/1338)
8
+
3
9
  ## [3.3.0] - 2018-03-03
4
10
 
5
11
  ### Added
@@ -15,6 +21,17 @@
15
21
  ```
16
22
  bundle exec rails webpacker:binstubs
17
23
  ```
24
+ - set function is now removed from plugins and loaders, please use `append` or `prepend`
25
+
26
+ ```js
27
+ // config/webpack/environment.js
28
+ const { environment } = require('@rails/webpacker')
29
+
30
+ environment.loaders.append('json', {
31
+ test: /\.json$/,
32
+ use: 'json-loader'
33
+ })
34
+ ```
18
35
 
19
36
  ### Fixed
20
37
  - Limit ts-loader to 3.5.0 until webpack 4 support [#1308](https://github.com/rails/webpacker/pull/1308)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webpacker (3.3.0)
4
+ webpacker (3.3.1)
5
5
  activesupport (>= 4.2)
6
6
  rack-proxy (>= 0.6.1)
7
7
  railties (>= 4.2)
@@ -52,7 +52,7 @@ GEM
52
52
  byebug (10.0.0)
53
53
  concurrent-ruby (1.0.5)
54
54
  crass (1.0.3)
55
- erubi (1.7.0)
55
+ erubi (1.7.1)
56
56
  globalid (0.4.1)
57
57
  activesupport (>= 4.2.0)
58
58
  i18n (0.9.5)
@@ -70,11 +70,11 @@ GEM
70
70
  nokogiri (1.8.2)
71
71
  mini_portile2 (~> 2.3.0)
72
72
  parallel (1.12.1)
73
- parser (2.5.0.2)
73
+ parser (2.5.0.3)
74
74
  ast (~> 2.4.0)
75
75
  powerpack (0.1.1)
76
76
  rack (2.0.4)
77
- rack-proxy (0.6.3)
77
+ rack-proxy (0.6.4)
78
78
  rack
79
79
  rack-test (0.8.3)
80
80
  rack (>= 1.0, < 3)
@@ -103,9 +103,9 @@ GEM
103
103
  thor (>= 0.18.1, < 2.0)
104
104
  rainbow (3.0.0)
105
105
  rake (12.3.0)
106
- rubocop (0.52.1)
106
+ rubocop (0.53.0)
107
107
  parallel (~> 1.10)
108
- parser (>= 2.4.0.2, < 3.0)
108
+ parser (>= 2.5)
109
109
  powerpack (~> 0.1)
110
110
  rainbow (>= 2.2.2, < 4.0)
111
111
  ruby-progressbar (~> 1.7)
data/README.md CHANGED
@@ -80,7 +80,7 @@ Or add it to your `Gemfile`:
80
80
 
81
81
  ```ruby
82
82
  # Gemfile
83
- gem 'webpacker', '~> 3.2'
83
+ gem 'webpacker', '~> 3.3'
84
84
 
85
85
  # OR if you prefer to use master
86
86
  gem 'webpacker', git: 'https://github.com/rails/webpacker.git'
@@ -74,7 +74,7 @@ Specify the plugin in your `.babelrc` with the custom root or alias. Here's an e
74
74
  And then within your javascript app code:
75
75
 
76
76
  ```js
77
- // Note: we don't have do any ../../ jazz
77
+ // Note: we don't have to do any ../../ jazz
78
78
 
79
79
  import FooImage from 'assets/images/foo-image.png'
80
80
  import 'assets/stylesheets/bar'
@@ -29,7 +29,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
29
29
  RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
30
30
 
31
31
  RUN apt-get install -y nodejs
32
- RUN apt-get update && apt-get install yarn
32
+ RUN apt-get update && apt-get install -y yarn
33
33
 
34
34
  # Rest of the commands....
35
35
  ```
@@ -49,7 +49,7 @@ dotenvFiles.forEach((dotenvFile) => {
49
49
  dotenv.config({ path: dotenvFile, silent: true })
50
50
  })
51
51
 
52
- environment.plugins.set('Environment', new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(process.env))))
52
+ environment.plugins.prepend('Environment', new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(process.env))))
53
53
 
54
54
  module.exports = environment
55
55
  ```
@@ -14,7 +14,7 @@ and add `ignore-loader` to `config/webpack/environment.js`
14
14
  ```js
15
15
  // ignores vue~ swap files
16
16
  const { environment } = require('@rails/webpacker')
17
- environment.loaders.set('ignore', {
17
+ environment.loaders.append('ignore', {
18
18
  test: /.vue~$/,
19
19
  loader: 'ignore-loader'
20
20
  })
@@ -110,7 +110,7 @@ const webpack = require('webpack')
110
110
  const { resolve } = require('path')
111
111
  const { environment, config } = require('@rails/webpacker')
112
112
 
113
- environment.plugins.set('ContextReplacement',
113
+ environment.plugins.append('ContextReplacement',
114
114
  new webpack.ContextReplacementPlugin(
115
115
  /angular(\\|\/)core(\\|\/)(@angular|esm5)/,
116
116
  resolve(config.source_path)
@@ -63,7 +63,7 @@ yarn add html-loader
63
63
  2. Add html-loader to `config/webpack/environment.js`
64
64
 
65
65
  ```js
66
- environment.loaders.set('html', {
66
+ environment.loaders.append('html', {
67
67
  test: /\.html$/,
68
68
  use: [{
69
69
  loader: 'html-loader',
@@ -44,7 +44,7 @@ say "Installing all JavaScript dependencies"
44
44
  run "yarn add @rails/webpacker"
45
45
 
46
46
  say "Installing dev server for live reloading"
47
- run "yarn add --dev webpack-dev-server"
47
+ run "yarn add --dev webpack-dev-server@2.11.2"
48
48
 
49
49
  if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 1
50
50
  say "You need to allow webpack-dev-server host as allowed origin for connect-src.", :yellow
@@ -1,4 +1,4 @@
1
1
  module Webpacker
2
2
  # Change the version in package.json too, please!
3
- VERSION = "3.3.0".freeze
3
+ VERSION = "3.3.1".freeze
4
4
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/webpacker",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Use webpack to manage app-like JavaScript modules in Rails",
5
5
  "main": "package/index.js",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  "glob": "^7.1.2",
28
28
  "js-yaml": "^3.10.0",
29
29
  "node-sass": "^4.7.2",
30
- "path-complete-extname": "^0.1.0",
30
+ "path-complete-extname": "^1.0.0",
31
31
  "postcss-cssnext": "^3.1.0",
32
32
  "postcss-import": "^11.0.0",
33
33
  "postcss-loader": "^2.1.0",
data/yarn.lock CHANGED
@@ -4082,9 +4082,9 @@ path-browserify@0.0.0:
4082
4082
  version "0.0.0"
4083
4083
  resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a"
4084
4084
 
4085
- path-complete-extname@^0.1.0:
4086
- version "0.1.0"
4087
- resolved "https://registry.yarnpkg.com/path-complete-extname/-/path-complete-extname-0.1.0.tgz#c454702669f31452f8193aa6168915fa31692f4a"
4085
+ path-complete-extname@^1.0.0:
4086
+ version "1.0.0"
4087
+ resolved "https://registry.yarnpkg.com/path-complete-extname/-/path-complete-extname-1.0.0.tgz#f889985dc91000c815515c0bfed06c5acda0752b"
4088
4088
 
4089
4089
  path-exists@^2.0.0:
4090
4090
  version "2.1.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-03 00:00:00.000000000 Z
12
+ date: 2018-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport