From 0ffb2cd24c798f05488158ec6b1d7c32a0c54015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Nikoli=C4=87?= Date: Mon, 25 Mar 2024 16:00:09 +0100 Subject: [PATCH] Update dependencies --- generators/app/templates/_package.json | 44 +++++++++---------- generators/app/templates/rollup.config.js | 2 +- .../templates/test/manual/rollup.config.js | 6 +-- .../templates/test/manual/webpack.config.js | 6 +-- test/index.js | 40 ++++++++--------- 5 files changed, 49 insertions(+), 49 deletions(-) diff --git a/generators/app/templates/_package.json b/generators/app/templates/_package.json index 4ca061f..1376000 100644 --- a/generators/app/templates/_package.json +++ b/generators/app/templates/_package.json @@ -66,7 +66,7 @@ "@istanbuljs/esm-loader-hook": "^0.2.0", "husky": "^9.0.11", "lint-staged": "^15.2.2", - "np": "^7.6.0",<% if ( prettier ) { %> + "np": "^10.0.2",<% if ( prettier ) { %> "prettier": "^2.4.0",<% } %> "eslint": "^8.5.0", "eslint-config-nitpick": "^11.1.0"<% if ( typescript && typescriptMode === 'full' ) { %>, @@ -86,52 +86,52 @@ "karma-rollup-preprocessor": "^7.0.0"<% } %><% if ( cloudBrowsers ) { %>, "karma-browserstack-launcher": "^1.6.0"<% } %>, "karma-chrome-launcher": "^3.1.0",<% if ( browserTestType === 'headless' ) { %> - "puppeteer": "^5.4.0",<% } %><% if ( usesHtmlFixtures ) { %> + "puppeteer": "^22.6.1",<% } %><% if ( usesHtmlFixtures ) { %> "karma-html2js-preprocessor": "^1.1.0", "karma-fixture": "^0.2.6",<% } %> "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5"<% } %><% if ( automatedTests || integrationTests ) { %>, "mocha": "^10.3.0"<% } %><% if ( automatedTests && codeCoverage && !browserModule ) { %>, - "nodemon": "^2.0.6", + "nodemon": "^3.1.0", "nyc": "^15.1.0"<% } %><% if ( automatedTests && codeCoverage && browserModule && !sassModule ) { %><% if ( bundlingTool === 'webpack' ) { %>, "@jsdevtools/coverage-istanbul-loader": "^3.0.5"<% } %><% if ( bundlingTool === 'rollup' ) { %>, "rollup-plugin-istanbul": "^5.0.0"<% } %>, "karma-coverage": "^2.0.3"<% } %><% if ( codeCoverageService ) { %>, - "coveralls": "^2.11.11"<% } %><% if ( manualTests || integrationTests ) { %>, - "del": "^6.0.0", + "coveralls": "^3.1.1"<% } %><% if ( manualTests || integrationTests ) { %>, + "del": "^7.1.0", "postcss": "^8.3.11", - "globby": "^11.0.1",<% if ( bundlingTool === 'webpack' ) { %> - "css-loader": "^5.0.0", - "html-webpack-plugin": "^4.5.0", - "mini-css-extract-plugin": "^1.2.0", - "postcss-loader": "^6.2.0", - "webpack-cli": "^4.1.0", - "webpack-dev-server": "^3.11.0",<% } %><% if ( bundlingTool === 'rollup' ) { %> + "globby": "^14.0.1",<% if ( bundlingTool === 'webpack' ) { %> + "css-loader": "^6.10.0", + "html-webpack-plugin": "^5.6.0", + "mini-css-extract-plugin": "^2.8.1", + "postcss-loader": "^8.1.1", + "webpack-cli": "^5.1.4", + "webpack-dev-server": "^5.0.4",<% } %><% if ( bundlingTool === 'rollup' ) { %> "rollup-plugin-postcss": "^4.0.1", "rollup-plugin-serve": "^1.0.3", "rollup-plugin-static-site": "0.1.0",<% } %> - "postcss-import": "^14.0.2", - "postcss-preset-env": "^7.0.0", + "postcss-import": "^16.1.0", + "postcss-preset-env": "^9.5.2", "suitcss-components-test": "^1.0.0"<% } %><% if ( (manualTests || integrationTests) && browserModule && !sassModule && bundlingTool === 'rollup' ) { %>, "minimist": "^1.2.0"<% } %><% if ( (manualTests || integrationTests) || ((browserModule && !sassModule) && (transpile || automatedTests)) ) { %><% if ( bundlingTool === 'webpack' ) { %>, "webpack": "^5.2.0",<% if ( typescript && typescriptMode === 'full' ) { %> "ts-loader": "^9.2.3",<% } %> "node-stdlib-browser": "^1.2.0"<% } %><% } %><% if ( sassModule ) { %>, - "sass-true": "^2.1.3"<% } %><% if ( integrationTests ) { %><% if ( cloudBrowsers ) { %>, + "sass-true": "^8.0.0"<% } %><% if ( integrationTests ) { %><% if ( cloudBrowsers ) { %>, "@wdio/browserstack-service": "^8.35.1"<% } %>, "wdio-docker-service": "^3.0.0", "@wdio/mocha-framework": "^8.35.0", "@wdio/spec-reporter": "^8.32.4", "@wdio/cli": "^8.35.1", "webdriverio": "^8.35.1", - "local-web-server": "^4.2.1", + "local-web-server": "^5.3.1", "http-shutdown": "^1.0.3"<% } %><% if ( transpile ) { %>, "@babel/core": "^7.2.2",<% if ( !browserModule && !styles && !bundleCjs ) { %> "@babel/cli": "^7.2.3",<% } %> - "core-js": "^2.6.5", + "core-js": "^3.36.1", "@babel/preset-env": "^7.12.1"<% if ( typescript && typescriptMode === 'full' ) { %>, "@babel/preset-typescript": "^7.14.5"<% } %><% if ( browserModule && !sassModule ) { %><% if ( bundlingTool === 'webpack' ) { %>, - "babel-loader": "^8.1.0"<% } %><% } %><% if ( (automatedTests || manualTests) && browserModule && !sassModule ) { %>, + "babel-loader": "^9.1.3"<% } %><% } %><% if ( (automatedTests || manualTests) && browserModule && !sassModule ) { %>, "@babel/plugin-transform-runtime": "^7.2.0", "@babel/runtime": "^7.2.0"<% } %><% if ( automatedTests ) { %><% if ( !browserModule || (browserModule && integrationTests) ) { %>, "@babel/register": "^7.0.0"<% } %><% if ( codeCoverage ) { %><% if ( !browserModule && !sassModule ) { %>, @@ -145,13 +145,13 @@ "rollup-plugin-node-globals": "^1.4.0"<% } %><% if ( vanillaJsWidget ) { %>, "eslint-plugin-html": "^6.0.0", "rollup-plugin-svelte": "^7.2.0", - "svelte": "^2.16.1"<% } %><% if ( typescript ) { %>, + "svelte": "^4.2.12"<% } %><% if ( typescript ) { %>, "typescript": "^5.4.3", - "cpy": "^8.1.2", - "execa": "^5.1.1",<% if ( !transpile && typescriptMode === 'full' && (!browserModule || (browserModule && integrationTests)) ) { %> + "cpy": "^11.0.1", + "execa": "^8.0.1",<% if ( !transpile && typescriptMode === 'full' && (!browserModule || (browserModule && integrationTests)) ) { %> "ts-node": "^10.1.0",<% } %><% if ( browserModule && usesHtmlFixtures ) { %> "@types/karma-fixture": "^0.2.5",<% } %> - "@types/node": "^16.3.0"<% if ( automatedTests || integrationTests ) { %>, + "@types/node": "^20.11.30"<% if ( automatedTests || integrationTests ) { %>, "@types/mocha": "^10.0.6"<% } %><% } %> },<% if ( isScopedPackage ) { %> "publishConfig": { diff --git a/generators/app/templates/rollup.config.js b/generators/app/templates/rollup.config.js index 85b65f1..e7d2a1b 100644 --- a/generators/app/templates/rollup.config.js +++ b/generators/app/templates/rollup.config.js @@ -2,7 +2,7 @@ import path from 'node:path'; import svelte from 'rollup-plugin-svelte'; import babelCore from '@babel/core';<% } %><% if ( typescript ) { %> -import execa from 'execa'; +import { execa } from 'execa'; import cpy from 'cpy';<% if ( !transpile && typescriptMode === 'full' ) { %> import typescript from '@rollup/plugin-typescript';<% } %><% if ( transpile && typescriptMode === 'full' ) { %> import resolve from '@rollup/plugin-node-resolve';<% } %><% } %> diff --git a/generators/app/templates/test/manual/rollup.config.js b/generators/app/templates/test/manual/rollup.config.js index d52508d..d55c372 100644 --- a/generators/app/templates/test/manual/rollup.config.js +++ b/generators/app/templates/test/manual/rollup.config.js @@ -1,6 +1,6 @@ import path from 'node:path'; -import del from 'del'; -import globby from 'globby'; +import { deleteAsync } from 'del'; +import { globby } from 'globby'; import minimist from 'minimist'; import staticSite from 'rollup-plugin-static-site'; import postcss from 'rollup-plugin-postcss'; @@ -29,7 +29,7 @@ const config = async () => { }); } - await del(['./test-dist']); + await deleteAsync(['./test-dist']); const files = await globby(['./test/manual/**/*.<%= extension || 'js' %>', '!./test/manual/rollup.config.js']); diff --git a/generators/app/templates/test/manual/webpack.config.js b/generators/app/templates/test/manual/webpack.config.js index b5af62c..1c2a4bc 100644 --- a/generators/app/templates/test/manual/webpack.config.js +++ b/generators/app/templates/test/manual/webpack.config.js @@ -1,7 +1,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; -import del from 'del'; -import globby from 'globby'; +import { deleteAsync } from 'del'; +import { globby } from 'globby'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import atImport from 'postcss-import'; @@ -11,7 +11,7 @@ export default async () => { const port = 0; - await del(['./test-dist']); + await deleteAsync(['./test-dist']); const files = await globby(['./test/manual/**/*.<%= extension || 'js' %>', '!./test/manual/webpack.config.js']); diff --git a/test/index.js b/test/index.js index a10318c..ae7383f 100644 --- a/test/index.js +++ b/test/index.js @@ -56,7 +56,7 @@ describe('New project', function () { prerelease: 'npm run lint' }, devDependencies: { - np: '^7.6.0' + np: '^10.0.2' } }); }); @@ -158,17 +158,17 @@ describe('Manual tests', function () { }, devDependencies: { webpack: '^5.2.0', - del: '^6.0.0', - globby: '^11.0.1', - 'css-loader': '^5.0.0', - 'html-webpack-plugin': '^4.5.0', - 'mini-css-extract-plugin': '^1.2.0', + del: '^7.1.0', + globby: '^14.0.1', + 'css-loader': '^6.10.0', + 'html-webpack-plugin': '^5.6.0', + 'mini-css-extract-plugin': '^2.8.1', 'postcss': '^8.3.11', - 'postcss-import': '^14.0.2', - 'postcss-preset-env': '^7.0.0', - 'postcss-loader': '^6.2.0', - 'webpack-cli': '^4.1.0', - 'webpack-dev-server': '^3.11.0' + 'postcss-import': '^16.1.0', + 'postcss-preset-env': '^9.5.2', + 'postcss-loader': '^8.1.1', + 'webpack-cli': '^5.1.4', + 'webpack-dev-server': '^5.0.4' } }); }); @@ -293,7 +293,7 @@ describe('Automated tests, browser module, headless browser', function () { it('should fill package.json with correct information', function () { assert.jsonFileContent('package.json', { devDependencies: { - puppeteer: '^5.4.0' + puppeteer: '^22.6.1' } }); }); @@ -337,7 +337,7 @@ describe('Integration tests', function () { test: 'npm run test:automated && npm run test:integration' }, devDependencies: { - 'local-web-server': '^4.2.1', + 'local-web-server': '^5.3.1', '@wdio/browserstack-service': '^8.35.1', '@wdio/mocha-framework': '^8.35.0', '@wdio/spec-reporter': '^8.32.4', @@ -593,7 +593,7 @@ describe('Code coverage', function () { }, devDependencies: { nyc: '^15.1.0', - nodemon: '^2.0.6' + nodemon: '^3.1.0' } }); }); @@ -664,7 +664,7 @@ describe('Code coverage service', function () { 'posttest:ci': 'cat ./coverage/lcov.info | coveralls' }, devDependencies: { - coveralls: '^2.11.11' + coveralls: '^3.1.1' } }); }); @@ -795,7 +795,7 @@ describe('Sass module', function () { 'test:watch': 'npm test -- --watch' }, devDependencies: { - 'sass-true': '^2.1.3' + 'sass-true': '^8.0.0' } }); }); @@ -973,7 +973,7 @@ describe('Transpile, browser module', function () { assert.jsonFileContent('package.json', { devDependencies: { '@babel/core': '^7.2.2', - 'babel-loader': '^8.1.0', + 'babel-loader': '^9.1.3', webpack: '^5.2.0' } }); @@ -1037,7 +1037,7 @@ describe('Transpile, with automated tests and code coverage', function () { devDependencies: { '@babel/register': '^7.0.0', 'babel-plugin-istanbul': '^6.0.0', - 'nodemon': '^2.0.6' + 'nodemon': '^3.1.0' } }); }); @@ -1290,7 +1290,7 @@ describe('Vanilla JS widget', function () { assert.jsonFileContent('package.json', { devDependencies: { 'rollup-plugin-svelte': '^7.2.0', - 'svelte': '^2.16.1' + 'svelte': '^4.2.12' } }); }); @@ -1325,7 +1325,7 @@ describe('TypeScript, with comments', function () { }, devDependencies: { 'typescript': '^5.4.3', - '@types/node': '^16.3.0', + '@types/node': '^20.11.30', '@types/mocha': '^10.0.6' } });