From 32e51a3666a19b093d88c1484c9aa3a1993a3add Mon Sep 17 00:00:00 2001 From: kev1n-peters <96065607+kev1n-peters@users.noreply.github.com> Date: Wed, 8 May 2024 15:26:29 -0500 Subject: [PATCH] bump polyfills package to remove buffer patch (#2061) --- package-lock.json | 57 +++++++++++---------------------- wormhole-connect/package.json | 2 +- wormhole-connect/vite.config.ts | 2 +- 3 files changed, 21 insertions(+), 40 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c9b7cb51..faa4b0c99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4599,6 +4599,24 @@ "node": ">= 6" } }, + "node_modules/@kev1n-peters/vite-plugin-node-polyfills": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@kev1n-peters/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.17.4.tgz", + "integrity": "sha512-B87rIZFB6IMseeXCK73gfDBVDVxcOUVL7GB43eJuH8UWOUL3OACr7DLsrd/ncU6sSAlf6H5kuphVtrga5WSKTg==", + "dev": true, + "dependencies": { + "@rollup/plugin-inject": "^5.0.5", + "buffer-polyfill": "npm:buffer@^6.0.3", + "node-stdlib-browser": "^1.2.0", + "process": "^0.11.10" + }, + "funding": { + "url": "https://github.com/sponsors/davidmyersdev" + }, + "peerDependencies": { + "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" + } + }, "node_modules/@keystonehq/aptossnap-adapter": { "version": "0.2.8", "license": "(Apache-2.0 AND MIT)", @@ -25441,9 +25459,9 @@ "web-vitals": "^2.1.4" }, "devDependencies": { - "@artursapek/vite-plugin-node-polyfills": "0.17.3", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-env": "^7.24.4", + "@kev1n-peters/vite-plugin-node-polyfills": "^0.17.4", "@types/node": "^20", "@types/node-fetch": "^2.6.3", "@types/react": "^18.0.26", @@ -25455,7 +25473,6 @@ "env-cmd": "^10.1.0", "eslint": "^8.31.0", "eslint-config-prettier": "^8.6.0", - "prettier": "^3.2.5", "typescript": "^5.3.3", "vite": "^5.0.8", "vite-bundle-visualizer": "^0.11.0", @@ -25498,27 +25515,6 @@ "wormhole-connect/@artursapek/vite-plugin-node-polyfills": { "extraneous": true }, - "wormhole-connect/node_modules/@artursapek/vite-plugin-node-polyfills": { - "version": "0.17.3", - "resolved": "https://registry.npmjs.org/@artursapek/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.17.3.tgz", - "integrity": "sha512-9IsGpAYmHtyiqfeLPl0GUoAu+QHHJOu4PWaAgET3Wv6Rp1E5PYWgvSMZhmZzNh5M/SgfrIDs9AnR77veFUfAsw==", - "dev": true, - "workspaces": [ - "." - ], - "dependencies": { - "@rollup/plugin-inject": "^5.0.5", - "buffer-polyfill": "npm:buffer@^6.0.3", - "node-stdlib-browser": "^1.2.0", - "process": "^0.11.10" - }, - "funding": { - "url": "https://github.com/sponsors/davidmyersdev" - }, - "peerDependencies": { - "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" - } - }, "wormhole-connect/node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.11", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", @@ -26131,21 +26127,6 @@ "node": "^10 || ^12 || >=14" } }, - "wormhole-connect/node_modules/prettier": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", - "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", - "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "wormhole-connect/node_modules/rollup": { "version": "4.14.3", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.14.3.tgz", diff --git a/wormhole-connect/package.json b/wormhole-connect/package.json index 467f642f7..418aaf4c0 100644 --- a/wormhole-connect/package.json +++ b/wormhole-connect/package.json @@ -86,9 +86,9 @@ ] }, "devDependencies": { - "@artursapek/vite-plugin-node-polyfills": "0.17.3", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-env": "^7.24.4", + "@kev1n-peters/vite-plugin-node-polyfills": "^0.17.4", "@types/node": "^20", "@types/node-fetch": "^2.6.3", "@types/react": "^18.0.26", diff --git a/wormhole-connect/vite.config.ts b/wormhole-connect/vite.config.ts index a98a8736f..54726e33e 100644 --- a/wormhole-connect/vite.config.ts +++ b/wormhole-connect/vite.config.ts @@ -5,7 +5,7 @@ import checker from 'vite-plugin-checker'; // Until this is merged or that issue is fixed some other way, we have to use // this fork of vite-plugin-node-polyfills. // https://github.com/davidmyersdev/vite-plugin-node-polyfills/pull/89 -import { nodePolyfills } from '@artursapek/vite-plugin-node-polyfills'; +import { nodePolyfills } from '@kev1n-peters/vite-plugin-node-polyfills'; import dts from 'vite-plugin-dts'; const packagePath = __dirname.endsWith('wormhole-connect')