diff --git a/packages/error-express-handler/package.json b/packages/error-express-handler/package.json index a60e067..90b4ef2 100644 --- a/packages/error-express-handler/package.json +++ b/packages/error-express-handler/package.json @@ -40,10 +40,10 @@ "devDependencies": { "@map-colonies/eslint-config": "workspace:^", "@map-colonies/tsconfig": "workspace:^", - "@types/express": "4.17.25", + "@types/express": "5.0.6", "@types/supertest": "catalog:", "@types/node": "catalog:", - "express": "4.22.1", + "express": "5.2.1", "supertest": "catalog:", "typescript": "catalog:", "vitest-config": "workspace:^", diff --git a/packages/express-access-log-middleware/package.json b/packages/express-access-log-middleware/package.json index 2fddc0a..bc19304 100644 --- a/packages/express-access-log-middleware/package.json +++ b/packages/express-access-log-middleware/package.json @@ -33,11 +33,11 @@ "devDependencies": { "@map-colonies/eslint-config": "workspace:^", "@map-colonies/tsconfig": "workspace:^", - "@types/express": "4.17.25", + "@types/express": "5.0.6", "@types/supertest": "catalog:", "@types/node": "catalog:", "eslint": "catalog:", - "express": "4.22.1", + "express": "5.2.1", "rimraf": "catalog:", "supertest": "catalog:", "typescript": "catalog:", diff --git a/packages/openapi-express-viewer/package.json b/packages/openapi-express-viewer/package.json index 773dec5..b52f4d3 100644 --- a/packages/openapi-express-viewer/package.json +++ b/packages/openapi-express-viewer/package.json @@ -37,13 +37,13 @@ "devDependencies": { "@map-colonies/eslint-config": "workspace:^", "@map-colonies/tsconfig": "workspace:^", - "@types/express": "4.17.25", + "@types/express": "5.0.6", "@types/js-yaml": "4.0.9", "@types/supertest": "catalog:", "@types/node": "catalog:", "@types/swagger-ui-express": "4.1.8", "eslint": "catalog:", - "express": "4.22.1", + "express": "5.2.1", "rimraf": "catalog:", "supertest": "catalog:", "typescript": "catalog:", diff --git a/packages/openapi-helpers/package.json b/packages/openapi-helpers/package.json index 3e4fa0c..03ad8df 100644 --- a/packages/openapi-helpers/package.json +++ b/packages/openapi-helpers/package.json @@ -59,7 +59,7 @@ "yaml": "^2.8.0" }, "peerDependencies": { - "@types/express": "^4.17.21", + "@types/express": "^4.17.21 || ^5.0.0", "openapi-typescript": "^7.4.1", "prettier": "^3.3.3", "supertest": "^7.0.0" diff --git a/packages/prometheus/package.json b/packages/prometheus/package.json index 0d3d440..b61da11 100644 --- a/packages/prometheus/package.json +++ b/packages/prometheus/package.json @@ -37,7 +37,7 @@ "@map-colonies/eslint-config": "workspace:^", "@map-colonies/tsconfig": "workspace:^", "@microsoft/api-extractor": "catalog:", - "@types/express": "4.17.25", + "@types/express": "5.0.6", "@types/lodash": "4.17.23", "@types/supertest": "catalog:", "@types/node": "catalog:", @@ -54,7 +54,7 @@ }, "dependencies": { "@map-colonies/read-pkg": "workspace:^", - "express": "^4.22.1", + "express": "^5.0.0", "express-prom-bundle": "^7.0.2", "lodash": "^4.17.21" } diff --git a/packages/tracing-utils/package.json b/packages/tracing-utils/package.json index 8a55463..748af91 100644 --- a/packages/tracing-utils/package.json +++ b/packages/tracing-utils/package.json @@ -40,11 +40,11 @@ "@opentelemetry/api": "catalog:", "@opentelemetry/sdk-trace-base": "catalog:", "@opentelemetry/sdk-trace-node": "catalog:", - "@types/express": "4.17.25", + "@types/express": "5.0.6", "@types/supertest": "catalog:", "@types/node": "catalog:", "eslint": "catalog:", - "express": "4.22.1", + "express": "5.2.1", "reflect-metadata": "0.2.2", "rimraf": "catalog:", "supertest": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2777085..78802da 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,12 @@ catalogs: '@types/supertest': specifier: 6.0.3 version: 6.0.3 + '@vitest/coverage-v8': + specifier: ^4.0.15 + version: 4.0.18 + '@vitest/ui': + specifier: ^4.0.15 + version: 4.0.18 eslint: specifier: ^9.39.1 version: 9.39.1 @@ -45,6 +51,9 @@ catalogs: typescript: specifier: 5.9.3 version: 5.9.3 + vitest: + specifier: ^4.0.15 + version: 4.0.18 importers: @@ -173,8 +182,8 @@ importers: specifier: 'catalog:' version: 7.55.2(@types/node@24.10.9) '@types/express': - specifier: 4.17.25 - version: 4.17.25 + specifier: 5.0.6 + version: 5.0.6 '@types/node': specifier: 'catalog:' version: 24.10.9 @@ -185,8 +194,8 @@ importers: specifier: 'catalog:' version: 9.39.1(jiti@2.6.1) express: - specifier: 4.22.1 - version: 4.22.1 + specifier: 5.2.1 + version: 5.2.1 supertest: specifier: 'catalog:' version: 7.2.2 @@ -317,8 +326,8 @@ importers: specifier: 'catalog:' version: 7.55.2(@types/node@24.10.9) '@types/express': - specifier: 4.17.25 - version: 4.17.25 + specifier: 5.0.6 + version: 5.0.6 '@types/node': specifier: 'catalog:' version: 24.10.9 @@ -329,8 +338,8 @@ importers: specifier: 'catalog:' version: 9.39.1(jiti@2.6.1) express: - specifier: 4.22.1 - version: 4.22.1 + specifier: 5.2.1 + version: 5.2.1 pino: specifier: 10.1.0 version: 10.1.0 @@ -409,7 +418,7 @@ importers: version: 4.1.1 swagger-ui-express: specifier: ^5.0.1 - version: 5.0.1(express@4.22.1) + version: 5.0.1(express@5.2.1) devDependencies: '@map-colonies/eslint-config': specifier: workspace:^ @@ -421,8 +430,8 @@ importers: specifier: 'catalog:' version: 7.55.2(@types/node@24.10.9) '@types/express': - specifier: 4.17.25 - version: 4.17.25 + specifier: 5.0.6 + version: 5.0.6 '@types/js-yaml': specifier: 4.0.9 version: 4.0.9 @@ -439,8 +448,8 @@ importers: specifier: 'catalog:' version: 9.39.1(jiti@2.6.1) express: - specifier: 4.22.1 - version: 4.22.1 + specifier: 5.2.1 + version: 5.2.1 rimraf: specifier: 'catalog:' version: 6.1.2 @@ -469,8 +478,8 @@ importers: specifier: workspace:^ version: link:../read-pkg '@types/express': - specifier: ^4.17.21 - version: 4.17.25 + specifier: ^4.17.21 || ^5.0.0 + version: 5.0.6 change-case: specifier: ^5.4.4 version: 5.4.4 @@ -554,8 +563,8 @@ importers: specifier: workspace:^ version: link:../read-pkg express: - specifier: ^4.22.1 - version: 4.22.1 + specifier: ^5.0.0 + version: 5.2.1 express-prom-bundle: specifier: ^7.0.2 version: 7.0.2(prom-client@15.1.3) @@ -573,8 +582,8 @@ importers: specifier: 'catalog:' version: 7.55.2(@types/node@24.10.9) '@types/express': - specifier: 4.17.25 - version: 4.17.25 + specifier: 5.0.6 + version: 5.0.6 '@types/lodash': specifier: 4.17.23 version: 4.17.23 @@ -779,8 +788,8 @@ importers: specifier: 'catalog:' version: 2.4.0(@opentelemetry/api@1.9.0) '@types/express': - specifier: 4.17.25 - version: 4.17.25 + specifier: 5.0.6 + version: 5.0.6 '@types/node': specifier: 'catalog:' version: 24.10.9 @@ -791,8 +800,8 @@ importers: specifier: 'catalog:' version: 9.39.1(jiti@2.6.1) express: - specifier: 4.22.1 - version: 4.22.1 + specifier: 5.2.1 + version: 5.2.1 reflect-metadata: specifier: 0.2.2 version: 0.2.2 @@ -2346,9 +2355,15 @@ packages: '@types/express-serve-static-core@4.19.7': resolution: {integrity: sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg==} + '@types/express-serve-static-core@5.1.1': + resolution: {integrity: sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==} + '@types/express@4.17.25': resolution: {integrity: sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==} + '@types/express@5.0.6': + resolution: {integrity: sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==} + '@types/hast@3.0.4': resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} @@ -2406,6 +2421,9 @@ packages: '@types/serve-static@1.15.10': resolution: {integrity: sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==} + '@types/serve-static@2.2.0': + resolution: {integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==} + '@types/superagent@8.1.9': resolution: {integrity: sha512-pTVjI73witn+9ILmoJdajHGW2jkSaOzhiFYF1Rd3EQ94kymLqB9PjD9ISg7WaALC7+dCHT0FGe9T2LktLq/3GQ==} @@ -5455,7 +5473,7 @@ snapshots: '@babel/types': 7.28.6 '@jridgewell/remapping': 2.3.5 convert-source-map: 2.0.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -5527,7 +5545,7 @@ snapshots: '@babel/parser': 7.28.6 '@babel/template': 7.28.6 '@babel/types': 7.28.6 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) transitivePeerDependencies: - supports-color @@ -5782,7 +5800,7 @@ snapshots: '@eslint/config-array@0.21.1': dependencies: '@eslint/object-schema': 2.1.7 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -5798,7 +5816,7 @@ snapshots: '@eslint/eslintrc@3.3.3': dependencies: ajv: 6.12.6 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) espree: 10.4.0 globals: 14.0.0 ignore: 5.3.2 @@ -7163,6 +7181,13 @@ snapshots: '@types/range-parser': 1.2.7 '@types/send': 1.2.1 + '@types/express-serve-static-core@5.1.1': + dependencies: + '@types/node': 25.0.0 + '@types/qs': 6.14.0 + '@types/range-parser': 1.2.7 + '@types/send': 1.2.1 + '@types/express@4.17.25': dependencies: '@types/body-parser': 1.19.6 @@ -7170,6 +7195,12 @@ snapshots: '@types/qs': 6.14.0 '@types/serve-static': 1.15.10 + '@types/express@5.0.6': + dependencies: + '@types/body-parser': 1.19.6 + '@types/express-serve-static-core': 5.1.1 + '@types/serve-static': 2.2.0 + '@types/hast@3.0.4': dependencies: '@types/unist': 3.0.3 @@ -7227,7 +7258,7 @@ snapshots: '@types/send@1.2.1': dependencies: - '@types/node': 24.10.9 + '@types/node': 25.0.0 '@types/serve-static@1.15.10': dependencies: @@ -7235,6 +7266,11 @@ snapshots: '@types/node': 24.10.9 '@types/send': 0.17.6 + '@types/serve-static@2.2.0': + dependencies: + '@types/http-errors': 2.0.5 + '@types/node': 25.0.0 + '@types/superagent@8.1.9': dependencies: '@types/cookiejar': 2.1.5 @@ -7249,7 +7285,7 @@ snapshots: '@types/swagger-ui-express@4.1.8': dependencies: - '@types/express': 4.17.25 + '@types/express': 5.0.6 '@types/serve-static': 1.15.10 '@types/tedious@4.0.14': @@ -7280,7 +7316,7 @@ snapshots: '@typescript-eslint/types': 8.49.0 '@typescript-eslint/typescript-estree': 8.49.0(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.49.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) eslint: 9.39.1(jiti@2.6.1) typescript: 5.9.3 transitivePeerDependencies: @@ -7292,7 +7328,7 @@ snapshots: '@typescript-eslint/types': 8.53.0 '@typescript-eslint/typescript-estree': 8.53.0(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.53.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) eslint: 9.39.1(jiti@2.6.1) typescript: 5.9.3 transitivePeerDependencies: @@ -7302,7 +7338,7 @@ snapshots: dependencies: '@typescript-eslint/tsconfig-utils': 8.53.0(typescript@5.9.3) '@typescript-eslint/types': 8.53.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) typescript: 5.9.3 transitivePeerDependencies: - supports-color @@ -7311,7 +7347,7 @@ snapshots: dependencies: '@typescript-eslint/tsconfig-utils': 8.53.0(typescript@5.9.3) '@typescript-eslint/types': 8.53.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) typescript: 5.9.3 transitivePeerDependencies: - supports-color @@ -7353,7 +7389,7 @@ snapshots: '@typescript-eslint/types': 8.49.0 '@typescript-eslint/typescript-estree': 8.49.0(typescript@5.9.3) '@typescript-eslint/utils': 8.49.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3) - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) eslint: 9.39.1(jiti@2.6.1) ts-api-utils: 2.4.0(typescript@5.9.3) typescript: 5.9.3 @@ -7370,7 +7406,7 @@ snapshots: '@typescript-eslint/tsconfig-utils': 8.49.0(typescript@5.9.3) '@typescript-eslint/types': 8.49.0 '@typescript-eslint/visitor-keys': 8.49.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) minimatch: 9.0.5 semver: 7.7.3 tinyglobby: 0.2.15 @@ -7385,7 +7421,7 @@ snapshots: '@typescript-eslint/tsconfig-utils': 8.53.0(typescript@5.9.3) '@typescript-eslint/types': 8.53.0 '@typescript-eslint/visitor-keys': 8.53.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) minimatch: 9.0.5 semver: 7.7.3 tinyglobby: 0.2.15 @@ -7428,7 +7464,7 @@ snapshots: '@typescript/vfs@1.6.2(typescript@5.4.5)': dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -7769,7 +7805,7 @@ snapshots: dependencies: bytes: 3.1.2 content-type: 1.0.5 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) http-errors: 2.0.1 iconv-lite: 0.7.1 on-finished: 2.4.1 @@ -8008,10 +8044,6 @@ snapshots: dependencies: ms: 2.0.0 - debug@4.4.3: - dependencies: - ms: 2.1.3 - debug@4.4.3(supports-color@10.2.2): dependencies: ms: 2.1.3 @@ -8236,7 +8268,7 @@ snapshots: eslint-import-resolver-typescript@4.4.4(eslint-plugin-import-x@4.16.1(@typescript-eslint/utils@8.53.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.1(jiti@2.6.1)))(eslint@9.39.1(jiti@2.6.1)): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) eslint: 9.39.1(jiti@2.6.1) eslint-import-context: 0.1.9(unrs-resolver@1.11.1) get-tsconfig: 4.13.0 @@ -8253,7 +8285,7 @@ snapshots: dependencies: '@typescript-eslint/types': 8.49.0 comment-parser: 1.4.1 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) eslint: 9.39.1(jiti@2.6.1) eslint-import-context: 0.1.9(unrs-resolver@1.11.1) is-glob: 4.0.3 @@ -8335,7 +8367,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) escape-string-regexp: 4.0.0 eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 @@ -8441,7 +8473,7 @@ snapshots: content-type: 1.0.5 cookie: 0.7.2 cookie-signature: 1.2.2 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) depd: 2.0.0 encodeurl: 2.0.0 escape-html: 1.0.3 @@ -8524,7 +8556,7 @@ snapshots: finalhandler@2.1.1: dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) encodeurl: 2.0.0 escape-html: 1.0.3 on-finished: 2.4.1 @@ -8606,7 +8638,7 @@ snapshots: gaxios@6.7.1: dependencies: extend: 3.0.2 - https-proxy-agent: 7.0.6 + https-proxy-agent: 7.0.6(supports-color@10.2.2) is-stream: 2.0.1 node-fetch: 2.7.0 uuid: 9.0.1 @@ -8746,13 +8778,6 @@ snapshots: http2-client@1.3.5: {} - https-proxy-agent@7.0.6: - dependencies: - agent-base: 7.1.4 - debug: 4.4.3 - transitivePeerDependencies: - - supports-color - https-proxy-agent@7.0.6(supports-color@10.2.2): dependencies: agent-base: 7.1.4 @@ -9662,7 +9687,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 24.10.9 + '@types/node': 25.0.0 long: 5.3.2 protobufjs@8.0.0: @@ -9766,7 +9791,7 @@ snapshots: require-in-the-middle@8.0.1: dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) module-details-from-path: 1.0.4 transitivePeerDependencies: - supports-color @@ -9834,7 +9859,7 @@ snapshots: router@2.2.0: dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) depd: 2.0.0 is-promise: 4.0.0 parseurl: 1.3.3 @@ -9905,7 +9930,7 @@ snapshots: send@1.2.1: dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) encodeurl: 2.0.0 escape-html: 1.0.3 etag: 1.8.1 @@ -10154,7 +10179,7 @@ snapshots: dependencies: component-emitter: 1.3.1 cookiejar: 2.1.4 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) fast-safe-stringify: 2.1.1 form-data: 4.0.5 formidable: 3.5.4 @@ -10193,9 +10218,9 @@ snapshots: dependencies: '@scarf/scarf': 1.4.0 - swagger-ui-express@5.0.1(express@4.22.1): + swagger-ui-express@5.0.1(express@5.2.1): dependencies: - express: 4.22.1 + express: 5.2.1 swagger-ui-dist: 5.31.0 swagger2openapi@7.0.8: