From 9cfe03fa09175c8ade34d594c337e7eda505fb85 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:11:06 +0000 Subject: [PATCH 1/3] Bump rollup from 2.79.2 to 4.24.4 Bumps [rollup](https://github.com/rollup/rollup) from 2.79.2 to 4.24.4. - [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.2...v4.24.4) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d9d402..df57699 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "babel-jest": "^29.0.2", "jest": "^29.0.2", "prettier": "^3.3.3", - "rollup": "^2.79.0" + "rollup": "^4.24.4" }, "scripts": { "build": "rollup --config", From 95935e854659794fc49ece9d564ca65909267108 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 8 Nov 2024 08:04:56 +0100 Subject: [PATCH 2/3] Convert in Rollup config into mjs Node is complaining if this is not a mjs file. --- rollup.config.js => rollup.config.mjs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename rollup.config.js => rollup.config.mjs (100%) diff --git a/rollup.config.js b/rollup.config.mjs similarity index 100% rename from rollup.config.js rename to rollup.config.mjs From 3e858a73514a6f9d3b22593d9a4026f27a195bb6 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 8 Nov 2024 08:05:42 +0100 Subject: [PATCH 3/3] Update common js variants of dist files With Rollup v4 these have to be updated. --- dist/alchemy-json_api.js | 8 +------- dist/deserialize.js | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/dist/alchemy-json_api.js b/dist/alchemy-json_api.js index d63102d..f5dc001 100644 --- a/dist/alchemy-json_api.js +++ b/dist/alchemy-json_api.js @@ -1,15 +1,9 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var structuredClone = require('@ungap/structured-clone'); -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var structuredClone__default = /*#__PURE__*/_interopDefaultLegacy(structuredClone); - function deserialize(originalResponse) { - const response = structuredClone__default["default"](originalResponse); + const response = structuredClone(originalResponse); const included = response.included || []; if (Array.isArray(response.data)) { return response.data.map(data => { diff --git a/dist/deserialize.js b/dist/deserialize.js index b8b77ae..50d6199 100644 --- a/dist/deserialize.js +++ b/dist/deserialize.js @@ -1,15 +1,9 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var structuredClone = require('@ungap/structured-clone'); -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var structuredClone__default = /*#__PURE__*/_interopDefaultLegacy(structuredClone); - function deserialize(originalResponse) { - const response = structuredClone__default["default"](originalResponse); + const response = structuredClone(originalResponse); const included = response.included || []; if (Array.isArray(response.data)) { return response.data.map(data => {