diff --git a/.changeset/cuddly-knives-call.md b/.changeset/cuddly-knives-call.md new file mode 100644 index 00000000..91a70113 --- /dev/null +++ b/.changeset/cuddly-knives-call.md @@ -0,0 +1,5 @@ +--- +"sass-loader": major +--- + +Minimum supported NodeJS version is `22.11.0`. diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index f572be17..b76bfa3c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -58,7 +58,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [18.x, 20.x, 22.x, 24.x] + node-version: [22.x, 24.x, 26.x] webpack-version: [latest] runs-on: ${{ matrix.os }} diff --git a/test/helpers/getErrors.js b/test/helpers/getErrors.js index 6ca84f41..a5769e20 100644 --- a/test/helpers/getErrors.js +++ b/test/helpers/getErrors.js @@ -1,3 +1,3 @@ import normalizeErrors from "./normalizeErrors"; -export default (stats) => normalizeErrors(stats.compilation.errors.sort()); +export default (stats) => normalizeErrors(stats.compilation.errors.toSorted()); diff --git a/test/helpers/getWarnings.js b/test/helpers/getWarnings.js index 9727d58a..82381a7b 100644 --- a/test/helpers/getWarnings.js +++ b/test/helpers/getWarnings.js @@ -1,4 +1,4 @@ import normalizeErrors from "./normalizeErrors"; export default (stats, needVerbose) => - normalizeErrors(stats.compilation.warnings.sort(), needVerbose); + normalizeErrors(stats.compilation.warnings.toSorted(), needVerbose);