From e4976281cd4fa4c49ab055a9f55c3e8b43bc11c8 Mon Sep 17 00:00:00 2001 From: Gabriel Birke Date: Tue, 21 Jan 2025 17:29:16 +0100 Subject: [PATCH 1/4] Remove jsonp We were using it on the old Privacy page to transfer consent clicks to Matomo. But 3816fd7ecf4e0a7ccc78acb34da1324277b80c3b removed that functionality (we no longer use cookies and therefore no longer need opt-out or consent) and we can remove the library. --- package-lock.json | 32 -------------------------------- package.json | 2 -- 2 files changed, 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index c8bf394c..f29c33b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,6 @@ "core-js": "^3.40.0", "format-number": "^3.0.0", "js-cookie": "^3.0.5", - "jsonp": "^0.2.1", "process": "^0.11.10", "vue": "~3.4.27", "vue-i18n": "^11.0.1", @@ -31,7 +30,6 @@ "@testing-library/jest-dom": "6.6.3", "@types/jest": "^29.5.13", "@types/js-cookie": "^3.0.6", - "@types/jsonp": "^0.2.3", "@types/moxios": "^0.4.17", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.21.0", @@ -3693,13 +3691,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/jsonp": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@types/jsonp/-/jsonp-0.2.3.tgz", - "integrity": "sha512-+bbowFC2n6TkpbQ369/tqL8pRPF4JRfRNf7Z6cpnAlLlEdy6YxG4HYZE7Qkeg2otcDbwNPIuSMux+P3pE4viFA==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/mime": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", @@ -11091,29 +11082,6 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/jsonp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/jsonp/-/jsonp-0.2.1.tgz", - "integrity": "sha512-pfog5gdDxPdV4eP7Kg87M8/bHgshlZ5pybl+yKxAnCZ5O7lCIn7Ixydj03wOlnDQesky2BPyA91SQ+5Y/mNwzw==", - "dependencies": { - "debug": "^2.1.3" - } - }, - "node_modules/jsonp/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/jsonp/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, "node_modules/jsonpath": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", diff --git a/package.json b/package.json index 399e6e1d..3ac108fb 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "core-js": "^3.40.0", "format-number": "^3.0.0", "js-cookie": "^3.0.5", - "jsonp": "^0.2.1", "process": "^0.11.10", "vue": "~3.4.27", "vue-i18n": "^11.0.1", @@ -37,7 +36,6 @@ "@testing-library/jest-dom": "6.6.3", "@types/jest": "^29.5.13", "@types/js-cookie": "^3.0.6", - "@types/jsonp": "^0.2.3", "@types/moxios": "^0.4.17", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.21.0", From b69710e25aae33771257fe5fc2d11f53a45724e5 Mon Sep 17 00:00:00 2001 From: Gabriel Birke Date: Tue, 21 Jan 2025 17:37:05 +0100 Subject: [PATCH 2/4] Remove format-number We were using it to format amounts for different locales on the "Use of Funds" page. Now the page uses pre-formatted numbers from a JSON file. --- package-lock.json | 7 ------- package.json | 1 - 2 files changed, 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index f29c33b1..8cdb6b37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,6 @@ "axios": "^1.7.7", "bulma": "0.9.4", "core-js": "^3.40.0", - "format-number": "^3.0.0", "js-cookie": "^3.0.5", "process": "^0.11.10", "vue": "~3.4.27", @@ -8574,12 +8573,6 @@ "node": ">= 0.12" } }, - "node_modules/format-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/format-number/-/format-number-3.0.0.tgz", - "integrity": "sha512-RWcbtINcRZ2DWCo4EcJgOJUYIwtsY5LKlTtL5OX1vfGsxEEK5mKaGxZC0p4Mgy63vXR12rut3lnjwCQ8YIlRMw==", - "license": "BSD-3-Clause" - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", diff --git a/package.json b/package.json index 3ac108fb..b9064664 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "axios": "^1.7.7", "bulma": "0.9.4", "core-js": "^3.40.0", - "format-number": "^3.0.0", "js-cookie": "^3.0.5", "process": "^0.11.10", "vue": "~3.4.27", From 62b6451d86daaaaaf4e488f80ef9aeeed3531d27 Mon Sep 17 00:00:00 2001 From: Gabriel Birke Date: Tue, 21 Jan 2025 17:42:17 +0100 Subject: [PATCH 3/4] Remove moxios dependency We were using it for mocking axios, before we introduced jest. Now we're using different techniques. --- package-lock.json | 22 ---------------------- package.json | 2 -- 2 files changed, 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8cdb6b37..c623dfa0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,6 @@ "@testing-library/jest-dom": "6.6.3", "@types/jest": "^29.5.13", "@types/js-cookie": "^3.0.6", - "@types/moxios": "^0.4.17", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.21.0", "@vue/eslint-config-typescript": "^14.0.0", @@ -56,7 +55,6 @@ "jest-serializer-vue": "^3.1.0", "jest-transform-stub": "^2.0.0", "mini-css-extract-plugin": "^2.9.1", - "moxios": "^0.4.0", "pa11y": "^8.0.0", "regenerator-runtime": "^0.14.1", "resolve-url-loader": "^5.0.0", @@ -3697,16 +3695,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/moxios": { - "version": "0.4.17", - "resolved": "https://registry.npmjs.org/@types/moxios/-/moxios-0.4.17.tgz", - "integrity": "sha512-Ef7VE+vfISBbxWMOl40doJpHGpy5lTYJQwWHAy9ah1lrRnsVd+eNt6NjJ2QTAotHpQ7krVrZ3lp8hnxUxvdGuw==", - "dev": true, - "license": "MIT", - "dependencies": { - "axios": ">=0.13.0" - } - }, "node_modules/@types/node": { "version": "22.10.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz", @@ -11571,16 +11559,6 @@ "node": ">=10" } }, - "node_modules/moxios": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/moxios/-/moxios-0.4.0.tgz", - "integrity": "sha512-r+7DOsTcoTAwY6TGIDtjeTEBXMW8aGgk74MfASOC1tgYXD8Kq+cnqQHUdMnvfjf/CK7Pg/Wo52ohqy5zlyv9XQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "axios": ">= 0.13.0" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", diff --git a/package.json b/package.json index b9064664..7a1ea9da 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@testing-library/jest-dom": "6.6.3", "@types/jest": "^29.5.13", "@types/js-cookie": "^3.0.6", - "@types/moxios": "^0.4.17", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.21.0", "@vue/eslint-config-typescript": "^14.0.0", @@ -62,7 +61,6 @@ "jest-serializer-vue": "^3.1.0", "jest-transform-stub": "^2.0.0", "mini-css-extract-plugin": "^2.9.1", - "moxios": "^0.4.0", "pa11y": "^8.0.0", "regenerator-runtime": "^0.14.1", "resolve-url-loader": "^5.0.0", From 194611a657b796f97ba721446643f02c93de6040 Mon Sep 17 00:00:00 2001 From: Gabriel Birke Date: Tue, 21 Jan 2025 17:49:11 +0100 Subject: [PATCH 4/4] Remove @vue/eslint-config-typescript This package is a pre-packaged ESLint configuration for Vue projects created with the `create-vue` tool. Our project predates that tool, was updated over the years and has its own ESLint configuration that's incompatible with the configs that the library provides. --- package-lock.json | 102 +--------------------------------------------- package.json | 1 - 2 files changed, 1 insertion(+), 102 deletions(-) diff --git a/package-lock.json b/package-lock.json index c623dfa0..97a41a25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,6 @@ "@types/js-cookie": "^3.0.6", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.21.0", - "@vue/eslint-config-typescript": "^14.0.0", "@vue/test-utils": "2.4.6", "@vue/vue3-jest": "^29.2.6", "babel-jest": "^29.7.0", @@ -4038,6 +4037,7 @@ "integrity": "sha512-67gbfv8rAwawjYx3fYArwldTQKoYfezNUT4D5ioWetr/xCrxXxvleo3uuiFuKfejipvq+og7mjz3b0G2bVyUCw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.19.1", "@typescript-eslint/types": "8.19.1", @@ -4391,31 +4391,6 @@ "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", "license": "MIT" }, - "node_modules/@vue/eslint-config-typescript": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-14.2.0.tgz", - "integrity": "sha512-JJ4wHuTJa2faQsBOUeWzuHOSFizVS7RWG2eH2noABk2LcT4wVcTOMZKM/lFobKBcgwADIPAKVRGFHVKooXImoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-glob": "^3.3.2", - "typescript-eslint": "^8.18.1", - "vue-eslint-parser": "^9.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "peerDependencies": { - "eslint": "^9.10.0", - "eslint-plugin-vue": "^9.28.0", - "typescript": ">=4.8.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/@vue/reactivity": { "version": "3.4.38", "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.38.tgz", @@ -15724,81 +15699,6 @@ "node": ">=14.17" } }, - "node_modules/typescript-eslint": { - "version": "8.19.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.19.1.tgz", - "integrity": "sha512-LKPUQpdEMVOeKluHi8md7rwLcoXHhwvWp3x+sJkMuq3gGm9yaYJtPo8sRZSblMFJ5pcOGCAak/scKf1mvZDlQw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.19.1", - "@typescript-eslint/parser": "8.19.1", - "@typescript-eslint/utils": "8.19.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.19.1.tgz", - "integrity": "sha512-tJzcVyvvb9h/PB96g30MpxACd9IrunT7GF9wfA9/0TJ1LxGOJx1TdPzSbBBnNED7K9Ka8ybJsnEpiXPktolTLg==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.19.1", - "@typescript-eslint/type-utils": "8.19.1", - "@typescript-eslint/utils": "8.19.1", - "@typescript-eslint/visitor-keys": "8.19.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils": { - "version": "8.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.19.1.tgz", - "integrity": "sha512-Rp7k9lhDKBMRJB/nM9Ksp1zs4796wVNyihG9/TU9R6KCJDNkQbc2EOKjrBtLYh3396ZdpXLtr/MkaSEmNMtykw==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "8.19.1", - "@typescript-eslint/utils": "8.19.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" - } - }, "node_modules/unbzip2-stream": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", diff --git a/package.json b/package.json index 7a1ea9da..3ebfff4b 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "@types/js-cookie": "^3.0.6", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.21.0", - "@vue/eslint-config-typescript": "^14.0.0", "@vue/test-utils": "2.4.6", "@vue/vue3-jest": "^29.2.6", "babel-jest": "^29.7.0",