From 661120c6524f1bf2987547677c01654a8bfb199e Mon Sep 17 00:00:00 2001 From: Ryan Waskiewicz Date: Thu, 18 Jan 2024 17:19:36 -0500 Subject: [PATCH] feat(deps): upgrade rollup, commonjs plugin (#5274) upgrade rollup to v2.56.3 and `@rollup/plugin-commonjs` to v21.1. this commit raises these libraries to the highest version as possible without introducing breaking changes. v2.57 has a bug in it that requires `@rollup/plugin-commonjs@22` for handling CJS-ESM interop. that version of `@rollup/plugin-commonjs` requires `@rollup/plugin-node-resolve@13`. however, `@rollup/plugin-node-resolve@11` has changes that would be breaking for existing users (see #5269) in these various versions of both libraries, new flags have been added to configure its output. for now, we continue to use the existing configurations to prevent breaking users. these new configurations have been recorded and tackled when we upgrade to newer versions of rollup (as a part of stencil v5). future upgrades will be slated to stencil v5.0.0. STENCIL-595 --- package-lock.json | 20 ++++++++++---------- package.json | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8571ee8ce38..7c133f39630 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@ionic/prettier-config": "^4.0.0", - "@rollup/plugin-commonjs": "15.1.0", + "@rollup/plugin-commonjs": "21.1.0", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "9.0.0", "@rollup/plugin-replace": "5.0.5", @@ -72,7 +72,7 @@ "prettier": "3.2.2", "prompts": "2.4.2", "puppeteer": "^21.0.0", - "rollup": "2.42.3", + "rollup": "2.56.3", "rollup-plugin-sourcemaps": "^0.6.3", "semver": "^7.3.7", "terser": "5.26.0", @@ -2519,9 +2519,9 @@ } }, "node_modules/@rollup/plugin-commonjs": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-15.1.0.tgz", - "integrity": "sha512-xCQqz4z/o0h2syQ7d9LskIMvBSH4PX5PjYdpSSvgS+pQik3WahkQVNWg3D8XJeYjZoVWnIUQYDghuEMRGrmQYQ==", + "version": "21.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-21.1.0.tgz", + "integrity": "sha512-6ZtHx3VHIp2ReNNDxHjuUml6ur+WcQ28N1yHgCQwsbNkQg2suhxGMDQGJOn/KuDxKtd1xuZP5xSTwBA4GQ8hbA==", "dev": true, "dependencies": { "@rollup/pluginutils": "^3.1.0", @@ -2536,7 +2536,7 @@ "node": ">= 8.0.0" }, "peerDependencies": { - "rollup": "^2.22.0" + "rollup": "^2.38.3" } }, "node_modules/@rollup/plugin-commonjs/node_modules/@rollup/pluginutils": { @@ -11362,9 +11362,9 @@ } }, "node_modules/rollup": { - "version": "2.42.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.42.3.tgz", - "integrity": "sha512-JjaT9WaUS5vmjy6xUrnPOskjkQg2cN4WSACNCwbOvBz8VDmbiKVdmTFUoMPRqTud0tsex8Xy9/boLbDW9HKD1w==", + "version": "2.56.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.56.3.tgz", + "integrity": "sha512-Au92NuznFklgQCUcV96iXlxUbHuB1vQMaH76DHl5M11TotjOHwqk9CwcrT78+Tnv4FN9uTBxq6p4EJoYkpyekg==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -11373,7 +11373,7 @@ "node": ">=10.0.0" }, "optionalDependencies": { - "fsevents": "~2.3.1" + "fsevents": "~2.3.2" } }, "node_modules/rollup-plugin-sourcemaps": { diff --git a/package.json b/package.json index af54dcd9a6c..cd5dfcd5fec 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ }, "devDependencies": { "@ionic/prettier-config": "^4.0.0", - "@rollup/plugin-commonjs": "15.1.0", + "@rollup/plugin-commonjs": "21.1.0", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "9.0.0", "@rollup/plugin-replace": "5.0.5", @@ -119,7 +119,7 @@ "prettier": "3.2.2", "prompts": "2.4.2", "puppeteer": "^21.0.0", - "rollup": "2.42.3", + "rollup": "2.56.3", "rollup-plugin-sourcemaps": "^0.6.3", "semver": "^7.3.7", "terser": "5.26.0",