From 882627b57ab6efd0d8442b0984c2247a4756712e Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Wed, 4 Sep 2024 20:35:37 -0500 Subject: [PATCH 01/17] migrate to rspack for building --- package-lock.json | 1797 +++++++++-------- packages/clerk-js/package.json | 21 +- .../{webpack.config.js => rspack.config.js} | 123 +- 3 files changed, 1035 insertions(+), 906 deletions(-) rename packages/clerk-js/{webpack.config.js => rspack.config.js} (80%) diff --git a/package-lock.json b/package-lock.json index bcb1421a8f..e2b0937fd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6552,13 +6552,6 @@ "@swc/helpers": "^0.5.0" } }, - "node_modules/@internationalized/date/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@internationalized/message": { "version": "3.1.4", "license": "Apache-2.0", @@ -6567,13 +6560,6 @@ "intl-messageformat": "^10.1.0" } }, - "node_modules/@internationalized/message/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@internationalized/number": { "version": "3.5.3", "license": "Apache-2.0", @@ -6581,13 +6567,6 @@ "@swc/helpers": "^0.5.0" } }, - "node_modules/@internationalized/number/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@internationalized/string": { "version": "3.2.3", "license": "Apache-2.0", @@ -6595,13 +6574,6 @@ "@swc/helpers": "^0.5.0" } }, - "node_modules/@internationalized/string/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@ioredis/commands": { "version": "1.2.0", "dev": true, @@ -7452,6 +7424,60 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@jsonjoy.com/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA==", + "dev": true, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/@jsonjoy.com/json-pack": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/json-pack/-/json-pack-1.1.0.tgz", + "integrity": "sha512-zlQONA+msXPPwHWZMKFVS78ewFczIll5lXiVPwFPCZUsrOKdxc2AvxU1HoNBmMRhqDZUR9HkC3UOm+6pME6Xsg==", + "dev": true, + "dependencies": { + "@jsonjoy.com/base64": "^1.1.1", + "@jsonjoy.com/util": "^1.1.2", + "hyperdyperid": "^1.2.0", + "thingies": "^1.20.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/@jsonjoy.com/util": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/util/-/util-1.3.0.tgz", + "integrity": "sha512-Cebt4Vk7k1xHy87kHY7KSPLT77A7Ev7IfOblyLZhtYEhrdQ6fX4EoLq3xOQ3O/DRMEh2ok5nyC180E+ABS8Wmw==", + "dev": true, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, "node_modules/@leichtgewicht/ip-codec": { "version": "2.0.4", "dev": true, @@ -8018,6 +8044,41 @@ "node": ">=14.0" } }, + "node_modules/@module-federation/runtime": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.5.1.tgz", + "integrity": "sha512-xgiMUWwGLWDrvZc9JibuEbXIbhXg6z2oUkemogSvQ4LKvrl/n0kbqP1Blk669mXzyWbqtSp6PpvNdwaE1aN5xQ==", + "dev": true, + "dependencies": { + "@module-federation/sdk": "0.5.1" + } + }, + "node_modules/@module-federation/runtime-tools": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.5.1.tgz", + "integrity": "sha512-nfBedkoZ3/SWyO0hnmaxuz0R0iGPSikHZOAZ0N/dVSQaIzlffUo35B5nlC2wgWIc0JdMZfkwkjZRrnuuDIJbzg==", + "dev": true, + "dependencies": { + "@module-federation/runtime": "0.5.1", + "@module-federation/webpack-bundler-runtime": "0.5.1" + } + }, + "node_modules/@module-federation/sdk": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.5.1.tgz", + "integrity": "sha512-exvchtjNURJJkpqjQ3/opdbfeT2wPKvrbnGnyRkrwW5o3FH1LaST1tkiNviT6OXTexGaVc2DahbdniQHVtQ7pA==", + "dev": true + }, + "node_modules/@module-federation/webpack-bundler-runtime": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.5.1.tgz", + "integrity": "sha512-mMhRFH0k2VjwHt3Jol9JkUsmI/4XlrAoBG3E0o7HoyoPYv1UFOWyqAflfANcUPgbYpvqmyLzDcO+3IT36LXnrA==", + "dev": true, + "dependencies": { + "@module-federation/runtime": "0.5.1", + "@module-federation/sdk": "0.5.1" + } + }, "node_modules/@netlify/functions": { "version": "2.8.1", "dev": true, @@ -8474,63 +8535,6 @@ "node": ">=16" } }, - "node_modules/@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.5.10", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-html-community": "^0.0.8", - "common-path-prefix": "^3.0.0", - "core-js-pure": "^3.23.3", - "error-stack-parser": "^2.0.6", - "find-up": "^5.0.0", - "html-entities": "^2.1.0", - "loader-utils": "^2.0.4", - "schema-utils": "^3.0.0", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">= 10.13" - }, - "peerDependencies": { - "@types/webpack": "4.x || 5.x", - "react-refresh": ">=0.10.0 <1.0.0", - "sockjs-client": "^1.4.0", - "type-fest": ">=0.17.0 <4.0.0", - "webpack": ">=4.43.0 <6.0.0", - "webpack-dev-server": "3.x || 4.x", - "webpack-hot-middleware": "2.x", - "webpack-plugin-serve": "0.x || 1.x" - }, - "peerDependenciesMeta": { - "@types/webpack": { - "optional": true - }, - "sockjs-client": { - "optional": true - }, - "type-fest": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - }, - "webpack-hot-middleware": { - "optional": true - }, - "webpack-plugin-serve": { - "optional": true - } - } - }, - "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/source-map": { - "version": "0.7.4", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">= 8" - } - }, "node_modules/@polka/url": { "version": "1.0.0-next.21", "dev": true, @@ -8858,13 +8862,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/breadcrumbs/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/button": { "version": "3.9.5", "license": "Apache-2.0", @@ -8881,13 +8878,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/button/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/calendar": { "version": "3.5.8", "license": "Apache-2.0", @@ -8908,13 +8898,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/calendar/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/checkbox": { "version": "3.14.3", "license": "Apache-2.0", @@ -8935,13 +8918,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/checkbox/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/color": { "version": "3.0.0-beta.33", "license": "Apache-2.0", @@ -8965,13 +8941,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/color/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/combobox": { "version": "3.9.1", "license": "Apache-2.0", @@ -8997,13 +8966,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/combobox/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/datepicker": { "version": "3.10.1", "license": "Apache-2.0", @@ -9032,13 +8994,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/datepicker/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/dialog": { "version": "3.5.14", "license": "Apache-2.0", @@ -9055,13 +9010,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/dialog/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/dnd": { "version": "3.6.1", "license": "Apache-2.0", @@ -9082,13 +9030,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/dnd/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/focus": { "version": "3.17.1", "license": "Apache-2.0", @@ -9103,13 +9044,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/focus/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/form": { "version": "3.0.5", "license": "Apache-2.0", @@ -9124,13 +9058,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/form/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/grid": { "version": "3.9.1", "license": "Apache-2.0", @@ -9155,13 +9082,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/grid/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/gridlist": { "version": "3.8.1", "license": "Apache-2.0", @@ -9183,13 +9103,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/gridlist/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/i18n": { "version": "3.11.1", "license": "Apache-2.0", @@ -9207,13 +9120,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/i18n/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/interactions": { "version": "3.21.3", "license": "Apache-2.0", @@ -9227,13 +9133,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/interactions/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/label": { "version": "3.7.8", "license": "Apache-2.0", @@ -9246,13 +9145,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/label/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/link": { "version": "3.7.1", "license": "Apache-2.0", @@ -9268,13 +9160,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/link/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/listbox": { "version": "3.12.1", "license": "Apache-2.0", @@ -9294,13 +9179,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/listbox/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/live-announcer": { "version": "3.3.4", "license": "Apache-2.0", @@ -9308,13 +9186,6 @@ "@swc/helpers": "^0.5.0" } }, - "node_modules/@react-aria/live-announcer/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/menu": { "version": "3.14.1", "license": "Apache-2.0", @@ -9338,13 +9209,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/menu/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/meter": { "version": "3.4.13", "license": "Apache-2.0", @@ -9358,13 +9222,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/meter/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/numberfield": { "version": "3.11.3", "license": "Apache-2.0", @@ -9386,13 +9243,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/numberfield/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/overlays": { "version": "3.22.1", "license": "Apache-2.0", @@ -9414,13 +9264,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/overlays/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/progress": { "version": "3.4.13", "license": "Apache-2.0", @@ -9436,13 +9279,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/progress/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/radio": { "version": "3.10.4", "license": "Apache-2.0", @@ -9462,13 +9298,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/radio/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/searchfield": { "version": "3.7.5", "license": "Apache-2.0", @@ -9486,13 +9315,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/searchfield/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/select": { "version": "3.14.5", "license": "Apache-2.0", @@ -9517,13 +9339,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/select/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/selection": { "version": "3.18.1", "license": "Apache-2.0", @@ -9541,13 +9356,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/selection/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/separator": { "version": "3.3.13", "license": "Apache-2.0", @@ -9560,13 +9368,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/separator/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/slider": { "version": "3.7.8", "license": "Apache-2.0", @@ -9585,13 +9386,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/slider/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/spinbutton": { "version": "3.6.5", "license": "Apache-2.0", @@ -9608,13 +9402,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/spinbutton/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/ssr": { "version": "3.9.4", "license": "Apache-2.0", @@ -9628,13 +9415,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/ssr/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/switch": { "version": "3.6.4", "license": "Apache-2.0", @@ -9648,13 +9428,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/switch/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/table": { "version": "3.14.1", "license": "Apache-2.0", @@ -9681,13 +9454,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/table/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/tabs": { "version": "3.9.1", "license": "Apache-2.0", @@ -9706,13 +9472,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/tabs/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/tag": { "version": "3.4.1", "license": "Apache-2.0", @@ -9733,13 +9492,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/tag/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/textfield": { "version": "3.14.5", "license": "Apache-2.0", @@ -9758,13 +9510,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/textfield/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/toggle": { "version": "3.10.4", "license": "Apache-2.0", @@ -9780,13 +9525,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/toggle/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/toolbar": { "version": "3.0.0-beta.5", "license": "Apache-2.0", @@ -9801,13 +9539,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/toolbar/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/tooltip": { "version": "3.7.4", "license": "Apache-2.0", @@ -9824,13 +9555,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/tooltip/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/tree": { "version": "3.0.0-alpha.1", "license": "Apache-2.0", @@ -9849,13 +9573,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/tree/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/utils": { "version": "3.24.1", "license": "Apache-2.0", @@ -9870,13 +9587,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/utils/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-aria/visually-hidden": { "version": "3.8.12", "license": "Apache-2.0", @@ -9890,13 +9600,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/visually-hidden/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-native-community/cli": { "version": "12.3.7", "dev": true, @@ -11210,13 +10913,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/calendar/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/checkbox": { "version": "3.6.5", "license": "Apache-2.0", @@ -11231,13 +10927,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/checkbox/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/collections": { "version": "3.10.7", "license": "Apache-2.0", @@ -11249,13 +10938,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/collections/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/color": { "version": "3.6.1", "license": "Apache-2.0", @@ -11275,13 +10957,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/color/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/combobox": { "version": "3.8.4", "license": "Apache-2.0", @@ -11300,13 +10975,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/combobox/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/data": { "version": "3.11.4", "license": "Apache-2.0", @@ -11318,13 +10986,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/data/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/datepicker": { "version": "3.9.4", "license": "Apache-2.0", @@ -11342,13 +11003,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/datepicker/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/dnd": { "version": "3.3.1", "license": "Apache-2.0", @@ -11361,13 +11015,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/dnd/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/flags": { "version": "3.0.3", "license": "Apache-2.0", @@ -11375,13 +11022,6 @@ "@swc/helpers": "^0.5.0" } }, - "node_modules/@react-stately/flags/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/form": { "version": "3.0.3", "license": "Apache-2.0", @@ -11393,13 +11033,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/form/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/grid": { "version": "3.8.7", "license": "Apache-2.0", @@ -11414,13 +11047,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/grid/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/list": { "version": "3.10.5", "license": "Apache-2.0", @@ -11435,13 +11061,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/list/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/menu": { "version": "3.7.1", "license": "Apache-2.0", @@ -11455,13 +11074,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/menu/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/numberfield": { "version": "3.9.3", "license": "Apache-2.0", @@ -11476,13 +11088,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/numberfield/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/overlays": { "version": "3.6.7", "license": "Apache-2.0", @@ -11495,13 +11100,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/overlays/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/radio": { "version": "3.10.4", "license": "Apache-2.0", @@ -11516,13 +11114,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/radio/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/searchfield": { "version": "3.5.3", "license": "Apache-2.0", @@ -11535,13 +11126,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/searchfield/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/select": { "version": "3.6.4", "license": "Apache-2.0", @@ -11557,13 +11141,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/select/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/selection": { "version": "3.15.1", "license": "Apache-2.0", @@ -11577,13 +11154,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/selection/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/slider": { "version": "3.5.4", "license": "Apache-2.0", @@ -11597,13 +11167,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/slider/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/table": { "version": "3.11.8", "license": "Apache-2.0", @@ -11622,13 +11185,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/table/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/tabs": { "version": "3.6.6", "license": "Apache-2.0", @@ -11642,13 +11198,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/tabs/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/toggle": { "version": "3.7.4", "license": "Apache-2.0", @@ -11661,13 +11210,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/toggle/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/tooltip": { "version": "3.4.9", "license": "Apache-2.0", @@ -11680,13 +11222,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/tooltip/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/tree": { "version": "3.8.1", "license": "Apache-2.0", @@ -11701,13 +11236,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/tree/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/utils": { "version": "3.10.1", "license": "Apache-2.0", @@ -11718,13 +11246,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/utils/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-stately/virtualizer": { "version": "3.7.1", "license": "Apache-2.0", @@ -11737,13 +11258,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/virtualizer/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/@react-types/breadcrumbs": { "version": "3.7.5", "license": "Apache-2.0", @@ -12492,6 +12006,586 @@ "win32" ] }, + "node_modules/@rspack/binding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.0.3.tgz", + "integrity": "sha512-wRLUDyi/6jFDDZJIov4uh9H9hJNk7JKDEhaMLM/5lJzzWsTLBB/q6JB1VAdIzOzBhYsU8iIMEVuG3Uih1H43uw==", + "dev": true, + "optionalDependencies": { + "@rspack/binding-darwin-arm64": "1.0.3", + "@rspack/binding-darwin-x64": "1.0.3", + "@rspack/binding-linux-arm64-gnu": "1.0.3", + "@rspack/binding-linux-arm64-musl": "1.0.3", + "@rspack/binding-linux-x64-gnu": "1.0.3", + "@rspack/binding-linux-x64-musl": "1.0.3", + "@rspack/binding-win32-arm64-msvc": "1.0.3", + "@rspack/binding-win32-ia32-msvc": "1.0.3", + "@rspack/binding-win32-x64-msvc": "1.0.3" + } + }, + "node_modules/@rspack/binding-darwin-arm64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.0.3.tgz", + "integrity": "sha512-MZlQpDRJkjIJJqmYMiziwz9vLXi1KjORYW6hemC2umDfOzUmlkRPBUF8oEqXaUQ+zYLbjhk4iTSbFdrlqUR+6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rspack/binding-darwin-x64": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.0.3.tgz", + "integrity": "sha512-Ke8Tw3+j5YFFIHjlqrEDnW5fbZU14s+l5LhLVaw6gVXH4yAAyFaZejaIViGi5fhKkdKmCXm0nVTK1KhhASZxAw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rspack/binding-linux-arm64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.3.tgz", + "integrity": "sha512-Ydm6rsBnPYlKfWtz6sPRgAgJ5fQ+zFSHplR4bFlARIOXeWPn7ckQvFZrmKexuR0ULjG3Z4sbfrU6udc2MAWvig==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-arm64-musl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.3.tgz", + "integrity": "sha512-2aS65Xne3W6qJJ5PN5oL/bMbkUeYpsQduT+ML6vY6hqvi6W6wYtkvHwscQ4HisxKQFWdB2bsE1+UT34XgHpijw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-x64-gnu": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.3.tgz", + "integrity": "sha512-6UWii/GBkV0B98RSjJr9Za5Y8rvU1vQpE5+8vb26pvo3Sh3kvRfOmSeIFyqR3I92er5SQKmEp8uggb74st6QGQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-x64-musl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.3.tgz", + "integrity": "sha512-tpKGPJEe6vkkH3bsDz+l7xndNrOGxDvbDVOXV0uSESnRr6Pef5253Bi5PNooGLSaWQlXVDdazhi6x1beVHI2eg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-win32-arm64-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.3.tgz", + "integrity": "sha512-9FwP64T6yeq3cG1JQG0VagTMuJxJCT45G9LN5RTJ2kxJ4T28vL7uEc9usPpXOyd6xpbzTKXX0mVxL+c8x0EhZQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding-win32-ia32-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.0.3.tgz", + "integrity": "sha512-nXbeh0206bGiwV1vgY8UDk92sZ2yMvJenevnnLtGFSMTRQ46Z2f9n+mUO1GlvpanR1HAfhgPddlKasIncTJmPQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding-win32-x64-msvc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.3.tgz", + "integrity": "sha512-htBi4xt+iXD/NCEo/q4fYSg5YfXymK9P9zI36NFvfguQbhwqy4JgBx0IorjDFl5qvG70sdUzY7x98DJEseGScQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/cli": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/cli/-/cli-1.0.3.tgz", + "integrity": "sha512-W/msqOXg93FXwq/Rxk6vkrdO3vHovxe22PMNauY6L1TQM6EpzyoBRoLfjuk+ONyEXpoLttYZF5YUWzAHNtRJoA==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.7", + "@rspack/dev-server": "1.0.3", + "colorette": "2.0.19", + "exit-hook": "^3.2.0", + "interpret": "^3.1.1", + "rechoir": "^0.8.0", + "semver": "^7.6.2", + "webpack-bundle-analyzer": "4.6.1", + "yargs": "17.6.2" + }, + "bin": { + "rspack": "bin/rspack" + }, + "peerDependencies": { + "@rspack/core": "^1.0.0-alpha || ^1.x" + } + }, + "node_modules/@rspack/cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@rspack/cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@rspack/cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@rspack/cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@rspack/cli/node_modules/colorette": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", + "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "dev": true + }, + "node_modules/@rspack/cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@rspack/cli/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rspack/cli/node_modules/webpack-bundle-analyzer": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.1.tgz", + "integrity": "sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==", + "dev": true, + "dependencies": { + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/@rspack/cli/node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@rspack/cli/node_modules/yargs": { + "version": "17.6.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", + "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@rspack/cli/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@rspack/core": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.0.3.tgz", + "integrity": "sha512-BqyBSrcTtsm1EDI10TrK6tEfNsy5vEnVDnbI0HBuQBH1zhKblnvsu6Y2bbS9+OGmB+OPEr76CmuZtzb+7V3wrQ==", + "dev": true, + "dependencies": { + "@module-federation/runtime-tools": "0.5.1", + "@rspack/binding": "1.0.3", + "@rspack/lite-tapable": "1.0.0", + "caniuse-lite": "^1.0.30001616" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@swc/helpers": ">=0.5.1" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@rspack/dev-server": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rspack/dev-server/-/dev-server-1.0.3.tgz", + "integrity": "sha512-l+hT6XN+DFlAsy8LjDmuVrYaw1KI/4BTANBcaLj/bpb5OIzTUSGcue7AUEqMrAJAgFqG1zYfP4Uvf7lG7WWfgw==", + "dev": true, + "dependencies": { + "chokidar": "^3.6.0", + "connect-history-api-fallback": "^2.0.0", + "express": "^4.19.2", + "http-proxy-middleware": "^2.0.6", + "mime-types": "^2.1.35", + "webpack-dev-middleware": "^7.4.2", + "webpack-dev-server": "5.0.4", + "ws": "^8.16.0" + }, + "peerDependencies": { + "@rspack/core": "*" + } + }, + "node_modules/@rspack/dev-server/node_modules/@types/retry": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.2.tgz", + "integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==", + "dev": true + }, + "node_modules/@rspack/dev-server/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@rspack/dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/@rspack/dev-server/node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@rspack/dev-server/node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@rspack/dev-server/node_modules/fast-uri": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", + "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", + "dev": true + }, + "node_modules/@rspack/dev-server/node_modules/ipaddr.js": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.2.0.tgz", + "integrity": "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@rspack/dev-server/node_modules/is-wsl": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", + "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", + "dev": true, + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@rspack/dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@rspack/dev-server/node_modules/open": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.1.0.tgz", + "integrity": "sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==", + "dev": true, + "dependencies": { + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@rspack/dev-server/node_modules/p-retry": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-6.2.0.tgz", + "integrity": "sha512-JA6nkq6hKyWLLasXQXUrO4z8BUZGUt/LjlJxx8Gb2+2ntodU/SS63YZ8b0LUTbQ8ZB9iwOfhEPhg4ykKnn2KsA==", + "dev": true, + "dependencies": { + "@types/retry": "0.12.2", + "is-network-error": "^1.0.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@rspack/dev-server/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/@rspack/dev-server/node_modules/webpack-dev-server": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.0.4.tgz", + "integrity": "sha512-dljXhUgx3HqKP2d8J/fUMvhxGhzjeNVarDLcbO/EWMSgRizDkxHQDZQaLFL5VJY9tRBj2Gz+rvCEYYvhbqPHNA==", + "dev": true, + "dependencies": { + "@types/bonjour": "^3.5.13", + "@types/connect-history-api-fallback": "^1.5.4", + "@types/express": "^4.17.21", + "@types/serve-index": "^1.9.4", + "@types/serve-static": "^1.15.5", + "@types/sockjs": "^0.3.36", + "@types/ws": "^8.5.10", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.2.1", + "chokidar": "^3.6.0", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.4.0", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.1.0", + "launch-editor": "^2.6.1", + "open": "^10.0.3", + "p-retry": "^6.2.0", + "rimraf": "^5.0.5", + "schema-utils": "^4.2.0", + "selfsigned": "^2.4.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^7.1.0", + "ws": "^8.16.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 18.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/@rspack/lite-tapable": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.0.0.tgz", + "integrity": "sha512-7MZf4lburSUZoEenwazwUDKHhqyfnLCGnQ/tKcUtztfmVzfjZfRn/EaiT0AKkYGnL2U8AGsw89oUeVyvaOLVCw==", + "dev": true, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@rspack/plugin-react-refresh": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@rspack/plugin-react-refresh/-/plugin-react-refresh-1.0.0.tgz", + "integrity": "sha512-WvXkLewW5G0Mlo5H1b251yDh5FFiH4NDAbYlFpvFjcuXX2AchZRf9zdw57BDE/ADyWsJgA8kixN/zZWBTN3iYA==", + "dev": true, + "dependencies": { + "error-stack-parser": "^2.0.6", + "html-entities": "^2.1.0" + }, + "peerDependencies": { + "react-refresh": ">=0.10.0 <1.0.0" + }, + "peerDependenciesMeta": { + "react-refresh": { + "optional": true + } + } + }, "node_modules/@rushstack/eslint-patch": { "version": "1.5.1", "license": "MIT" @@ -12840,6 +12934,14 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/@swc/helpers": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.13.tgz", + "integrity": "sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==", + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@tanstack/react-cross-context": { "version": "1.51.6", "resolved": "https://registry.npmjs.org/@tanstack/react-cross-context/-/react-cross-context-1.51.6.tgz", @@ -13199,9 +13301,10 @@ } }, "node_modules/@types/bonjour": { - "version": "3.5.10", + "version": "3.5.13", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.13.tgz", + "integrity": "sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -13225,9 +13328,10 @@ } }, "node_modules/@types/connect-history-api-fallback": { - "version": "1.5.0", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz", + "integrity": "sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw==", "dev": true, - "license": "MIT", "dependencies": { "@types/express-serve-static-core": "*", "@types/node": "*" @@ -13268,6 +13372,7 @@ "version": "7.29.0", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -13277,6 +13382,7 @@ "version": "3.7.4", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/eslint": "*", "@types/estree": "*" @@ -13363,6 +13469,12 @@ "@types/unist": "*" } }, + "node_modules/@types/http-errors": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", + "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", + "dev": true + }, "node_modules/@types/http-proxy": { "version": "1.17.14", "dev": true, @@ -13607,20 +13719,23 @@ } }, "node_modules/@types/serve-index": { - "version": "1.9.1", + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.4.tgz", + "integrity": "sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug==", "dev": true, - "license": "MIT", "dependencies": { "@types/express": "*" } }, "node_modules/@types/serve-static": { - "version": "1.15.1", + "version": "1.15.7", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", + "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", "dev": true, - "license": "MIT", "dependencies": { - "@types/mime": "*", - "@types/node": "*" + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" } }, "node_modules/@types/sinon": { @@ -13642,9 +13757,10 @@ "license": "MIT" }, "node_modules/@types/sockjs": { - "version": "0.3.33", + "version": "0.3.36", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.36.tgz", + "integrity": "sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -13716,9 +13832,10 @@ "license": "MIT" }, "node_modules/@types/ws": { - "version": "8.5.4", + "version": "8.5.12", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz", + "integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -14760,6 +14877,7 @@ "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/helper-numbers": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6" @@ -14768,22 +14886,26 @@ "node_modules/@webassemblyjs/floating-point-hex-parser": { "version": "1.11.6", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.6", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-buffer": { "version": "1.12.1", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.6", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.6", "@webassemblyjs/helper-api-error": "1.11.6", @@ -14793,12 +14915,14 @@ "node_modules/@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.6", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-buffer": "1.12.1", @@ -14810,6 +14934,7 @@ "version": "1.11.6", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } @@ -14818,6 +14943,7 @@ "version": "1.11.6", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "@xtuc/long": "4.2.2" } @@ -14825,12 +14951,14 @@ "node_modules/@webassemblyjs/utf8": { "version": "1.11.6", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/wasm-edit": { "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-buffer": "1.12.1", @@ -14846,6 +14974,7 @@ "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", @@ -14858,6 +14987,7 @@ "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-buffer": "1.12.1", @@ -14869,6 +14999,7 @@ "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-api-error": "1.11.6", @@ -14882,52 +15013,12 @@ "version": "1.12.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@xtuc/long": "4.2.2" } }, - "node_modules/@webpack-cli/configtest": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.15.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - } - }, - "node_modules/@webpack-cli/info": { - "version": "2.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.15.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - } - }, - "node_modules/@webpack-cli/serve": { - "version": "2.0.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.15.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - }, - "peerDependenciesMeta": { - "webpack-dev-server": { - "optional": true - } - } - }, "node_modules/@xmldom/xmldom": { "version": "0.7.13", "dev": true, @@ -14939,12 +15030,14 @@ "node_modules/@xtuc/ieee754": { "version": "1.2.0", "dev": true, - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/@xtuc/long": { "version": "4.2.2", "dev": true, - "license": "Apache-2.0" + "license": "Apache-2.0", + "peer": true }, "node_modules/@zxcvbn-ts/core": { "version": "3.0.4", @@ -15016,6 +15109,7 @@ "version": "1.9.0", "dev": true, "license": "MIT", + "peer": true, "peerDependencies": { "acorn": "^8" } @@ -17206,14 +17300,6 @@ "node": ">=0.6" } }, - "node_modules/big.js": { - "version": "5.2.2", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/binary-extensions": { "version": "2.2.0", "license": "MIT", @@ -17269,21 +17355,15 @@ "peer": true }, "node_modules/bonjour-service": { - "version": "1.1.1", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.2.1.tgz", + "integrity": "sha512-oSzCS2zV14bh2kji6vNe7vrpJYCHGvcZnlffFQ1MEoX/WOeQ/teD8SYWKR942OI3INjq8OMNJlbPK5LLLUxFDw==", "dev": true, - "license": "MIT", "dependencies": { - "array-flatten": "^2.1.2", - "dns-equal": "^1.0.0", "fast-deep-equal": "^3.1.3", "multicast-dns": "^7.2.5" } }, - "node_modules/bonjour-service/node_modules/array-flatten": { - "version": "2.1.2", - "dev": true, - "license": "MIT" - }, "node_modules/boolbase": { "version": "1.0.0", "license": "ISC" @@ -17590,6 +17670,21 @@ "semver": "^7.0.0" } }, + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "dev": true, + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/busboy": { "version": "1.6.0", "dev": true, @@ -18137,6 +18232,7 @@ "version": "1.0.3", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.0" } @@ -18705,11 +18801,6 @@ "license": "ISC", "peer": true }, - "node_modules/common-path-prefix": { - "version": "3.0.0", - "dev": true, - "license": "ISC" - }, "node_modules/common-tags": { "version": "1.8.2", "dev": true, @@ -19233,16 +19324,6 @@ "url": "https://opencollective.com/core-js" } }, - "node_modules/core-js-pure": { - "version": "3.30.2", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-util-is": { "version": "1.0.3", "dev": true, @@ -20418,6 +20499,34 @@ "node": ">=0.10.0" } }, + "node_modules/default-browser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz", + "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==", + "dev": true, + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz", + "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/default-gateway": { "version": "4.2.0", "dev": true, @@ -21247,11 +21356,6 @@ "version": "1.1.3", "license": "MIT" }, - "node_modules/dns-equal": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/dns-packet": { "version": "5.6.0", "dev": true, @@ -21484,14 +21588,6 @@ "version": "2.4.0", "license": "MIT" }, - "node_modules/emojis-list": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, "node_modules/encodeurl": { "version": "1.0.2", "dev": true, @@ -23351,6 +23447,18 @@ "node": ">= 0.8.0" } }, + "node_modules/exit-hook": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-3.2.0.tgz", + "integrity": "sha512-aIQN7Q04HGAV/I5BszisuHTZHXNoC23WtLkxdCLuYZMdWviRD0TMIt2bnUBi9MrHaF/hH8b3gwG9iaAUHKnJGA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/expect": { "version": "29.7.0", "devOptional": true, @@ -25480,9 +25588,20 @@ } }, "node_modules/html-entities": { - "version": "2.3.5", + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.5.2.tgz", + "integrity": "sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==", "dev": true, - "license": "MIT" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ] }, "node_modules/html-escaper": { "version": "2.0.2", @@ -25740,6 +25859,15 @@ "url": "https://github.com/sponsors/typicode" } }, + "node_modules/hyperdyperid": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/hyperdyperid/-/hyperdyperid-1.2.0.tgz", + "integrity": "sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A==", + "dev": true, + "engines": { + "node": ">=10.18" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "dev": true, @@ -26757,6 +26885,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-network-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-network-error/-/is-network-error-1.1.0.tgz", + "integrity": "sha512-tUdRRAnhT+OtCZR/LxZelH/C7QtjtFrTu5tXCA8pl55eTUElUHT+GPYV8MBMBvea/j+NxQqVt3LbWMRir7Gx9g==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-number": { "version": "7.0.0", "license": "MIT", @@ -29330,12 +29470,13 @@ } }, "node_modules/launch-editor": { - "version": "2.6.0", + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.8.2.tgz", + "integrity": "sha512-eF5slEUZXmi6WvFzI3dYcv+hA24/iKnROf24HztcURJpSz9RBmBgz5cNCVOeguouf1llrwy6Yctl4C4HM+xI8g==", "dev": true, - "license": "MIT", "dependencies": { "picocolors": "^1.0.0", - "shell-quote": "^1.7.3" + "shell-quote": "^1.8.1" } }, "node_modules/lazy-ass": { @@ -30160,23 +30301,11 @@ "version": "4.3.0", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.11.5" } }, - "node_modules/loader-utils": { - "version": "2.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, "node_modules/local-pkg": { "version": "0.5.0", "dev": true, @@ -33867,14 +33996,6 @@ "node": ">=8" } }, - "node_modules/p-retry/node_modules/retry": { - "version": "0.13.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, "node_modules/p-timeout": { "version": "5.1.0", "dev": true, @@ -35254,13 +35375,6 @@ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/react-aria-components/node_modules/@swc/helpers": { - "version": "0.5.11", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.4.0" - } - }, "node_modules/react-devtools-core": { "version": "4.28.5", "devOptional": true, @@ -36220,6 +36334,15 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/reusify": { "version": "1.0.4", "license": "MIT", @@ -36376,6 +36499,18 @@ "dev": true, "license": "MIT" }, + "node_modules/run-applescript": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz", + "integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "funding": [ @@ -38638,6 +38773,18 @@ "node": ">=0.8" } }, + "node_modules/thingies": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/thingies/-/thingies-1.21.0.tgz", + "integrity": "sha512-hsqsJsFMsV+aD4s3CWKk85ep/3I9XzYV/IXaSouJMYIoDlgyi11cBhsqYe9/geRfB0YIikBQg6raRaM+nIMP9g==", + "dev": true, + "engines": { + "node": ">=10.18" + }, + "peerDependencies": { + "tslib": "^2" + } + }, "node_modules/thread-stream": { "version": "2.7.0", "license": "MIT", @@ -38862,6 +39009,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/tree-dump": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tree-dump/-/tree-dump-1.0.2.tgz", + "integrity": "sha512-dpev9ABuLWdEubk+cIaI9cHwRNNDjkBBLXTwI4UCUFdQ5xXKqNXoK4FEciw/vxf+NQ7Cb7sGUyeUtORvHIdRXQ==", + "dev": true, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, "node_modules/tree-kill": { "version": "1.2.2", "license": "MIT", @@ -41385,152 +41548,111 @@ } } }, - "node_modules/webpack-bundle-analyzer": { - "version": "4.9.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "chalk": "^4.1.0", - "commander": "^7.2.0", - "gzip-size": "^6.0.0", - "lodash": "^4.17.20", - "opener": "^1.5.2", - "sirv": "^1.0.7", - "ws": "^7.3.1" - }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { - "version": "4.3.0", + "node_modules/webpack-dev-middleware": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-7.4.2.tgz", + "integrity": "sha512-xOO8n6eggxnwYpy1NlzUKpvrjfJTvae5/D6WOK0S2LSo7vjmo5gCM1DbLUmFqrMTJP+W/0YZNctm7jasWvLuBA==", "dev": true, - "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "colorette": "^2.0.10", + "memfs": "^4.6.0", + "mime-types": "^2.1.31", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">= 18.12.0" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + } } }, - "node_modules/webpack-bundle-analyzer/node_modules/chalk": { - "version": "4.1.2", + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/webpack-bundle-analyzer/node_modules/color-convert": { - "version": "2.0.1", + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", "dev": true, - "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "fast-deep-equal": "^3.1.3" }, - "engines": { - "node": ">=7.0.0" + "peerDependencies": { + "ajv": "^8.8.2" } }, - "node_modules/webpack-bundle-analyzer/node_modules/color-name": { - "version": "1.1.4", - "dev": true, - "license": "MIT" + "node_modules/webpack-dev-middleware/node_modules/fast-uri": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", + "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", + "dev": true }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10" - } + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, - "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "7.5.9", + "node_modules/webpack-dev-middleware/node_modules/memfs": { + "version": "4.11.1", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-4.11.1.tgz", + "integrity": "sha512-LZcMTBAgqUUKNXZagcZxvXXfgF1bHX7Y7nQ0QyEiNbRJgE29GhgPd8Yna1VQcLlPiHt/5RFJMWYN9Uv/VPNvjQ==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.3.0" + "dependencies": { + "@jsonjoy.com/json-pack": "^1.0.3", + "@jsonjoy.com/util": "^1.3.0", + "tree-dump": "^1.0.1", + "tslib": "^2.0.0" }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "engines": { + "node": ">= 4.0.0" }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" } }, - "node_modules/webpack-cli": { - "version": "5.1.3", + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", "dev": true, - "license": "MIT", "dependencies": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^2.1.1", - "@webpack-cli/info": "^2.0.2", - "@webpack-cli/serve": "^2.0.5", - "colorette": "^2.0.14", - "commander": "^10.0.1", - "cross-spawn": "^7.0.3", - "envinfo": "^7.7.3", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^3.1.1", - "rechoir": "^0.8.0", - "webpack-merge": "^5.7.3" - }, - "bin": { - "webpack-cli": "bin/cli.js" + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" }, "engines": { - "node": ">=14.15.0" + "node": ">= 12.13.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "5.x.x" - }, - "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/webpack-cli/node_modules/commander": { - "version": "10.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" } }, "node_modules/webpack-dev-server": { @@ -43235,6 +43357,7 @@ "@emotion/react": "11.11.1", "@floating-ui/react": "0.25.4", "@formkit/auto-animate": "^0.8.1", + "@swc/helpers": "^0.5.13", "@zxcvbn-ts/core": "3.0.4", "@zxcvbn-ts/language-common": "3.0.4", "browser-tabs-lock": "1.2.15", @@ -43253,7 +43376,9 @@ "@babel/preset-react": "^7.12.5", "@babel/preset-typescript": "^7.12.1", "@clerk/eslint-config-custom": "*", - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", + "@rspack/cli": "^1.0.3", + "@rspack/core": "^1.0.3", + "@rspack/plugin-react-refresh": "^1.0.0", "@svgr/webpack": "^6.2.1", "@types/react": "*", "@types/react-dom": "*", @@ -43267,10 +43392,6 @@ "terser-webpack-plugin": "^5.3.10", "ts-loader": "^9.3.0", "typescript": "*", - "webpack": "^5.91.0", - "webpack-bundle-analyzer": "^4.9.0", - "webpack-cli": "^5.1.3", - "webpack-dev-server": "^4.15.0", "webpack-merge": "^5.9.0" }, "engines": { @@ -43405,6 +43526,7 @@ "version": "5.16.0", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -43417,6 +43539,7 @@ "version": "5.1.1", "dev": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -43429,6 +43552,7 @@ "version": "4.3.0", "dev": true, "license": "BSD-2-Clause", + "peer": true, "engines": { "node": ">=4.0" } @@ -43497,6 +43621,7 @@ "version": "2.4.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -43509,6 +43634,7 @@ "version": "5.91.0", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.5", @@ -43555,6 +43681,7 @@ "version": "3.2.3", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10.13.0" } @@ -43563,6 +43690,7 @@ "version": "6.12.6", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -43578,6 +43706,7 @@ "version": "3.5.2", "dev": true, "license": "MIT", + "peer": true, "peerDependencies": { "ajv": "^6.9.1" } @@ -43585,12 +43714,14 @@ "packages/clerk-js/node_modules/webpack/node_modules/json-schema-traverse": { "version": "0.4.1", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "packages/clerk-js/node_modules/webpack/node_modules/schema-utils": { "version": "3.3.0", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 720af612b3..970b1091b6 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -31,14 +31,14 @@ ], "scripts": { "build": "npm run build:bundle && npm run build:declarations", - "build:analyze": "webpack-bundle-analyzer stats.json dist/", - "build:bundle": "npm run clean && webpack --config webpack.config.js --env production", + "build:analyze": "rspack --config rspack.config.js --env production --env variant=\"clerk.browser\" --analyze", + "build:bundle": "npm run clean && rspack --config rspack.config.js --env production", "build:declarations": "tsc -p tsconfig.declarations.json", - "build:stats": "webpack --config webpack.config.js --env production --json=stats.json --env variant=\"clerk.browser\"", + "build:stats": "rspack --config rspack.config.js --env production --json=stats.json --env variant=\"clerk.browser\"", "bundlewatch": "npx bundlewatch --config bundlewatch.config.json", "clean": "rimraf ./dist", - "dev": "webpack serve --config webpack.config.js", - "dev:headless": "webpack serve --config webpack.config.js --env variant=\"clerk.headless.browser\"", + "dev": "rspack serve --config rspack.config.js", + "dev:headless": "rspack serve --config rspack.config.js --env variant=\"clerk.headless.browser\"", "lint": "eslint src/", "lint:attw": "attw --pack .", "lint:publint": "publint || true", @@ -46,7 +46,7 @@ "test:cache:clear": "jest --clearCache --useStderr", "test:ci": "jest --maxWorkers=70%", "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html", - "watch": "webpack --config webpack.config.js --env production --watch" + "watch": "rspack --config rspack.config.js --env production --watch" }, "browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0", "dependencies": { @@ -58,6 +58,7 @@ "@emotion/react": "11.11.1", "@floating-ui/react": "0.25.4", "@formkit/auto-animate": "^0.8.1", + "@swc/helpers": "^0.5.13", "@zxcvbn-ts/core": "3.0.4", "@zxcvbn-ts/language-common": "3.0.4", "browser-tabs-lock": "1.2.15", @@ -76,7 +77,9 @@ "@babel/preset-react": "^7.12.5", "@babel/preset-typescript": "^7.12.1", "@clerk/eslint-config-custom": "*", - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", + "@rspack/cli": "^1.0.3", + "@rspack/core": "^1.0.3", + "@rspack/plugin-react-refresh": "^1.0.0", "@svgr/webpack": "^6.2.1", "@types/react": "*", "@types/react-dom": "*", @@ -90,10 +93,6 @@ "terser-webpack-plugin": "^5.3.10", "ts-loader": "^9.3.0", "typescript": "*", - "webpack": "^5.91.0", - "webpack-bundle-analyzer": "^4.9.0", - "webpack-cli": "^5.1.3", - "webpack-dev-server": "^4.15.0", "webpack-merge": "^5.9.0" }, "peerDependencies": { diff --git a/packages/clerk-js/webpack.config.js b/packages/clerk-js/rspack.config.js similarity index 80% rename from packages/clerk-js/webpack.config.js rename to packages/clerk-js/rspack.config.js index fee716e7fe..62963524b6 100644 --- a/packages/clerk-js/webpack.config.js +++ b/packages/clerk-js/rspack.config.js @@ -1,11 +1,8 @@ -const webpack = require('webpack'); +const rspack = require('@rspack/core'); const packageJSON = require('./package.json'); const path = require('path'); const { merge } = require('webpack-merge'); -const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'); -const ReactRefreshTypeScript = require('react-refresh-typescript'); -const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; -const TerserPlugin = require('terser-webpack-plugin'); +const ReactRefreshPlugin = require('@rspack/plugin-react-refresh'); const isProduction = mode => mode === 'production'; const isDevelopment = mode => !isProduction(mode); @@ -24,7 +21,7 @@ const variantToSourceFile = { [variants.clerkHeadlessBrowser]: './src/index.headless.browser.ts', }; -/** @returns { import('webpack').Configuration } */ +/** @returns { import('@rspack/cli').Configuration } */ const common = ({ mode }) => { return { mode, @@ -34,12 +31,12 @@ const common = ({ mode }) => { extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx'], }, plugins: [ - new webpack.DefinePlugin({ + new rspack.DefinePlugin({ __DEV__: isDevelopment(mode), __PKG_VERSION__: JSON.stringify(packageJSON.version), __PKG_NAME__: JSON.stringify(packageJSON.name), }), - new webpack.EnvironmentPlugin({ + new rspack.EnvironmentPlugin({ CLERK_ENV: mode, NODE_ENV: mode, }), @@ -83,7 +80,7 @@ const common = ({ mode }) => { }; }; -/** @type { () => (import('webpack').RuleSetRule) } */ +/** @type { () => (import('@rspack/core').RuleSetRule) } */ const svgLoader = () => { return { test: /\.svg$/, @@ -104,52 +101,70 @@ const svgLoader = () => { }; }; -/** @type { () => (import('webpack').RuleSetRule) } */ +/** @type { () => (import('@rspack/core').RuleSetRule) } */ const typescriptLoaderProd = () => { - return { - test: /\.(js|mjs|jsx|ts|tsx)$/, - exclude: /node_modules/, - resolve: { - fullySpecified: false, - }, - use: [ - { - loader: 'ts-loader', - options: { transpileOnly: true }, + return [ + { + test: /\.(jsx?|tsx?)$/, + exclude: /node_modules/, + use: { + loader: 'builtin:swc-loader', + options: { + jsc: { + parser: { + syntax: 'typescript', + tsx: true, + }, + externalHelpers: true, + transform: { + react: { + runtime: 'automatic', + importSource: '@emotion/react', + development: false, + refresh: false, + }, + }, + }, + }, }, - ], - }; + }, + ]; }; -/** @type { () => (import('webpack').RuleSetRule) } */ +/** @type { () => (import('@rspack/core').RuleSetRule) } */ const typescriptLoaderDev = () => { - return { - test: /\.(js|mjs|jsx|ts|tsx)$/, - exclude: /node_modules/, - resolve: { - fullySpecified: false, - }, - use: [ - { - loader: 'ts-loader', - options: { - configFile: 'tsconfig.dev.json', - transpileOnly: true, - getCustomTransformers: () => ({ - before: [ReactRefreshTypeScript()], - }), + return [ + { + test: /\.(jsx?|tsx?)$/, + exclude: /node_modules/, + loader: 'builtin:swc-loader', + options: { + jsc: { + parser: { + syntax: 'typescript', + tsx: true, + }, + externalHelpers: true, + transform: { + react: { + runtime: 'automatic', + importSource: '@emotion/react', + development: true, + refresh: true, + }, + }, }, }, - ], - }; + }, + ]; }; -/** @type { () => (import('webpack').Configuration) } */ +/** @type { () => (import('@rspack/cli').Configuration) } */ const commonForProd = () => { return { devtool: undefined, module: { - rules: [svgLoader(), typescriptLoaderProd()], + rules: [svgLoader(), ...typescriptLoaderProd()], }, output: { path: path.resolve(__dirname, 'dist'), @@ -159,20 +174,7 @@ const commonForProd = () => { }, optimization: { minimize: true, - minimizer: [ - compiler => { - new TerserPlugin({ - terserOptions: { - compress: { - passes: 2, - }, - mangle: { - safari10: true, - }, - }, - }).apply(compiler); - }, - ], + minimizer: [new rspack.SwcJsMinimizerRspackPlugin()], }, plugins: [ // new webpack.optimize.LimitChunkCountPlugin({ @@ -240,7 +242,7 @@ const prodConfig = ({ mode }) => { // Include the lazy chunks in the bundle as well // so that the final bundle can be imported and bundled again // by a different bundler, eg the webpack instance used by react-scripts - new webpack.optimize.LimitChunkCountPlugin({ + new rspack.optimize.LimitChunkCountPlugin({ maxChunks: 1, }), ], @@ -265,12 +267,9 @@ const devConfig = ({ mode, env }) => { const commonForDev = () => { return { module: { - rules: [svgLoader(), typescriptLoaderDev()], + rules: [svgLoader(), ...typescriptLoaderDev()], }, - plugins: [ - new ReactRefreshWebpackPlugin({ overlay: { sockHost: devUrl.host } }), - ...(env.serveAnalyzer ? [new BundleAnalyzerPlugin()] : []), - ], + plugins: [new ReactRefreshPlugin({ overlay: { sockHost: devUrl.host } })], devtool: 'eval-cheap-source-map', output: { publicPath: `${devUrl.origin}/npm`, From f9f791056ac17edfa70bffd9e37dbc70f6fee5b0 Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Wed, 4 Sep 2024 20:50:03 -0500 Subject: [PATCH 02/17] fix analyzer --- packages/clerk-js/package.json | 8 ++++---- packages/clerk-js/rspack.config.js | 11 +++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 970b1091b6..881fef4ff3 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -31,10 +31,10 @@ ], "scripts": { "build": "npm run build:bundle && npm run build:declarations", - "build:analyze": "rspack --config rspack.config.js --env production --env variant=\"clerk.browser\" --analyze", - "build:bundle": "npm run clean && rspack --config rspack.config.js --env production", + "build:analyze": "rspack build --config rspack.config.js --env production --env variant=\"clerk.browser\" --env analysis --analyze", + "build:bundle": "npm run clean && rspack build --config rspack.config.js --env production", "build:declarations": "tsc -p tsconfig.declarations.json", - "build:stats": "rspack --config rspack.config.js --env production --json=stats.json --env variant=\"clerk.browser\"", + "build:stats": "rspack build --config rspack.config.js --env production --json=stats.json --env variant=\"clerk.browser\"", "bundlewatch": "npx bundlewatch --config bundlewatch.config.json", "clean": "rimraf ./dist", "dev": "rspack serve --config rspack.config.js", @@ -46,7 +46,7 @@ "test:cache:clear": "jest --clearCache --useStderr", "test:ci": "jest --maxWorkers=70%", "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html", - "watch": "rspack --config rspack.config.js --env production --watch" + "watch": "rspack build --config rspack.config.js --env production --watch" }, "browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0", "dependencies": { diff --git a/packages/clerk-js/rspack.config.js b/packages/clerk-js/rspack.config.js index 62963524b6..bb4b236ce6 100644 --- a/packages/clerk-js/rspack.config.js +++ b/packages/clerk-js/rspack.config.js @@ -202,7 +202,7 @@ const entryForVariant = variant => { }; /** @type { () => (import('webpack').Configuration)[] } */ -const prodConfig = ({ mode }) => { +const prodConfig = ({ mode, analysis }) => { const clerkBrowser = merge(entryForVariant(variants.clerkBrowser), common({ mode }), commonForProd()); const clerkHeadless = merge( @@ -255,6 +255,11 @@ const prodConfig = ({ mode }) => { }, }); + // webpack-bundle-analyzer only supports a single build, use clerkBrowser as that's the default build we serve + if (analysis) { + return clerkBrowser; + } + return [clerkBrowser, clerkHeadless, clerkHeadlessBrowser, clerkEsm, clerkCjs]; }; @@ -328,5 +333,7 @@ const devConfig = ({ mode, env }) => { module.exports = env => { const mode = env.production ? 'production' : 'development'; - return isProduction(mode) ? prodConfig({ mode, env }) : devConfig({ mode, env }); + const analysis = !!env.analysis; + + return isProduction(mode) ? prodConfig({ mode, env, analysis }) : devConfig({ mode, env }); }; From e655f0cfa850cab6a4d4085e2936172bd6d4df15 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:36:33 -0700 Subject: [PATCH 03/17] feat(elements): Infer path from host router --- packages/elements/src/react/sign-in/root.tsx | 10 +++++----- packages/elements/src/react/sign-up/root.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/elements/src/react/sign-in/root.tsx b/packages/elements/src/react/sign-in/root.tsx index e844cd3eba..ca39454dcb 100644 --- a/packages/elements/src/react/sign-in/root.tsx +++ b/packages/elements/src/react/sign-in/root.tsx @@ -14,7 +14,7 @@ import { Router, useClerkRouter, useVirtualRouter } from '~/react/router'; import { SignInRouterCtx } from '~/react/sign-in/context'; import { Form } from '../common/form'; -import { usePathnameWithoutCatchAll } from '../utils/path-inference/next'; +import { removeOptionalCatchAllSegment } from '../utils/path-inference/utils'; type SignInFlowProviderProps = { children: React.ReactNode; @@ -118,8 +118,11 @@ export function SignInRoot({ routing = ROUTING.path, }: SignInRootProps): JSX.Element | null { const clerk = useClerk(); - const inferredPath = usePathnameWithoutCatchAll(); + const router = (routing === ROUTING.virtual ? useVirtualRouter : useClerkHostRouter)(); + const pathname = router.pathname(); + const inferredPath = removeOptionalCatchAllSegment(pathname); const path = pathProp || inferredPath || SIGN_IN_DEFAULT_BASE_PATH; + const isRootPath = path === pathname; clerk.telemetry?.record( eventComponentMounted('Elements_SignInRoot', { @@ -130,9 +133,6 @@ export function SignInRoot({ }), ); - const router = (routing === ROUTING.virtual ? useVirtualRouter : useClerkHostRouter)(); - const isRootPath = path === router.pathname(); - return ( Date: Wed, 23 Oct 2024 11:37:09 -0700 Subject: [PATCH 04/17] chore(clerk-js): Upgrade Rspack --- package-lock.json | 4 ++-- packages/clerk-js/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc4dcd0388..c6c6805c8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45795,8 +45795,8 @@ "devDependencies": { "@clerk/eslint-config-custom": "*", "@rsdoctor/webpack-plugin": "^0.4.4", - "@rspack/cli": "^1.0.3", - "@rspack/core": "^1.0.3", + "@rspack/cli": "^1.0.14", + "@rspack/core": "^1.0.14", "@rspack/plugin-react-refresh": "^1.0.0", "@svgr/webpack": "^6.2.1", "@types/react": "*", diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 582402762b..de2c5b94a0 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -73,8 +73,8 @@ "devDependencies": { "@clerk/eslint-config-custom": "*", "@rsdoctor/webpack-plugin": "^0.4.4", - "@rspack/cli": "^1.0.3", - "@rspack/core": "^1.0.3", + "@rspack/cli": "^1.0.14", + "@rspack/core": "^1.0.14", "@rspack/plugin-react-refresh": "^1.0.0", "@svgr/webpack": "^6.2.1", "@types/react": "*", From c072bcf429c073a97f200c748a8e62fc78753b4b Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:31:28 -0700 Subject: [PATCH 05/17] chore(clerk-js,elements): Add changeset --- .changeset/bright-ducks-enjoy.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/bright-ducks-enjoy.md diff --git a/.changeset/bright-ducks-enjoy.md b/.changeset/bright-ducks-enjoy.md new file mode 100644 index 0000000000..3b133967ca --- /dev/null +++ b/.changeset/bright-ducks-enjoy.md @@ -0,0 +1,6 @@ +--- +"@clerk/clerk-js": patch +"@clerk/elements": patch +--- + +Build with Rspack From 240ae4c8db908f8ac77e49aa9585c2747820e0ab Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:56:50 -0700 Subject: [PATCH 06/17] fix(clerk-js): Enable Rsdoctor --- package-lock.json | 314 ++++++++++++++++++++--------- packages/clerk-js/package.json | 2 +- packages/clerk-js/rspack.config.js | 6 +- 3 files changed, 227 insertions(+), 95 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7753a28500..40869cebc4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -448,10 +448,11 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "license": "MIT", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", + "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/highlight": "^7.25.7", "picocolors": "^1.0.0" }, "engines": { @@ -12249,20 +12250,22 @@ ] }, "node_modules/@rsdoctor/client": { - "version": "0.4.4", - "dev": true, - "license": "MIT" + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/client/-/client-0.4.7.tgz", + "integrity": "sha512-0JCoxtqZbhrKB0oHhzKKI40/SbAH1TPmK0BaQeQE2D0lwhZX+VlGgVlYqIZtu+h4XyWWM75f0113mmDLahl+lA==", + "dev": true }, "node_modules/@rsdoctor/core": { - "version": "0.4.4", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/core/-/core-0.4.7.tgz", + "integrity": "sha512-Ik+hUW7NfJBEybv3C0sx8Un9gU6aeJb8IHqiMGkwj9zldvU9UTwRYJhi8550kS8Cv8LIiLnPbRgayhbT/CUjKg==", "dev": true, - "license": "MIT", "dependencies": { - "@rsdoctor/graph": "0.4.4", - "@rsdoctor/sdk": "0.4.4", - "@rsdoctor/types": "0.4.4", - "@rsdoctor/utils": "0.4.4", - "axios": "^1.7.2", + "@rsdoctor/graph": "0.4.7", + "@rsdoctor/sdk": "0.4.7", + "@rsdoctor/types": "0.4.7", + "@rsdoctor/utils": "0.4.7", + "axios": "^1.7.7", "enhanced-resolve": "5.12.0", "filesize": "^10.1.6", "fs-extra": "^11.1.1", @@ -12275,8 +12278,9 @@ }, "node_modules/@rsdoctor/core/node_modules/enhanced-resolve": { "version": "5.12.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", + "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", "dev": true, - "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -12287,19 +12291,21 @@ }, "node_modules/@rsdoctor/core/node_modules/source-map": { "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">= 8" } }, "node_modules/@rsdoctor/graph": { - "version": "0.4.4", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/graph/-/graph-0.4.7.tgz", + "integrity": "sha512-EpHJYm2JstVniRRhCHNLDyinMA107aYftrVdJdZjMVJD1nTH9ZpRAe04Vwf9Ljhzubo/KnizjFuo8ZNPLG6QEA==", "dev": true, - "license": "MIT", "dependencies": { - "@rsdoctor/types": "0.4.4", - "@rsdoctor/utils": "0.4.4", + "@rsdoctor/types": "0.4.7", + "@rsdoctor/utils": "0.4.7", "lodash": "^4.17.21", "socket.io": "4.7.2", "source-map": "^0.7.4" @@ -12307,21 +12313,40 @@ }, "node_modules/@rsdoctor/graph/node_modules/source-map": { "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">= 8" } }, + "node_modules/@rsdoctor/rspack-plugin": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/rspack-plugin/-/rspack-plugin-0.4.7.tgz", + "integrity": "sha512-Gro8gqA4ordHTXmDL2DUBl6PVUiLduBJbiYqIMvWifej8Lxa9AmpRROheSgmnOHxQg4spGvRHxUJoaI8RbHTSQ==", + "dev": true, + "dependencies": { + "@rsdoctor/core": "0.4.7", + "@rsdoctor/graph": "0.4.7", + "@rsdoctor/sdk": "0.4.7", + "@rsdoctor/types": "0.4.7", + "@rsdoctor/utils": "0.4.7", + "lodash": "^4.17.21" + }, + "peerDependencies": { + "@rspack/core": "*" + } + }, "node_modules/@rsdoctor/sdk": { - "version": "0.4.4", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/sdk/-/sdk-0.4.7.tgz", + "integrity": "sha512-lNPWXtk6eEZ4A87rbqOOAtN/HTBeE/6Z+scnNWwGP3OCqfqjxEunzz1K6c7esMZ8ehm4T8gCV0/U+EWG3DCTZQ==", "dev": true, - "license": "MIT", "dependencies": { - "@rsdoctor/client": "0.4.4", - "@rsdoctor/graph": "0.4.4", - "@rsdoctor/types": "0.4.4", - "@rsdoctor/utils": "0.4.4", + "@rsdoctor/client": "0.4.7", + "@rsdoctor/graph": "0.4.7", + "@rsdoctor/types": "0.4.7", + "@rsdoctor/utils": "0.4.7", "@types/fs-extra": "^11.0.4", "body-parser": "1.20.3", "cors": "2.8.5", @@ -12329,7 +12354,7 @@ "fs-extra": "^11.1.1", "lodash": "^4.17.21", "open": "^8.4.2", - "serve-static": "1.16.0", + "serve-static": "1.16.2", "socket.io": "4.7.2", "source-map": "^0.7.4", "tapable": "2.2.1" @@ -12337,18 +12362,95 @@ }, "node_modules/@rsdoctor/sdk/node_modules/dayjs": { "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", + "dev": true + }, + "node_modules/@rsdoctor/sdk/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "license": "MIT" + "dependencies": { + "ms": "2.0.0" + } }, - "node_modules/@rsdoctor/sdk/node_modules/serve-static": { - "version": "1.16.0", + "node_modules/@rsdoctor/sdk/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/@rsdoctor/sdk/node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@rsdoctor/sdk/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@rsdoctor/sdk/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/@rsdoctor/sdk/node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", "dev": true, - "license": "MIT", "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@rsdoctor/sdk/node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@rsdoctor/sdk/node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "dev": true, + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.19.0" }, "engines": { "node": ">= 0.8.0" @@ -12356,16 +12458,27 @@ }, "node_modules/@rsdoctor/sdk/node_modules/source-map": { "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">= 8" } }, + "node_modules/@rsdoctor/sdk/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/@rsdoctor/types": { - "version": "0.4.4", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/types/-/types-0.4.7.tgz", + "integrity": "sha512-g8CUcMP5/nJWEjQdMhIv4jCm2JeZGooNHdD4oCi0VqrUKeAK8rZya1hixpk6m6ozTGkmoL1PqaYcaA5MhMhovg==", "dev": true, - "license": "MIT", "dependencies": { "@types/connect": "3.4.38", "@types/estree": "1.0.5", @@ -12384,19 +12497,21 @@ }, "node_modules/@rsdoctor/types/node_modules/source-map": { "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">= 8" } }, "node_modules/@rsdoctor/utils": { - "version": "0.4.4", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@rsdoctor/utils/-/utils-0.4.7.tgz", + "integrity": "sha512-ztgYeu6xX2DxDYt2jTeL/9q+hNHcJEsYbDkyEQsc3Tw4Mez4FFk5TGA5nwfe+Cprw/nYqz0/WSfSmTNAc0YMig==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "7.24.7", - "@rsdoctor/types": "0.4.4", + "@babel/code-frame": "7.25.7", + "@rsdoctor/types": "0.4.7", "@types/estree": "1.0.5", "acorn": "^8.10.0", "acorn-import-assertions": "1.9.0", @@ -12417,8 +12532,9 @@ }, "node_modules/@rsdoctor/utils/node_modules/ansi-styles": { "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -12431,8 +12547,9 @@ }, "node_modules/@rsdoctor/utils/node_modules/chalk": { "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -12446,8 +12563,9 @@ }, "node_modules/@rsdoctor/utils/node_modules/color-convert": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -12457,13 +12575,15 @@ }, "node_modules/@rsdoctor/utils/node_modules/color-name": { "version": "1.1.4", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "node_modules/@rsdoctor/utils/node_modules/envinfo": { "version": "7.14.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", + "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", "dev": true, - "license": "MIT", "bin": { "envinfo": "dist/cli.js" }, @@ -12473,29 +12593,13 @@ }, "node_modules/@rsdoctor/utils/node_modules/lines-and-columns": { "version": "2.0.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", + "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, - "node_modules/@rsdoctor/webpack-plugin": { - "version": "0.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@rsdoctor/core": "0.4.4", - "@rsdoctor/graph": "0.4.4", - "@rsdoctor/sdk": "0.4.4", - "@rsdoctor/types": "0.4.4", - "@rsdoctor/utils": "0.4.4", - "fs-extra": "^11.1.1", - "lodash": "^4.17.21" - }, - "peerDependencies": { - "webpack": "5.x" - } - }, "node_modules/@rspack/binding": { "version": "1.0.14", "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.0.14.tgz", @@ -13238,8 +13342,9 @@ }, "node_modules/@socket.io/component-emitter": { "version": "3.1.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==", + "dev": true }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { "version": "6.5.1", @@ -13886,8 +13991,9 @@ }, "node_modules/@types/cors": { "version": "2.8.17", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.17.tgz", + "integrity": "sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -14363,8 +14469,9 @@ }, "node_modules/@types/tapable": { "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@types/tapable/-/tapable-2.2.7.tgz", + "integrity": "sha512-D6QzACV9vNX3r8HQQNTOnpG+Bv1rko+yEA82wKs3O9CQ5+XW7HI7TED17/UE7+5dIxyxZIWTxKbsBeF6uKFCwA==", "dev": true, - "license": "MIT", "dependencies": { "tapable": "^2.2.0" } @@ -16052,8 +16159,9 @@ }, "node_modules/acorn-import-assertions": { "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", "dev": true, - "license": "MIT", "peerDependencies": { "acorn": "^8" } @@ -17794,8 +17902,9 @@ }, "node_modules/axios": { "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "dev": true, - "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -17804,8 +17913,9 @@ }, "node_modules/axios/node_modules/proxy-from-env": { "version": "1.1.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true }, "node_modules/axobject-query": { "version": "3.2.4", @@ -18255,8 +18365,9 @@ }, "node_modules/base64id": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", "dev": true, - "license": "MIT", "engines": { "node": "^4.5.0 || >= 5.9" } @@ -21657,8 +21768,9 @@ }, "node_modules/debounce": { "version": "1.2.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", + "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", + "dev": true }, "node_modules/debug": { "version": "4.3.4", @@ -22894,8 +23006,9 @@ }, "node_modules/engine.io": { "version": "6.5.5", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.5.5.tgz", + "integrity": "sha512-C5Pn8Wk+1vKBoHghJODM63yk8MvrO9EWZUfkAt5HAqIgPE4/8FF0PEGHXtEd40l223+cE5ABWuPzm38PHFXfMA==", "dev": true, - "license": "MIT", "dependencies": { "@types/cookie": "^0.4.1", "@types/cors": "^2.8.12", @@ -22914,16 +23027,18 @@ }, "node_modules/engine.io-parser": { "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=10.0.0" } }, "node_modules/engine.io/node_modules/cookie": { "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } @@ -25951,8 +26066,9 @@ }, "node_modules/filesize": { "version": "10.1.6", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.6.tgz", + "integrity": "sha512-sJslQKU2uM33qH5nqewAwVB2QgR6w1aMNsYUp3aN5rMRyXEwJGmZvaWzeJFNTOXWlHQyBFCWrdj3fV/fsTOX8w==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">= 10.4.0" } @@ -30919,8 +31035,9 @@ }, "node_modules/json-stream-stringify": { "version": "3.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-stream-stringify/-/json-stream-stringify-3.0.1.tgz", + "integrity": "sha512-vuxs3G1ocFDiAQ/SX0okcZbtqXwgj1g71qE9+vrjJ2EkjKQlEFDAcUNRxRU8O+GekV4v5cM2qXP0Wyt/EMDBiQ==", + "dev": true }, "node_modules/json-stringify-safe": { "version": "5.0.1", @@ -35753,8 +35870,9 @@ }, "node_modules/path-browserify": { "version": "1.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true }, "node_modules/path-exists": { "version": "4.0.0", @@ -38070,6 +38188,8 @@ }, "node_modules/rslog": { "version": "1.2.3", + "resolved": "https://registry.npmjs.org/rslog/-/rslog-1.2.3.tgz", + "integrity": "sha512-antALPJaKBRPBU1X2q9t085K4htWDOOv/K1qhTUk7h0l1ePU/KbDqKJn19eKP0dk7PqMioeA0+fu3gyPXCsXxQ==", "dev": true, "engines": { "node": ">=14.17.6" @@ -38717,8 +38837,9 @@ }, "node_modules/sirv": { "version": "2.0.4", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-2.0.4.tgz", + "integrity": "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==", "dev": true, - "license": "MIT", "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", @@ -38950,8 +39071,9 @@ }, "node_modules/socket.io": { "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.7.2.tgz", + "integrity": "sha512-bvKVS29/I5fl2FGLNHuXlQaUH/BlzX1IN6S+NKLNZpBsPZIDH+90eQmCs2Railn4YUiww4SzUedJ6+uzwFnKLw==", "dev": true, - "license": "MIT", "dependencies": { "accepts": "~1.3.4", "base64id": "~2.0.0", @@ -38967,8 +39089,9 @@ }, "node_modules/socket.io-adapter": { "version": "2.5.5", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.5.tgz", + "integrity": "sha512-eLDQas5dzPgOWCk9GuuJC2lBqItuhKI4uxGgo9aIV7MYbk2h9Q6uULEh8WBzThoI7l+qU9Ast9fVUmkqPP9wYg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "~4.3.4", "ws": "~8.17.1" @@ -38976,8 +39099,9 @@ }, "node_modules/socket.io-parser": { "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", "dev": true, - "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -40582,8 +40706,9 @@ }, "node_modules/totalist": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", + "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -43882,8 +44007,9 @@ }, "node_modules/webpack-bundle-analyzer": { "version": "4.10.2", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.2.tgz", + "integrity": "sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw==", "dev": true, - "license": "MIT", "dependencies": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", @@ -43907,16 +44033,18 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/commander": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "7.5.9", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.3.0" }, @@ -45796,7 +45924,7 @@ "devDependencies": { "@clerk/eslint-config-custom": "*", "@clerk/ui": "0.1.10", - "@rsdoctor/webpack-plugin": "^0.4.4", + "@rsdoctor/rspack-plugin": "^0.4.7", "@rspack/cli": "^1.0.14", "@rspack/core": "^1.0.14", "@rspack/plugin-react-refresh": "^1.0.0", diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 8cad9f4968..ff35a0c4fe 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -72,7 +72,7 @@ "devDependencies": { "@clerk/eslint-config-custom": "*", "@clerk/ui": "0.1.10", - "@rsdoctor/webpack-plugin": "^0.4.4", + "@rsdoctor/rspack-plugin": "^0.4.7", "@rspack/cli": "^1.0.14", "@rspack/core": "^1.0.14", "@rspack/plugin-react-refresh": "^1.0.0", diff --git a/packages/clerk-js/rspack.config.js b/packages/clerk-js/rspack.config.js index 71bea59c6e..91cb1a758d 100644 --- a/packages/clerk-js/rspack.config.js +++ b/packages/clerk-js/rspack.config.js @@ -3,6 +3,7 @@ const packageJSON = require('./package.json'); const path = require('path'); const { merge } = require('webpack-merge'); const ReactRefreshPlugin = require('@rspack/plugin-react-refresh'); +const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin'); const isProduction = mode => mode === 'production'; const isDevelopment = mode => !isProduction(mode); @@ -42,9 +43,12 @@ const common = ({ mode }) => { NODE_ENV: mode, }), process.env.RSDOCTOR && - new RsdoctorWebpackPlugin({ + new RsdoctorRspackPlugin({ mode: process.env.RSDOCTOR === 'brief' ? 'brief' : 'normal', disableClientServer: process.env.RSDOCTOR === 'brief', + supports: { + generateTileGraph: true, + }, }), ].filter(Boolean), output: { From 5bf00de6e3f6d8d4fdc86c4d32cd0a116fd497c5 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:28:27 -0700 Subject: [PATCH 07/17] fix(clerk-js): Target specific browsers, compress with options, disable chunks --- packages/clerk-js/bundlewatch.config.json | 1 + packages/clerk-js/package.json | 2 +- packages/clerk-js/rspack.config.js | 27 ++++++++++++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/packages/clerk-js/bundlewatch.config.json b/packages/clerk-js/bundlewatch.config.json index 7f6ab8562b..d6d61d7ccc 100644 --- a/packages/clerk-js/bundlewatch.config.json +++ b/packages/clerk-js/bundlewatch.config.json @@ -1,5 +1,6 @@ { "files": [ + { "path": "./dist/clerk.js", "maxSize": "700kB" }, { "path": "./dist/clerk.browser.js", "maxSize": "68kB" }, { "path": "./dist/clerk.headless.js", "maxSize": "44kB" }, { "path": "./dist/ui-common*.js", "maxSize": "87KB" }, diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index ff35a0c4fe..73ac36c015 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -48,7 +48,7 @@ "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html", "watch": "rspack build --config rspack.config.js --env production --watch" }, - "browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0", + "browserslist": "last 2 years", "dependencies": { "@clerk/localizations": "3.4.0", "@clerk/shared": "2.10.1", diff --git a/packages/clerk-js/rspack.config.js b/packages/clerk-js/rspack.config.js index 91cb1a758d..a4b266c39b 100644 --- a/packages/clerk-js/rspack.config.js +++ b/packages/clerk-js/rspack.config.js @@ -139,6 +139,9 @@ const typescriptLoaderProd = () => { use: { loader: 'builtin:swc-loader', options: { + env: { + targets: packageJSON.browserslist, + }, jsc: { parser: { syntax: 'typescript', @@ -168,6 +171,9 @@ const typescriptLoaderDev = () => { exclude: /node_modules/, loader: 'builtin:swc-loader', options: { + env: { + targets: 'last 0.25 years', + }, jsc: { parser: { syntax: 'typescript', @@ -248,7 +254,20 @@ const commonForProd = () => { }, optimization: { minimize: true, - minimizer: [new rspack.SwcJsMinimizerRspackPlugin()], + minimizer: [ + new rspack.SwcJsMinimizerRspackPlugin({ + minimizerOptions: { + compress: { + unused: true, + dead_code: true, + passes: 2, + }, + mangle: { + safari10: true, + }, + }, + }), + ], }, plugins: [ // new webpack.optimize.LimitChunkCountPlugin({ @@ -327,6 +346,9 @@ const prodConfig = ({ mode, analysis }) => { maxChunks: 1, }), ], + optimization: { + splitChunks: false, + }, }); const clerkCjs = merge(entryForVariant(variants.clerk), common({ mode }), commonForProd(), commonForProdBundled(), { @@ -342,6 +364,9 @@ const prodConfig = ({ mode, analysis }) => { maxChunks: 1, }), ], + optimization: { + splitChunks: false, + }, }); // webpack-bundle-analyzer only supports a single build, use clerkBrowser as that's the default build we serve From 032d1e56add2020f52beb3c9b66f31c02be0eba1 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:46:08 -0700 Subject: [PATCH 08/17] fix(tests): Increase Verdaccio max body size --- verdaccio.install.yaml | 1 + verdaccio.publish.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/verdaccio.install.yaml b/verdaccio.install.yaml index 36e9368af5..16f09a9b15 100644 --- a/verdaccio.install.yaml +++ b/verdaccio.install.yaml @@ -15,3 +15,4 @@ packages: publish: $all proxy: npmjs log: { type: stdout, format: pretty, level: http } +max_body_size: 100mb diff --git a/verdaccio.publish.yaml b/verdaccio.publish.yaml index 3ef15d9dc3..7ae0ce5381 100644 --- a/verdaccio.publish.yaml +++ b/verdaccio.publish.yaml @@ -14,3 +14,4 @@ packages: publish: $all proxy: npmjs log: { type: stdout, format: pretty, level: http } +max_body_size: 100mb From b5d67e351456ae35a477746fdee83152ce9afc66 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:13:47 -0700 Subject: [PATCH 09/17] fix(tests): Decrease Verdaccio max body size --- verdaccio.install.yaml | 2 +- verdaccio.publish.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/verdaccio.install.yaml b/verdaccio.install.yaml index 16f09a9b15..ab975882a6 100644 --- a/verdaccio.install.yaml +++ b/verdaccio.install.yaml @@ -15,4 +15,4 @@ packages: publish: $all proxy: npmjs log: { type: stdout, format: pretty, level: http } -max_body_size: 100mb +max_body_size: 15mb diff --git a/verdaccio.publish.yaml b/verdaccio.publish.yaml index 7ae0ce5381..c35ded78fb 100644 --- a/verdaccio.publish.yaml +++ b/verdaccio.publish.yaml @@ -14,4 +14,4 @@ packages: publish: $all proxy: npmjs log: { type: stdout, format: pretty, level: http } -max_body_size: 100mb +max_body_size: 15mb From 9a812cfc9d7191e3fea8a2cca3c7c8f8762ab989 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:34:35 -0700 Subject: [PATCH 10/17] fix(clerk-js): Disable sourcemaps in production --- packages/clerk-js/rspack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clerk-js/rspack.config.js b/packages/clerk-js/rspack.config.js index a4b266c39b..a93db10570 100644 --- a/packages/clerk-js/rspack.config.js +++ b/packages/clerk-js/rspack.config.js @@ -245,7 +245,7 @@ const commonForProdBundled = () => { /** @type { () => (import('webpack').Configuration) } */ const commonForProd = () => { return { - devtool: undefined, + devtool: false, output: { path: path.resolve(__dirname, 'dist'), filename: '[name].js', From bac0630aa7144e2826e07a81bc26e8d66ed9fa6a Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:42:50 -0700 Subject: [PATCH 11/17] fix(tests): Increase Verdaccio max body size --- verdaccio.install.yaml | 2 +- verdaccio.publish.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/verdaccio.install.yaml b/verdaccio.install.yaml index ab975882a6..e82793e0af 100644 --- a/verdaccio.install.yaml +++ b/verdaccio.install.yaml @@ -15,4 +15,4 @@ packages: publish: $all proxy: npmjs log: { type: stdout, format: pretty, level: http } -max_body_size: 15mb +max_body_size: 20mb diff --git a/verdaccio.publish.yaml b/verdaccio.publish.yaml index c35ded78fb..17a7400199 100644 --- a/verdaccio.publish.yaml +++ b/verdaccio.publish.yaml @@ -14,4 +14,4 @@ packages: publish: $all proxy: npmjs log: { type: stdout, format: pretty, level: http } -max_body_size: 15mb +max_body_size: 20mb From 93f1cc7ec147316be57cdd97d47dbc4a4fc01ab4 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:36:50 -0700 Subject: [PATCH 12/17] fix(clerk-js): Add support for older Safari versions --- packages/clerk-js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 73ac36c015..b82d94bf29 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -48,7 +48,7 @@ "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html", "watch": "rspack build --config rspack.config.js --env production --watch" }, - "browserslist": "last 2 years", + "browserslist": "last 2 years, Safari > 12, iOS > 12", "dependencies": { "@clerk/localizations": "3.4.0", "@clerk/shared": "2.10.1", From dbf2600878e283f39fc949a5d79ef2a212c3cab6 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:39:34 -0700 Subject: [PATCH 13/17] fix(repo): Improve changesets --- .changeset/bright-ducks-enjoy.md | 3 +-- .changeset/cool-days-tell.md | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/cool-days-tell.md diff --git a/.changeset/bright-ducks-enjoy.md b/.changeset/bright-ducks-enjoy.md index 3b133967ca..688c2a6cb8 100644 --- a/.changeset/bright-ducks-enjoy.md +++ b/.changeset/bright-ducks-enjoy.md @@ -1,6 +1,5 @@ --- "@clerk/clerk-js": patch -"@clerk/elements": patch --- -Build with Rspack +`clerk-js` is now built with [Rspack](https://rspack.dev) instead of Webpack. This is an internal tooling change that shouldn't affect consumers. diff --git a/.changeset/cool-days-tell.md b/.changeset/cool-days-tell.md new file mode 100644 index 0000000000..2a7e4d9611 --- /dev/null +++ b/.changeset/cool-days-tell.md @@ -0,0 +1,5 @@ +--- +"@clerk/elements": patch +--- + +Use host router instead of directly calling Next's `useRouter` hook From 6cb42e71003baaeb65cf27fbfb951585c72d7f4a Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:47:38 -0700 Subject: [PATCH 14/17] fix(clerk-js): Increase allowed bundle size for clerk.headless --- packages/clerk-js/bundlewatch.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clerk-js/bundlewatch.config.json b/packages/clerk-js/bundlewatch.config.json index d6d61d7ccc..f3c0b0f341 100644 --- a/packages/clerk-js/bundlewatch.config.json +++ b/packages/clerk-js/bundlewatch.config.json @@ -2,7 +2,7 @@ "files": [ { "path": "./dist/clerk.js", "maxSize": "700kB" }, { "path": "./dist/clerk.browser.js", "maxSize": "68kB" }, - { "path": "./dist/clerk.headless.js", "maxSize": "44kB" }, + { "path": "./dist/clerk.headless.js", "maxSize": "48kB" }, { "path": "./dist/ui-common*.js", "maxSize": "87KB" }, { "path": "./dist/vendors*.js", "maxSize": "70KB" }, { "path": "./dist/coinbase*.js", "maxSize": "58KB" }, From 4e555ae087fe69061a87d1ee026fe91e3345ff8b Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:56:23 -0700 Subject: [PATCH 15/17] fix(repo): Restore @rspack/binding-linux-x64-gnu --- package-lock.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package-lock.json b/package-lock.json index 4f5c409287..59cdc61a03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12744,6 +12744,19 @@ "darwin" ] }, + "node_modules/@rspack/binding-linux-x64-gnu": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.14.tgz", + "integrity": "sha512-5vzaDRw3/sGKo3ax/1cU3/cxqNjajwlt2LU288vXNe1/n8oe/pcDfYcTugpOe/A1DqzadanudJszLpFcKsaFtQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, "node_modules/@rspack/cli": { "version": "1.0.14", "dev": true, From 2a47e6e9f8806100c1fd3c3d47f3e36ebe42fa87 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:03:20 -0700 Subject: [PATCH 16/17] chore(clerk-js): Increase bundlewatch limits --- packages/clerk-js/bundlewatch.config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/clerk-js/bundlewatch.config.json b/packages/clerk-js/bundlewatch.config.json index f3c0b0f341..e149a29e5a 100644 --- a/packages/clerk-js/bundlewatch.config.json +++ b/packages/clerk-js/bundlewatch.config.json @@ -1,7 +1,7 @@ { "files": [ - { "path": "./dist/clerk.js", "maxSize": "700kB" }, - { "path": "./dist/clerk.browser.js", "maxSize": "68kB" }, + { "path": "./dist/clerk.js", "maxSize": "707kB" }, + { "path": "./dist/clerk.browser.js", "maxSize": "75kB" }, { "path": "./dist/clerk.headless.js", "maxSize": "48kB" }, { "path": "./dist/ui-common*.js", "maxSize": "87KB" }, { "path": "./dist/vendors*.js", "maxSize": "70KB" }, From 6b829383112f215b7c369c780b5944679ea239a7 Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:46:30 -0700 Subject: [PATCH 17/17] chore(repo): CI