diff --git a/.eslintrc.json b/.eslintrc.json index dd472a4d..e41a7534 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,16 +10,17 @@ "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:jsx-a11y/recommended", - "plugin:jest/recommended", - "plugin:@typescript-eslint/recommended" + "plugin:jest/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module", "ecmaVersion": 2020, - "ecmaFeatures": { "jsx": true } + "ecmaFeatures": { + "jsx": true + } }, - "plugins": ["html"], + "plugins": [], "settings": { "react": { "version": "detect" diff --git a/README.md b/README.md index bb80abf7..fbca9331 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ The Web Monetization browser extension is an open source implementation of the W ### Prerequisites - [NVM](https://github.com/nvm-sh/nvm) (Linux, macOS), [NVM Windows](https://github.com/coreybutler/nvm-windows) (Windows) - or another Node Version Manager -- [PNPM](https://pnpm.io/) ## Setup @@ -26,20 +25,10 @@ nvm use lts/iron nvm install lts nvm use lts -# Install pnpm using Corepack +# Install correct version of pnpm using Corepack (Corepack comes with Node) corepack enable ``` -If you do not have `corepack` installed locally you can use `npm` or `yarn` to install `pnpm`: - -```sh -npm install -g pnpm -# or -yarn install -g pnpm -``` - -For alternative methods of installing `pnpm`, you can refer to the [official `pnpm` documentation](https://pnpm.io/installation). - To install dependencies, execute: ```sh diff --git a/package.json b/package.json index 69859acd..dd969561 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,7 @@ "@interledger/open-payments": "^6.13.1", "@noble/ed25519": "^2.1.0", "@noble/hashes": "^1.4.0", - "assert": "^2.1.0", "awilix": "^10.0.2", - "browserify-zlib": "^0.2.0", "buffer": "^6.0.3", "class-variance-authority": "^0.7.0", "constants-browserify": "^1.0.0", @@ -38,16 +36,13 @@ "iso8601-duration": "^2.1.2", "loglevel": "^1.9.1", "path-browserify": "^1.0.1", - "process": "^0.11.10", - "querystring-es3": "^0.2.1", "react": "^18.3.1", "react-dom": "^18.3.1", "react-hook-form": "^7.52.1", "react-number-format": "^5.4.0", + "react-router-dom": "^6.25.1", "stream-browserify": "^3.0.0", - "stream-http": "^3.2.0", "tailwind-merge": "^2.4.0", - "url": "^0.11.3", "util": "^0.12.5", "webextension-polyfill": "^0.12.0" }, @@ -55,7 +50,6 @@ "@tailwindcss/forms": "^0.5.7", "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^16.0.0", - "@types/chrome": "^0.0.268", "@types/jest": "^29.5.12", "@types/node": "^20.14.10", "@types/react": "^18.3.3", @@ -67,7 +61,6 @@ "@typescript-eslint/parser": "^7.16.0", "autoprefixer": "^10.4.19", "clean-webpack-plugin": "^4.0.0", - "concurrently": "^8.2.2", "copy-webpack-plugin": "^12.0.2", "css-loader": "^7.1.2", "eslint": "^8.57.0", @@ -77,7 +70,6 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "^4.6.2", - "eslint-webpack-plugin": "^4.0.1", "html-webpack-plugin": "^5.6.0", "jest": "^29.7.0", "jest-chrome": "^0.8.0", @@ -87,7 +79,6 @@ "postcss-loader": "^8.1.1", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.5", - "react-router-dom": "^6.25.1", "style-loader": "^4.0.0", "tailwindcss": "^3.4.4", "terser-webpack-plugin": "^5.3.10", @@ -99,14 +90,13 @@ "webpack": "^5.93.0", "webpack-cli": "^5.1.4", "webpack-ext-reloader-mv3": "^2.1.1", - "webpack-extension-manifest-plugin": "^0.8.0", "zip-webpack-plugin": "^4.0.1" }, "engines": { "pnpm": "^9.6.0", "npm": "pnpm", "yarn": "pnpm", - "node": "20.15.1" + "node": "^20.15.1" }, "packageManager": "pnpm@9.6.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f47f3f2d..6453476d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,15 +17,9 @@ importers: '@noble/hashes': specifier: ^1.4.0 version: 1.4.0 - assert: - specifier: ^2.1.0 - version: 2.1.0 awilix: specifier: ^10.0.2 version: 10.0.2 - browserify-zlib: - specifier: ^0.2.0 - version: 0.2.0 buffer: specifier: ^6.0.3 version: 6.0.3 @@ -62,12 +56,6 @@ importers: path-browserify: specifier: ^1.0.1 version: 1.0.1 - process: - specifier: ^0.11.10 - version: 0.11.10 - querystring-es3: - specifier: ^0.2.1 - version: 0.2.1 react: specifier: ^18.3.1 version: 18.3.1 @@ -80,18 +68,15 @@ importers: react-number-format: specifier: ^5.4.0 version: 5.4.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-router-dom: + specifier: ^6.25.1 + version: 6.25.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) stream-browserify: specifier: ^3.0.0 version: 3.0.0 - stream-http: - specifier: ^3.2.0 - version: 3.2.0 tailwind-merge: specifier: ^2.4.0 version: 2.4.0 - url: - specifier: ^0.11.3 - version: 0.11.3 util: specifier: ^0.12.5 version: 0.12.5 @@ -108,9 +93,6 @@ importers: '@testing-library/react': specifier: ^16.0.0 version: 16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@types/chrome': - specifier: ^0.0.268 - version: 0.0.268 '@types/jest': specifier: ^29.5.12 version: 29.5.12 @@ -144,9 +126,6 @@ importers: clean-webpack-plugin: specifier: ^4.0.0 version: 4.0.0(webpack@5.93.0(webpack-cli@5.1.4)) - concurrently: - specifier: ^8.2.2 - version: 8.2.2 copy-webpack-plugin: specifier: ^12.0.2 version: 12.0.2(webpack@5.93.0(webpack-cli@5.1.4)) @@ -174,9 +153,6 @@ importers: eslint-plugin-react-hooks: specifier: ^4.6.2 version: 4.6.2(eslint@8.57.0) - eslint-webpack-plugin: - specifier: ^4.0.1 - version: 4.0.1(eslint@8.57.0)(webpack@5.93.0(webpack-cli@5.1.4)) html-webpack-plugin: specifier: ^5.6.0 version: 5.6.0(webpack@5.93.0(webpack-cli@5.1.4)) @@ -204,9 +180,6 @@ importers: prettier-plugin-tailwindcss: specifier: ^0.6.5 version: 0.6.5(prettier@3.3.3) - react-router-dom: - specifier: ^6.25.1 - version: 6.25.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) style-loader: specifier: ^4.0.0 version: 4.0.0(webpack@5.93.0(webpack-cli@5.1.4)) @@ -240,9 +213,6 @@ importers: webpack-ext-reloader-mv3: specifier: ^2.1.1 version: 2.1.1(webpack-cli@5.1.4(webpack@5.93.0))(webpack@5.93.0(webpack-cli@5.1.4)) - webpack-extension-manifest-plugin: - specifier: ^0.8.0 - version: 0.8.0 zip-webpack-plugin: specifier: ^4.0.1 version: 4.0.1(webpack-sources@3.2.3)(webpack@5.93.0(webpack-cli@5.1.4)) @@ -849,9 +819,6 @@ packages: '@types/chrome@0.0.114': resolution: {integrity: sha512-i7qRr74IrxHtbnrZSKUuP5Uvd5EOKwlwJq/yp7+yTPihOXnPhNQO4Z5bqb1XTnrjdbUKEJicaVVbhcgtRijmLA==} - '@types/chrome@0.0.268': - resolution: {integrity: sha512-7N1QH9buudSJ7sI8Pe4mBHJr5oZ48s0hcanI9w3wgijAlv1OZNUZve9JR4x42dn5lJ5Sm87V1JNfnoh10EnQlA==} - '@types/eslint-scope@3.7.7': resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -1298,9 +1265,6 @@ packages: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} engines: {node: '>=0.8'} - assert@2.1.0: - resolution: {integrity: sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==} - ast-types-flow@0.0.8: resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==} @@ -1422,9 +1386,6 @@ packages: resolution: {integrity: sha512-1rudGyeYY42Dk6texmv7c4VcQ0EsvVbLwZkA+AQB7SxvXxmcD93jcHie8bzecJ+ChDlmAm2Qyu0+Ccg5uhZXCg==} engines: {node: '>= 4'} - browserify-zlib@0.2.0: - resolution: {integrity: sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==} - browserslist@4.23.0: resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} @@ -1449,9 +1410,6 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - builtin-status-codes@3.0.0: - resolution: {integrity: sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==} - cache-content-type@1.0.1: resolution: {integrity: sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==} engines: {node: '>= 6.0.0'} @@ -1593,11 +1551,6 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - concurrently@8.2.2: - resolution: {integrity: sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==} - engines: {node: ^14.13.0 || >=16.0.0} - hasBin: true - constants-browserify@1.0.0: resolution: {integrity: sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==} @@ -1622,9 +1575,6 @@ packages: peerDependencies: webpack: ^5.1.0 - core-js@3.36.0: - resolution: {integrity: sha512-mt7+TUBbTFg5+GngsAxeKBTl5/VS0guFeJacYge9OmHb+m058UwwIm41SE9T4Den7ClatV57B6TYTuJ0CX1MAw==} - core-util-is@1.0.2: resolution: {integrity: sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==} @@ -1729,10 +1679,6 @@ packages: resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==} engines: {node: '>= 0.4'} - date-fns@2.30.0: - resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} - engines: {node: '>=0.11'} - date-fns@3.6.0: resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==} @@ -2075,13 +2021,6 @@ packages: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint-webpack-plugin@4.0.1: - resolution: {integrity: sha512-fUFcXpui/FftGx3NzvWgLZXlLbu+m74sUxGEgxgoxYcUtkIQbS6SdNNZkS99m5ycb23TfoNYrDpp1k/CK5j6Hw==} - engines: {node: '>= 14.15.0'} - peerDependencies: - eslint: ^8.0.0 - webpack: ^5.0.0 - eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2575,10 +2514,6 @@ packages: is-map@2.0.2: resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} - is-nan@1.3.2: - resolution: {integrity: sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==} - engines: {node: '>= 0.4'} - is-negative-zero@2.0.3: resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} engines: {node: '>= 0.4'} @@ -3263,9 +3198,6 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} - pako@1.0.11: - resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} - param-case@3.0.4: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} @@ -3551,9 +3483,6 @@ packages: public-encrypt@4.0.3: resolution: {integrity: sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==} - punycode@1.4.1: - resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} - punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -3561,18 +3490,10 @@ packages: pure-rand@6.0.4: resolution: {integrity: sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==} - qs@6.11.2: - resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==} - engines: {node: '>=0.6'} - qs@6.5.3: resolution: {integrity: sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==} engines: {node: '>=0.6'} - querystring-es3@0.2.1: - resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==} - engines: {node: '>=0.4.x'} - querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} @@ -3743,9 +3664,6 @@ packages: run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - rxjs@7.8.1: - resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} - safe-array-concat@1.1.2: resolution: {integrity: sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==} engines: {node: '>=0.4'} @@ -3822,9 +3740,6 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - shell-quote@1.8.1: - resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} - side-channel@1.0.6: resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} @@ -3868,9 +3783,6 @@ packages: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} - spawn-command@0.0.2: - resolution: {integrity: sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==} - split2@4.2.0: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} @@ -3898,9 +3810,6 @@ packages: stream-browserify@3.0.0: resolution: {integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==} - stream-http@3.2.0: - resolution: {integrity: sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==} - string-length@4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} engines: {node: '>=10'} @@ -4079,10 +3988,6 @@ packages: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} engines: {node: '>=12'} - tree-kill@1.2.2: - resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} - hasBin: true - ts-api-utils@1.3.0: resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} @@ -4225,9 +4130,6 @@ packages: url-parse@1.5.10: resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} - url@0.11.3: - resolution: {integrity: sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==} - useragent@2.3.0: resolution: {integrity: sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==} @@ -4308,10 +4210,6 @@ packages: peerDependencies: webpack: ^5.61.0 - webpack-extension-manifest-plugin@0.8.0: - resolution: {integrity: sha512-1zLgzpzhDo3lQRXtkH0FrrwuH9F+MKfGKiH7gOO3ecTGfcATcmm5dU/7d+E2Nwwoaifh8BWbiQLapabi3Y7djg==} - engines: {node: '>=10'} - webpack-merge@5.10.0: resolution: {integrity: sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==} engines: {node: '>=10.0.0'} @@ -4352,10 +4250,6 @@ packages: which-collection@1.0.1: resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==} - which-typed-array@1.1.14: - resolution: {integrity: sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==} - engines: {node: '>= 0.4'} - which-typed-array@1.1.15: resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} engines: {node: '>= 0.4'} @@ -4402,10 +4296,6 @@ packages: xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - xtend@4.0.2: - resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} - engines: {node: '>=0.4'} - y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -5145,11 +5035,6 @@ snapshots: '@types/filesystem': 0.0.35 '@types/har-format': 1.2.15 - '@types/chrome@0.0.268': - dependencies: - '@types/filesystem': 0.0.35 - '@types/har-format': 1.2.15 - '@types/eslint-scope@3.7.7': dependencies: '@types/eslint': 8.56.5 @@ -5702,14 +5587,6 @@ snapshots: assert-plus@1.0.0: {} - assert@2.1.0: - dependencies: - call-bind: 1.0.7 - is-nan: 1.3.2 - object-is: 1.1.6 - object.assign: 4.1.5 - util: 0.12.5 - ast-types-flow@0.0.8: {} async@3.2.5: {} @@ -5871,10 +5748,6 @@ snapshots: readable-stream: 3.6.2 safe-buffer: 5.2.1 - browserify-zlib@0.2.0: - dependencies: - pako: 1.0.11 - browserslist@4.23.0: dependencies: caniuse-lite: 1.0.30001605 @@ -5901,8 +5774,6 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - builtin-status-codes@3.0.0: {} - cache-content-type@1.0.1: dependencies: mime-types: 2.1.35 @@ -6035,18 +5906,6 @@ snapshots: concat-map@0.0.1: {} - concurrently@8.2.2: - dependencies: - chalk: 4.1.2 - date-fns: 2.30.0 - lodash: 4.17.21 - rxjs: 7.8.1 - shell-quote: 1.8.1 - spawn-command: 0.0.2 - supports-color: 8.1.1 - tree-kill: 1.2.2 - yargs: 17.7.2 - constants-browserify@1.0.0: {} content-disposition@0.5.4: @@ -6072,8 +5931,6 @@ snapshots: serialize-javascript: 6.0.2 webpack: 5.93.0(webpack-cli@5.1.4) - core-js@3.36.0: {} - core-util-is@1.0.2: {} cosmiconfig@9.0.0(typescript@5.5.3): @@ -6215,10 +6072,6 @@ snapshots: es-errors: 1.3.0 is-data-view: 1.0.1 - date-fns@2.30.0: - dependencies: - '@babel/runtime': 7.24.4 - date-fns@3.6.0: {} debug@4.3.4: @@ -6674,16 +6527,6 @@ snapshots: eslint-visitor-keys@3.4.3: {} - eslint-webpack-plugin@4.0.1(eslint@8.57.0)(webpack@5.93.0(webpack-cli@5.1.4)): - dependencies: - '@types/eslint': 8.56.5 - eslint: 8.57.0 - jest-worker: 29.7.0 - micromatch: 4.0.5 - normalize-path: 3.0.0 - schema-utils: 4.2.0 - webpack: 5.93.0(webpack-cli@5.1.4) - eslint@8.57.0: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) @@ -7231,11 +7074,6 @@ snapshots: is-map@2.0.2: {} - is-nan@1.3.2: - dependencies: - call-bind: 1.0.7 - define-properties: 1.2.1 - is-negative-zero@2.0.3: {} is-number-object@1.0.7: @@ -8124,8 +7962,6 @@ snapshots: p-try@2.2.0: {} - pako@1.0.11: {} - param-case@3.0.4: dependencies: dot-case: 3.0.4 @@ -8360,20 +8196,12 @@ snapshots: randombytes: 2.1.0 safe-buffer: 5.2.1 - punycode@1.4.1: {} - punycode@2.3.1: {} pure-rand@6.0.4: {} - qs@6.11.2: - dependencies: - side-channel: 1.0.6 - qs@6.5.3: {} - querystring-es3@0.2.1: {} - querystringify@2.2.0: {} queue-microtask@1.2.3: {} @@ -8563,10 +8391,6 @@ snapshots: dependencies: queue-microtask: 1.2.3 - rxjs@7.8.1: - dependencies: - tslib: 2.6.2 - safe-array-concat@1.1.2: dependencies: call-bind: 1.0.7 @@ -8652,8 +8476,6 @@ snapshots: shebang-regex@3.0.0: {} - shell-quote@1.8.1: {} - side-channel@1.0.6: dependencies: call-bind: 1.0.7 @@ -8691,8 +8513,6 @@ snapshots: source-map@0.7.4: {} - spawn-command@0.0.2: {} - split2@4.2.0: {} sprintf-js@1.0.3: {} @@ -8724,13 +8544,6 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 - stream-http@3.2.0: - dependencies: - builtin-status-codes: 3.0.0 - inherits: 2.0.4 - readable-stream: 3.6.2 - xtend: 4.0.2 - string-length@4.0.2: dependencies: char-regex: 1.0.2 @@ -8945,8 +8758,6 @@ snapshots: dependencies: punycode: 2.3.1 - tree-kill@1.2.2: {} - ts-api-utils@1.3.0(typescript@5.5.3): dependencies: typescript: 5.5.3 @@ -9096,11 +8907,6 @@ snapshots: querystringify: 2.2.0 requires-port: 1.0.0 - url@0.11.3: - dependencies: - punycode: 1.4.1 - qs: 6.11.2 - useragent@2.3.0: dependencies: lru-cache: 4.1.5 @@ -9117,7 +8923,7 @@ snapshots: is-arguments: 1.1.1 is-generator-function: 1.0.10 is-typed-array: 1.1.13 - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 utila@0.4.0: {} @@ -9200,12 +9006,6 @@ snapshots: - utf-8-validate - webpack-cli - webpack-extension-manifest-plugin@0.8.0: - dependencies: - core-js: 3.36.0 - deepmerge: 4.3.1 - schema-utils: 3.3.0 - webpack-merge@5.10.0: dependencies: clone-deep: 4.0.1 @@ -9288,14 +9088,6 @@ snapshots: is-weakmap: 2.0.1 is-weakset: 2.0.2 - which-typed-array@1.1.14: - dependencies: - available-typed-arrays: 1.0.7 - call-bind: 1.0.7 - for-each: 0.3.3 - gopd: 1.0.1 - has-tostringtag: 1.0.2 - which-typed-array@1.1.15: dependencies: available-typed-arrays: 1.0.7 @@ -9335,8 +9127,6 @@ snapshots: xmlchars@2.2.0: {} - xtend@4.0.2: {} - y18n@5.0.8: {} yallist@2.1.2: {} diff --git a/webpack/config.ts b/webpack/config.ts index d520c6f1..bb2de1b3 100644 --- a/webpack/config.ts +++ b/webpack/config.ts @@ -58,15 +58,10 @@ export const mainConfig: Configuration = { events: require.resolve('events/'), crypto: require.resolve('crypto-browserify'), path: require.resolve('path-browserify'), - url: require.resolve('url/'), - util: require.resolve('util/'), - assert: require.resolve('assert/'), - querystring: require.resolve('querystring-es3'), constants: require.resolve('constants-browserify'), buffer: require.resolve('buffer/'), - zlib: require.resolve('browserify-zlib'), stream: require.resolve('stream-browserify'), - http: require.resolve('stream-http'), + util: require.resolve('util/'), process: false, fs: false, net: false, diff --git a/webpack/plugins.ts b/webpack/plugins.ts index 64076814..4030e827 100644 --- a/webpack/plugins.ts +++ b/webpack/plugins.ts @@ -90,6 +90,6 @@ export const getMainPlugins = ( }), new IgnorePlugin({ resourceRegExp: /node-fetch/, - contextRegExp: /@apidevtools\/json-schema-ref-parser/ + contextRegExp: /@apidevtools[/|\\]json-schema-ref-parser/ }) ]