From b6b5cc231343ab12fa9f09890f2c3a3500a37bf9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:31:41 +0000 Subject: [PATCH 1/2] [DEPENDABOT]: Bump rollup from 2.79.1 to 3.29.5 Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 3.29.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v2.79.1...v3.29.5) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- package-lock.json | 11 ++++++----- package.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2c773072..78e5c5a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "jest-watch-typeahead": "^2.2.2", "onchange": "^7.1.0", "prettier": "^3.3.3", - "rollup": "^2.79.1", + "rollup": "^3.29.5", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "^5.6.2", "watchify": "^4.0.0", @@ -15299,15 +15299,16 @@ } }, "node_modules/rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "version": "3.29.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.5.tgz", + "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==", "dev": true, "bin": { "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=10.0.0" + "node": ">=14.18.0", + "npm": ">=8.0.0" }, "optionalDependencies": { "fsevents": "~2.3.2" diff --git a/package.json b/package.json index 0497b251..2cb72ad1 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "jest-watch-typeahead": "^2.2.2", "onchange": "^7.1.0", "prettier": "^3.3.3", - "rollup": "^2.79.1", + "rollup": "^3.29.5", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "^5.6.2", "watchify": "^4.0.0", From 1249eec15848ba622150caa2e6626e0fda6d0df7 Mon Sep 17 00:00:00 2001 From: Stefan Cameron Date: Wed, 25 Sep 2024 13:35:09 -0500 Subject: [PATCH 2/2] Rollup config needs to be ESM now --- rollup.config.js => rollup.config.mjs | 2 ++ 1 file changed, 2 insertions(+) rename rollup.config.js => rollup.config.mjs (97%) diff --git a/rollup.config.js b/rollup.config.mjs similarity index 97% rename from rollup.config.js rename to rollup.config.mjs index 45651c34..e330a08b 100644 --- a/rollup.config.js +++ b/rollup.config.mjs @@ -1,12 +1,14 @@ /* eslint-disable no-console */ /* eslint-env node */ +import { createRequire } from 'node:module'; import babel from '@rollup/plugin-babel'; import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import terser from '@rollup/plugin-terser'; import sourceMaps from 'rollup-plugin-sourcemaps'; +const require = createRequire(import.meta.url); const pkg = require('./package.json'); // REQUIRED: process.env.BUILD_ENV: "esm" | "cjs" | "umd"