From e312ae57f50e017c5fb288751c90d1d9dd5d1392 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 2 Mar 2026 21:16:40 +0800 Subject: [PATCH] chore: update package dependencies and remove unused modules - Removed `randombytes` and `safe-buffer` from package-lock.json as they are no longer needed. - Updated `serialize-javascript` to version 7.0.3 in both package.json and package-lock.json to ensure compatibility with Node.js 20.0.0 and above. - Adjusted overrides and resolutions in package.json to reflect the updated version of `serialize-javascript`. These changes streamline the dependency management and ensure the project is using the latest compatible versions of critical packages. --- frontend/package-lock.json | 40 +++++--------------------------------- frontend/package.json | 6 ++++-- 2 files changed, 9 insertions(+), 37 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index ee5d804f..c0c5adba 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -4388,15 +4388,6 @@ "dev": true, "optional": true }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://mirrors.tencent.com/npm/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, "node_modules/read-package-json-fast": { "version": "4.0.0", "resolved": "https://mirrors.tencent.com/npm/read-package-json-fast/-/read-package-json-fast-4.0.0.tgz", @@ -4514,26 +4505,6 @@ "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", "license": "BSD-3-Clause" }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://mirrors.tencent.com/npm/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://mirrors.tencent.com/npm/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -4578,12 +4549,11 @@ } }, "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://mirrors.tencent.com/npm/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "license": "BSD-3-Clause", - "dependencies": { - "randombytes": "^2.1.0" + "version": "7.0.3", + "resolved": "https://mirrors.tencent.com/npm/serialize-javascript/-/serialize-javascript-7.0.3.tgz", + "integrity": "sha512-h+cZ/XXarqDgCjo+YSyQU/ulDEESGGf8AMK9pPNmhNSl/FzPl6L8pMp1leca5z6NuG6tvV/auC8/43tmovowww==", + "engines": { + "node": ">=20.0.0" } }, "node_modules/setimmediate": { diff --git a/frontend/package.json b/frontend/package.json index 7c24bf67..c13fd8a1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -51,10 +51,12 @@ }, "overrides": { "lightningcss": "none", - "esbuild": "^0.25.0" + "esbuild": "^0.25.0", + "serialize-javascript": "^7.0.3" }, "resolutions": { "lightningcss": "none", - "esbuild": "^0.25.0" + "esbuild": "^0.25.0", + "serialize-javascript": "^7.0.3" } }