Skip to content

Commit f9bedcf

Browse files
committed
feature #1395 Drop support for Node.js <22, update webpack related dependencies (Kocal)
This PR was squashed before being merged into the main branch. Discussion ---------- Drop support for Node.js <22, update webpack related dependencies | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes <!-- please update CHANGELOG.md file --> | Deprecations? | no <!-- please update CHANGELOG.md file --> | Issues | Fix #1393, fix #1392 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT Commits ------- 65a9aef - 3a08065 Fix "TS2307: Cannot find module './assets/logo.png' or its corresponding type declarations." in tests 2a2b717 Remove support for webpack-cli ^6.0.0 4d06d65 Remove support for stylus-loader ^7.0.0 d680c80 Remove support for postcss-loader ^7.0.0 e2bc523 Remove support for less-loader ^11.0.0 8a51eee Remove support for style-loader ^3.3.0 3978480 Upgrade css-minimizer-webpack-plugin to ^8.0.0 36398fc Remove support for babel-loader ^9.1.3 d2d8a85 Update dependency from `@nuxt`/friendly-errors-webpack-plugin to `@kocal`/friendly-errors-webpack-plugin 2bf706f Drop support for Node.js <22.13.0
2 parents 705f578 + 65a9aef commit f9bedcf

File tree

32 files changed

+1891
-1572
lines changed

32 files changed

+1891
-1572
lines changed

.github/workflows/high-depends.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
node-versions: ['18', '20', '22', '23']
17+
node-versions: ['22.13.0', '22', '24']
1818

1919
steps:
2020
- name: Checkout

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
env:
99
# We don't want Puppeteer to automatically download a browser when dependencies are being installed
1010
PUPPETEER_SKIP_DOWNLOAD: 'true'
11-
11+
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

1616
- name: Node ${{matrix.node-versions}}
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '22'
19+
node-version: '22.13.0'
2020

2121
- name: Install Yarn Dependencies
2222
run: yarn install

.github/workflows/low-depends.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
node-versions: ['18', '20', '22', '23']
17+
node-versions: ['22.13.0', '22', '24']
1818

1919
steps:
2020
- name: Checkout

.github/workflows/stable-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
node-versions: ['18', '20', '22', '23']
17+
node-versions: ['22.13.0', '22', '24']
1818

1919
steps:
2020
- name: Checkout

.github/workflows/testing_apps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ jobs:
8787
env:
8888
# We don't want Puppeteer to automatically download a browser when dependencies are being installed
8989
PUPPETEER_SKIP_DOWNLOAD: 'true'
90-
90+
9191
steps:
9292
- name: Checkout
9393
uses: actions/checkout@v4
9494

9595
- name: Node ${{matrix.node-versions}}
9696
uses: actions/setup-node@v4
9797
with:
98-
node-version: '22'
98+
node-version: '22.13.0'
9999

100100
- if: ${{ contains(matrix.app.name, 'pnpm') }}
101101
name: Install pnpm

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# CHANGELOG
22

3+
## 6.0.0
4+
5+
* Drop support for Node.js <22.13.0
6+
* Update @nuxt/friendly-errors-webpack-plugin to @kocal/friendly-errors-webpack-plugin, an updated fork of the original plugin
7+
* Update css-minimizer-webpack-plugin to ^8.0.0, see [release notes](https://github.com/webpack/css-minimizer-webpack-plugin/releases/tag/v8.0.0)
8+
* Update webpack from ^5.74.0 to ^5.82.0
9+
* Remove support for babel-loader ^9.1.3, see [10.0.0 release notes](https://github.com/babel/babel-loader/releases/tag/v10.0.0)
10+
* Remove support for style-loader ^3.3.0, see [4.0.0 release notes](https://github.com/webpack/style-loader/releases/tag/v4.0.0)
11+
* Remove support for less-loader ^11.0.0, see [12.0.0 release notes](https://github.com/webpack/less-loader/releases/tag/v12.0.0)
12+
* Remove support for postcss-loader ^7.0.0, see [8.0.0 release notes](https://github.com/webpack/postcss-loader/releases/tag/v8.0.0)
13+
* Remove support for stylus-loader ^7.0.0, see [8.0.0 release notes](https://github.com/webpack/stylus-loader/releases/tag/v8.0.0)
14+
* Remove support for webpack-cli ^5.0.0, see [6.0.0 release notes](https://github.com/webpack/webpack-cli/releases/tag/webpack-cli%406.0.0)
15+
316
## 5.3.0
417

518
* Add support for Svelte 5

fixtures/vuejs3-typescript/types/shims-vue.d.ts renamed to fixtures/vuejs3-typescript/types/shims.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ declare module '*.vue' {
44
const component: ReturnType<typeof defineComponent>;
55
export default component;
66
}
7+
8+
declare module "*.png" {
9+
const value: any;
10+
export default value;
11+
}

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ class Encore {
135135
}
136136

137137
/**
138-
* Allows you to configure the options passed to the @nuxt/friendly-errors-webpack-plugin.
139-
* A list of available options can be found at https://github.com/nuxt/friendly-errors-webpack-plugin
138+
* Allows you to configure the options passed to the @kocal/friendly-errors-webpack-plugin.
139+
* A list of available options can be found at https://github.com/kocal/friendly-errors-webpack-plugin
140140
*
141141
* For example:
142142
*

lib/plugins/asset-output-display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
/**
17-
* @import FriendlyErrorsWebpackPlugin from '@nuxt/friendly-errors-webpack-plugin'
17+
* @import FriendlyErrorsWebpackPlugin from '@kocal/friendly-errors-webpack-plugin'
1818
*/
1919

2020
const pathUtil = require('../config/path-util');

lib/plugins/friendly-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @import WebpackConfig from '../WebpackConfig'
1414
*/
1515

16-
const FriendlyErrorsWebpackPlugin = require('@nuxt/friendly-errors-webpack-plugin');
16+
const FriendlyErrorsWebpackPlugin = require('@kocal/friendly-errors-webpack-plugin');
1717
const missingCssFileTransformer = require('../friendly-errors/transformers/missing-css-file');
1818
const missingCssFileFormatter = require('../friendly-errors/formatters/missing-css-file');
1919
const missingLoaderTransformerFactory = require('../friendly-errors/transformers/missing-loader');

0 commit comments

Comments
 (0)