Skip to content

Commit cfb557f

Browse files
committed
Prep for 1.0: upgrading all outdated dependencies
1 parent 7877b8c commit cfb557f

17 files changed

+994
-1646
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ matrix:
1313
node_js: "10"
1414
env:
1515
- JOB_PART=test
16-
- DISABLE_UNSTABLE_CHECKS=1
1716
install:
1817
- rm yarn.lock
1918
- node ./scripts/force-lowest-dependencies
@@ -23,7 +22,6 @@ matrix:
2322
node_js: "12"
2423
env:
2524
- JOB_PART=test
26-
- DISABLE_UNSTABLE_CHECKS=1
2725
install:
2826
- rm yarn.lock
2927
- yarn

CHANGELOG.md

+15-9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
* [DEPENDENCY UPGRADE] Webpack was upgraded from version 4 to 5.
66

7+
* [DEPENDENCY UPGRADES] The following packages had major version upgrades:
8+
* `css-loader` from 3 to 5
9+
* `assets-webpack-plugin` from 5 to 7
10+
* `mini-css-extract-plugin` from 0.4 to 1
11+
* `style-loader` from 1 to 2
12+
* `terser-webpack-plugin` from 1 to 5
13+
* `webpack-cli` from 3 to 4
14+
* `webpack-manifest-plugin` from 2 to 3
15+
* `webpack-manifest-plugin` from 3 to 4-beta
16+
17+
* [DEPENDENCY SUPPORT CHANGES] Encore has changed what versions it supports
18+
of the following packages:
19+
* `less` from 3 to 4 and `less-loader` from 6 to 7
20+
* `fork-ts-checker-webpack-plugin` from 4 to 5 or 6
21+
722
* [BC BREAK] Image and font processing was changed from using `file-loader`
823
(and optionally `url-loader` via `configureUrlLoader()`) to Webpack 5's
924
new [Asset Modules](https://webpack.js.org/guides/asset-modules/).
@@ -34,15 +49,6 @@
3449

3550
* [BC BREAK] All previously-deprecated methods & options were removed.
3651

37-
* [DEPENDENCY UPGRADES] The following packages had major version upgrades:
38-
* `css-loader` from 3 to 5
39-
* `mini-css-extract-plugin` from 0.4 to 1
40-
* `style-loader` from 1 to 2
41-
* `terser-webpack-plugin` from 1 to 4
42-
* `webpack-cli` from 3 to 4
43-
* `webpack-manifest-plugin` from 2 to 3
44-
* `less` from 3 to 4 and `less-loader` from 6 to 7
45-
4652
* [BEHAVIOR CHANGE] The `HashedModuleIdsPlugin` was previously used to
4753
help name "modules" when building for production. This has been removed
4854
and we now use Webpack's native `optimization.moduleIds` option, which

lib/config-generator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class ConfigGenerator {
379379
if (this.webpackConfig.useEslintLoader) {
380380
rules.push(applyRuleConfigurationCallback('eslint', {
381381
test: eslintLoaderUtil.getTest(this.webpackConfig),
382-
loader: require.resolve('eslint-loader'),
382+
loader: require.resolve('eslint-loader'), //eslint-disable-line node/no-unpublished-require
383383
exclude: /node_modules/,
384384
enforce: 'pre',
385385
options: eslintLoaderUtil.getOptions(this.webpackConfig)

lib/loaders/css.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
};
5555

5656
cssLoaders.push({
57-
loader: require.resolve('postcss-loader'),
57+
loader: require.resolve('postcss-loader'), //eslint-disable-line node/no-unpublished-require
5858
options: applyOptionsCallback(webpackConfig.postCssLoaderOptionsCallback, postCssLoaderOptions)
5959
});
6060
}

lib/loaders/handlebars.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525

2626
return [
2727
{
28-
loader: require.resolve('handlebars-loader'),
28+
loader: require.resolve('handlebars-loader'), //eslint-disable-line node/no-unpublished-require
2929
options: applyOptionsCallback(webpackConfig.handlebarsConfigurationCallback, options)
3030
}
3131
];

lib/loaders/less.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
return [
3131
...cssLoader.getLoaders(webpackConfig, useCssModules),
3232
{
33-
loader: require.resolve('less-loader'),
33+
loader: require.resolve('less-loader'), //eslint-disable-line node/no-unpublished-require
3434
options: applyOptionsCallback(webpackConfig.lessLoaderOptionsCallback, config)
3535
},
3636
];

lib/loaders/sass.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
});
5050

5151
sassLoaders.push({
52-
loader: require.resolve('sass-loader'),
52+
loader: require.resolve('sass-loader'), //eslint-disable-line node/no-unpublished-require
5353
options: applyOptionsCallback(webpackConfig.sassLoaderOptionsCallback, config)
5454
});
5555

lib/loaders/stylus.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
return [
3131
...cssLoader.getLoaders(webpackConfig, useCssModules),
3232
{
33-
loader: require.resolve('stylus-loader'),
33+
loader: require.resolve('stylus-loader'), //eslint-disable-line node/no-unpublished-require
3434
options: applyOptionsCallback(webpackConfig.stylusLoaderOptionsCallback, config)
3535
},
3636
];

lib/loaders/typescript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
let loaders = babelLoader.getLoaders(webpackConfig);
5252
return loaders.concat([
5353
{
54-
loader: require.resolve('ts-loader'),
54+
loader: require.resolve('ts-loader'), //eslint-disable-line node/no-unpublished-require
5555
// @see https://github.com/TypeStrong/ts-loader/blob/master/README.md#available-options
5656
options: config
5757
}

lib/loaders/vue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727

2828
return [
2929
{
30-
loader: require.resolve('vue-loader'),
30+
loader: require.resolve('vue-loader'), //eslint-disable-line node/no-unpublished-require
3131
options: applyOptionsCallback(webpackConfig.vueLoaderOptionsCallback, options)
3232
}
3333
];

lib/plugins/terser.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ const applyOptionsCallback = require('../utils/apply-options-callback');
1919
*/
2020
module.exports = function(webpackConfig) {
2121
const terserPluginOptions = {
22-
sourceMap: webpackConfig.useSourceMaps,
23-
cache: true,
2422
parallel: true,
2523
};
2624

package.json

+14-15
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,28 @@
2828
"@babel/core": "^7.7.0",
2929
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
3030
"@babel/preset-env": "^7.10.0",
31-
"assets-webpack-plugin": "^5.1.1",
31+
"assets-webpack-plugin": "^7.0.0",
3232
"babel-loader": "^8.0.0",
3333
"chalk": "^4.0.0",
3434
"clean-webpack-plugin": "^3.0.0",
3535
"css-loader": "^5.0.1",
3636
"css-minimizer-webpack-plugin": "^1.1.5",
37-
"fast-levenshtein": "^2.0.6",
37+
"fast-levenshtein": "^3.0.0",
3838
"friendly-errors-webpack-plugin": "^2.0.0-beta.1",
3939
"loader-utils": "^2.0.0",
4040
"mini-css-extract-plugin": "^1.0.0",
4141
"pkg-up": "^3.1.0",
42-
"pretty-error": "^2.1.1",
42+
"pretty-error": "^3.0.3",
4343
"resolve-url-loader": "^3.1.2",
4444
"semver": "^7.3.2",
4545
"style-loader": "^2.0.0",
46-
"terser-webpack-plugin": "^4.2.3",
46+
"terser-webpack-plugin": "^5.1.1",
4747
"tmp": "^0.2.1",
4848
"webpack": "^5.12",
4949
"webpack-cli": "^4",
50-
"webpack-dev-server": "^3.1.14",
50+
"webpack-dev-server": "^4.0.0-beta.0",
5151
"webpack-manifest-plugin": "^3",
52-
"webpack-sources": "^1.3.0",
53-
"webpack-virtual-modules": "^0.2.2",
54-
"yargs-parser": "^18.1.3"
52+
"yargs-parser": "^20.2.4"
5553
},
5654
"devDependencies": {
5755
"@babel/plugin-proposal-class-properties": "^7.0.0",
@@ -63,36 +61,37 @@
6361
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
6462
"@vue/babel-preset-jsx": "^1.0.0",
6563
"@vue/compiler-sfc": "^3.0.2",
66-
"autoprefixer": "^8.5.0",
64+
"autoprefixer": "^10.2.0",
6765
"babel-eslint": "^10.0.1",
6866
"chai": "^4.2.0",
6967
"chai-fs": "^2.0.0",
7068
"chai-subset": "^1.6.0",
7169
"core-js": "^3.0.0",
7270
"eslint": "^6.0.0 || ^7.0.0",
7371
"eslint-loader": "^4.0.0",
74-
"eslint-plugin-header": "^1.0.0",
72+
"eslint-plugin-header": "^3.0.0",
7573
"eslint-plugin-import": "^2.8.0",
76-
"eslint-plugin-node": "^8.0.1",
74+
"eslint-plugin-node": "^11.1.0",
7775
"file-loader": "^6.0.0",
78-
"fork-ts-checker-webpack-plugin": "^4.0.0",
76+
"fork-ts-checker-webpack-plugin": "^5.0.0 || ^6.0.0",
7977
"fs-extra": "^9.0.0",
8078
"handlebars": "^4.0.11",
8179
"handlebars-loader": "^1.7.0",
8280
"http-server": "^0.12.3",
8381
"less": "^4.0.0",
8482
"less-loader": "^7.0.0",
85-
"mocha": "^7.1.2",
83+
"mocha": "^8.2.1",
84+
"postcss": "^8.1.0",
8685
"postcss-loader": "^4.0.0",
87-
"preact": "^8.2.1",
86+
"preact": "^8.2.1 || ^10.0.0",
8887
"preact-compat": "^3.17.0",
8988
"sass": "^1.17.0",
9089
"sass-loader": "^9.0.1 || ^10.0.0",
9190
"sinon": "^9.0.2",
9291
"stimulus": "^2.0.0",
9392
"strip-ansi": "^6.0.0",
9493
"stylus": "^0.54.5",
95-
"stylus-loader": "^3.0.2",
94+
"stylus-loader": "^3.0.2 || ^4.0.0",
9695
"ts-loader": "^8.0.1",
9796
"typescript": ">=3.6.3",
9897
"vue": "^3.0.2",

0 commit comments

Comments
 (0)