diff --git a/CHANGELOG.md b/CHANGELOG.md index 449c34745..9287fa1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ **Please note that Webpacker 4.1.0 has an installer bug. Please use 4.2.0 or above** +## [[5.2.0]](https://github.com/rails/webpacker/compare/v5.1.1...5.2.0) - 2020-08-16 + +- Bump dependencies and fixes. See [diff](https://github.com/rails/webpacker/compare/v5.1.1...5-x-stable) for changes. + ## [[5.1.1]](https://github.com/rails/webpacker/compare/v5.1.0...v5.1.1) - 2020-04-20 - Update [TypeScript documentation](https://github.com/rails/webpacker/blob/master/docs/typescript.md) and installer to use babel-loader for typescript.[(#2541](https://github.com/rails/webpacker/pull/2541) @@ -9,7 +13,7 @@ ## [[5.1.0]](https://github.com/rails/webpacker/compare/v5.0.1...v5.1.0) - 2020-04-19 - Remove yarn integrity check [#2518](https://github.com/rails/webpacker/pull/2518) -- Switch from ts-loader to babel-loader [#2449](https://github.com/rails/webpacker/pull/2449) +- Switch from ts-loader to babel-loader [#2449](https://github.com/rails/webpacker/pull/2449) Please see the [TypeScript documentation](https://github.com/rails/webpacker/blob/master/docs/typescript.md) to upgrade existing projects to use typescript with 5.1 - Resolve multi-word snakecase WEBPACKER_DEV_SERVER env values [#2528](https://github.com/rails/webpacker/pull/2528) @@ -325,7 +329,7 @@ const { environment } = require('@rails/webpacker') // Enable with default config environment.splitChunks() // Configure via a callback -environment.splitChunks(config => +environment.splitChunks((config) => Object.assign({}, config, { optimization: { splitChunks: false } }) ) ``` @@ -649,7 +653,9 @@ environment.resolvedModules.append('vendor', 'vendor') ```js // Enable css modules with sass loader const sassLoader = environment.loaders.get('sass') -const cssLoader = sassLoader.use.find(loader => loader.loader === 'css-loader') +const cssLoader = sassLoader.use.find( + (loader) => loader.loader === 'css-loader' +) cssLoader.options = Object.assign({}, cssLoader.options, { modules: true, diff --git a/Gemfile.lock b/Gemfile.lock index 95a86b565..08d8ec75a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - webpacker (5.1.1) + webpacker (5.2.0) activesupport (>= 5.2) rack-proxy (>= 0.6.1) railties (>= 5.2) diff --git a/lib/webpacker/version.rb b/lib/webpacker/version.rb index 69c25b9f3..a9885fcd3 100644 --- a/lib/webpacker/version.rb +++ b/lib/webpacker/version.rb @@ -1,4 +1,4 @@ module Webpacker # Change the version in package.json too, please! - VERSION = "5.1.1".freeze + VERSION = "5.2.0".freeze end diff --git a/package.json b/package.json index 35cb2d53c..1fab2e0d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rails/webpacker", - "version": "5.1.1", + "version": "5.2.0", "description": "Use webpack to manage app-like JavaScript modules in Rails", "main": "package/index.js", "files": [ @@ -12,7 +12,7 @@ "yarn": ">=1 <2" }, "dependencies": { - "@babel/core": "^7.11.1", + "@babel/core": "^7.11.1", "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-object-rest-spread": "^7.10.1", "@babel/plugin-syntax-dynamic-import": "^7.8.3",