From b1506e6ee911a1fbd6aa17bdf21d7ea4777f8cb0 Mon Sep 17 00:00:00 2001 From: Nicola Bovolato Date: Thu, 19 Sep 2024 14:56:29 +0200 Subject: [PATCH 1/4] chore(@basica/fastify): bump fastify version --- .changeset/strange-pianos-give.md | 5 + packages/basica/plugins/fastify/package.json | 8 +- .../basica/plugins/fastify/src/entrypoint.ts | 4 +- pnpm-lock.yaml | 298 +++++++++++++++++- 4 files changed, 293 insertions(+), 22 deletions(-) create mode 100644 .changeset/strange-pianos-give.md diff --git a/.changeset/strange-pianos-give.md b/.changeset/strange-pianos-give.md new file mode 100644 index 0000000..fb48308 --- /dev/null +++ b/.changeset/strange-pianos-give.md @@ -0,0 +1,5 @@ +--- +"@basica/fastify": minor +--- + +Bump to fastify v5 diff --git a/packages/basica/plugins/fastify/package.json b/packages/basica/plugins/fastify/package.json index 43a56a5..98580ac 100644 --- a/packages/basica/plugins/fastify/package.json +++ b/packages/basica/plugins/fastify/package.json @@ -19,7 +19,7 @@ } }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" }, "scripts": { "build": "tsup-node", @@ -31,10 +31,10 @@ }, "dependencies": { "@basica/core": "workspace:^0.0.4", - "@fastify/swagger": "^8.14.0", - "@fastify/swagger-ui": "^2.1.0", + "@fastify/swagger": "^9.0.0", + "@fastify/swagger-ui": "^5.0.1", "@sinclair/typebox": "^0.32.16", - "fastify": "^4.26.2" + "fastify": "^5.0.0" }, "devDependencies": { "@basica/eslint-config": "workspace:^0.0.0", diff --git a/packages/basica/plugins/fastify/src/entrypoint.ts b/packages/basica/plugins/fastify/src/entrypoint.ts index 951388d..85fbb3d 100644 --- a/packages/basica/plugins/fastify/src/entrypoint.ts +++ b/packages/basica/plugins/fastify/src/entrypoint.ts @@ -16,7 +16,9 @@ export class FastifyEntrypoint implements IEntrypoint { this.#runtimeConfig = { host, port }; this.fastify = fastify({ - logger: logger.child({ name: `@basica:entrypoint:fastify:${name}` }), + loggerInstance: logger.child({ + name: `@basica:entrypoint:fastify:${name}`, + }), ajv: { customOptions: { removeAdditional: "all", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ace1d9f..2e15d13 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -258,17 +258,17 @@ importers: specifier: workspace:^0.0.4 version: link:../../core '@fastify/swagger': - specifier: ^8.14.0 - version: 8.14.0 + specifier: ^9.0.0 + version: 9.0.0 '@fastify/swagger-ui': - specifier: ^2.1.0 - version: 2.1.0 + specifier: ^5.0.1 + version: 5.0.1 '@sinclair/typebox': specifier: ^0.32.16 version: 0.32.20 fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 devDependencies: '@basica/eslint-config': specifier: workspace:^0.0.0 @@ -2689,18 +2689,30 @@ packages: resolution: {integrity: sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==} engines: {node: '>=14'} + '@fastify/accept-negotiator@2.0.0': + resolution: {integrity: sha512-/Sce/kBzuTxIq5tJh85nVNOq9wKD8s+viIgX0fFMDBdw95gnpf53qmF1oBgJym3cPFliWUuSloVg/1w/rH0FcQ==} + '@fastify/ajv-compiler@3.5.0': resolution: {integrity: sha512-ebbEtlI7dxXF5ziNdr05mOY8NnDiPB1XvAlLHctRt/Rc+C3LCOVW5imUVX+mhvUhnNzmPBHewUkOFgGlCxgdAA==} + '@fastify/ajv-compiler@4.0.0': + resolution: {integrity: sha512-dt0jyLAlay14LpIn4Fg1SY7V5NJ9KH0YFDpYVQY5cgIVBvdI8908AMx5zQ0bBYPGT6Wh+bM3f2caMmOXLP3QsQ==} + '@fastify/cors@9.0.1': resolution: {integrity: sha512-YY9Ho3ovI+QHIL2hW+9X4XqQjXLjJqsU+sMV/xFsxZkE8p3GNnYVFpoOxF7SsP5ZL76gwvbo3V9L+FIekBGU4Q==} '@fastify/error@3.4.1': resolution: {integrity: sha512-wWSvph+29GR783IhmvdwWnN4bUxTD01Vm5Xad4i7i1VuAOItLvbPAb69sb0IQ2N57yprvhNIwAP5B6xfKTmjmQ==} + '@fastify/error@4.0.0': + resolution: {integrity: sha512-OO/SA8As24JtT1usTUTKgGH7uLvhfwZPwlptRi2Dp5P4KKmJI3gvsZ8MIHnNwDs4sLf/aai5LzTyl66xr7qMxA==} + '@fastify/fast-json-stringify-compiler@4.3.0': resolution: {integrity: sha512-aZAXGYo6m22Fk1zZzEUKBvut/CIIQe/BapEORnxiD5Qr0kPHqqI69NtEMCme74h+at72sPhbkb4ZrLd1W3KRLA==} + '@fastify/fast-json-stringify-compiler@5.0.0': + resolution: {integrity: sha512-tywfuZfXsyxLC5kEqrMubbFa9vpAxNtuPE7j9w5si1r+6p5b981pDfZ5Y8HBqmjDQl+PABT7cV5jZgXI2j+I5g==} + '@fastify/formbody@7.4.0': resolution: {integrity: sha512-H3C6h1GN56/SMrZS8N2vCT2cZr7mIHzBHzOBa5OPpjfB/D6FzP9mMpE02ZzrFX0ANeh0BAJdoXKOF2e7IbV+Og==} @@ -2713,14 +2725,20 @@ packages: '@fastify/send@2.1.0': resolution: {integrity: sha512-yNYiY6sDkexoJR0D8IDy3aRP3+L4wdqCpvx5WP+VtEU58sn7USmKynBzDQex5X42Zzvw2gNzzYgP90UfWShLFA==} + '@fastify/send@3.1.1': + resolution: {integrity: sha512-LdiV2mle/2tH8vh6GwGl0ubfUAgvY+9yF9oGI1iiwVyNUVOQamvw5n+OFu6iCNNoyuCY80FFURBn4TZCbTe8LA==} + '@fastify/static@6.12.0': resolution: {integrity: sha512-KK1B84E6QD/FcQWxDI2aiUCwHxMJBI1KeCUzm1BwYpPY1b742+jeKruGHP2uOluuM6OkBPI8CIANrXcCRtC2oQ==} - '@fastify/swagger-ui@2.1.0': - resolution: {integrity: sha512-mu0C28kMEQDa3miE8f3LmI/OQSmqaKS3dYhZVFO5y4JdgBIPbzZj6COCoRU/P/9nu7UogzzcCJtg89wwLwKtWg==} + '@fastify/static@8.0.0': + resolution: {integrity: sha512-VKGn1PQslB2VqzspyMKPu9xasF9vj+YuyGhVLb1ih6V60VVcRvcf0fFRcl3opt6c6YWwhKKdTUTfVE6COnpw6A==} + + '@fastify/swagger-ui@5.0.1': + resolution: {integrity: sha512-nCDV5l0OTziK8nIeHaLZ30ENFFftZ4Pcs7GHDcqOO6Jp3qSnyOsqBg1/EosM+d1mrCvH4vSlM09xolkjrbuJQQ==} - '@fastify/swagger@8.14.0': - resolution: {integrity: sha512-sGiznEb3rl6pKGGUZ+JmfI7ct5cwbTQGo+IjewaTvtzfrshnryu4dZwEsjw0YHABpBA+kCz3kpRaHB7qpa67jg==} + '@fastify/swagger@9.0.0': + resolution: {integrity: sha512-E7TQbBCbhvS2djGLxJ7t2OFbhc2F+KCsOZCNhh6xQIlJxq9H4ZR5KuLKG+vn6COVqkLxRVUOZ9qtbbzdf5Jfqw==} '@fastify/type-provider-typebox@4.0.0': resolution: {integrity: sha512-kTlN0saC/+xhcQPyBjb3YONQAMjiD/EHlCRjQjsr5E3NFjS5K8ZX5LGzXYDRjSa+sV4y8gTL5Q7FlObePv4iTA==} @@ -4228,6 +4246,14 @@ packages: ajv: optional: true + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + ajv-keywords@3.5.2: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} peerDependencies: @@ -4417,6 +4443,9 @@ packages: avvio@8.3.0: resolution: {integrity: sha512-VBVH0jubFr9LdFASy/vNtm5giTrnbVquWBhT0fyizuNK2rQ7e7ONU2plZQWUNqtE1EmxFEb+kbSkFRkstiaS9Q==} + avvio@9.0.0: + resolution: {integrity: sha512-UbYrOXgE/I+knFG+3kJr9AgC7uNo8DG+FGGODpH9Bj1O1kL/QDjBXnTem9leD3VdQKtaHjV3O85DQ7hHh4IIHw==} + b4a@1.6.6: resolution: {integrity: sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==} @@ -5835,6 +5864,9 @@ packages: fast-json-stringify@5.13.0: resolution: {integrity: sha512-XjTDWKHP3GoMQUOfnjYUbqeHeEt+PvYgvBdG2fRSmYaORILbSr8xTJvZX+w1YSAP5pw2NwKrGRmQleYueZEoxw==} + fast-json-stringify@6.0.0: + resolution: {integrity: sha512-FGMKZwniMTgZh7zQp9b6XnBVxUmKVahQLQeRQHqwYmPDqDhcEKZ3BaQsxelFFI5PY7nN71OEeiL47/zUWcYe1A==} + fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} @@ -5851,15 +5883,24 @@ packages: fast-uri@2.3.0: resolution: {integrity: sha512-eel5UKGn369gGEWOqBShmFJWfq/xSJvsgDzgLYC845GneayWvXBf0lJCBn5qTABfewy1ZDPoaR5OZCP+kssfuw==} + fast-uri@3.0.1: + resolution: {integrity: sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==} + fast-url-parser@1.1.3: resolution: {integrity: sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==} fastify-plugin@4.5.1: resolution: {integrity: sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==} + fastify-plugin@5.0.0: + resolution: {integrity: sha512-0725fmH/yYi8ugsjszLci+lLnGBK6cG+WSxM7edY2OXJEU7gr2JiGBoieL2h9mhTych1vFsEfXsAsGGDJ/Rd5w==} + fastify@4.26.2: resolution: {integrity: sha512-90pjTuPGrfVKtdpLeLzND5nyC4woXZN5VadiNQCicj/iJU4viNHKhsAnb7jmv1vu2IzkLXyBiCzdWuzeXgQ5Ug==} + fastify@5.0.0: + resolution: {integrity: sha512-Qe4dU+zGOzg7vXjw4EvcuyIbNnMwTmcuOhlOrOJsgwzvjEZmsM/IeHulgJk+r46STjdJS/ZJbxO8N70ODXDMEQ==} + fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -5918,6 +5959,10 @@ packages: resolution: {integrity: sha512-41QwjCGcVTODUmLLqTMeoHeiozbMXYMAE1CKFiDyi9zVZ2Vjh0yz3MF0WQZoIb+cmzP/XlbFjlF2NtJmvZHznA==} engines: {node: '>=14'} + find-my-way@9.0.1: + resolution: {integrity: sha512-/5NN/R0pFWuff16TMajeKt2JyiW+/OE8nOO8vo1DwZTxLaIURb7lcBYPIgRPh61yCNh9l8voeKwcrkUzmB00vw==} + engines: {node: '>=14'} + find-up@3.0.0: resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} engines: {node: '>=6'} @@ -6128,6 +6173,11 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -6759,6 +6809,10 @@ packages: resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} + jackspeak@4.0.1: + resolution: {integrity: sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==} + engines: {node: 20 || >=22} + jest-util@29.7.0: resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -6905,6 +6959,9 @@ packages: light-my-request@5.12.0: resolution: {integrity: sha512-P526OX6E7aeCIfw/9UyJNsAISfcFETghysaWHQAlQYayynShT08MOj4c6fBCvTWBrHXSvqBAKDp3amUPSCQI4w==} + light-my-request@6.0.0: + resolution: {integrity: sha512-kFkFXrmKCL0EEeOmJybMH5amWFd+AFvlvMlvFTRxCUwbhfapZqDmeLMPoWihntnYY6JpoQDE9k+vOzObF1fDqg==} + lilconfig@2.1.0: resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} engines: {node: '>=10'} @@ -7035,6 +7092,10 @@ packages: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} + lru-cache@11.0.1: + resolution: {integrity: sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==} + engines: {node: 20 || >=22} + lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} @@ -7416,6 +7477,10 @@ packages: minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -7450,6 +7515,10 @@ packages: resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + mixme@0.5.10: resolution: {integrity: sha512-5H76ANWinB1H3twpJ6JY8uvAtpmFvHNArpilJAjXRKXSDDLPIMoZArw5SH0q9z+lLs8IrMw7Q2VWpWimFKFT1Q==} engines: {node: '>= 8.0.0'} @@ -7754,6 +7823,9 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + package-json-from-dist@1.0.0: + resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + package-json@8.1.1: resolution: {integrity: sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==} engines: {node: '>=14.16'} @@ -7837,6 +7909,10 @@ packages: resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} engines: {node: '>=16 || 14 >=14.17'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} @@ -7925,6 +8001,9 @@ packages: pino-abstract-transport@1.1.0: resolution: {integrity: sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==} + pino-abstract-transport@1.2.0: + resolution: {integrity: sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==} + pino-pretty@10.3.1: resolution: {integrity: sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==} hasBin: true @@ -7932,10 +8011,17 @@ packages: pino-std-serializers@6.2.2: resolution: {integrity: sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==} + pino-std-serializers@7.0.0: + resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} + pino@8.19.0: resolution: {integrity: sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==} hasBin: true + pino@9.4.0: + resolution: {integrity: sha512-nbkQb5+9YPhQRz/BeQmrWpEknAaqjpAqRK8NwJpmrX/JHu7JuZC5G1CeAwJDJfGes4h+YihC6in3Q2nGb+Y09w==} + hasBin: true + pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} @@ -8488,6 +8574,9 @@ packages: process-warning@3.0.0: resolution: {integrity: sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==} + process-warning@4.0.0: + resolution: {integrity: sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==} + process@0.11.10: resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} engines: {node: '>= 0.6.0'} @@ -8854,6 +8943,10 @@ packages: resolution: {integrity: sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==} engines: {node: '>=4'} + ret@0.5.0: + resolution: {integrity: sha512-I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==} + engines: {node: '>=10'} + retimer@3.0.0: resolution: {integrity: sha512-WKE0j11Pa0ZJI5YIk0nflGI7SQsfl2ljihVy7ogh7DeQSeYAUi0ubZ/yEueGtDfUPk6GH5LRw1hBdLq4IwUBWA==} @@ -8936,6 +9029,9 @@ packages: safe-regex2@2.0.0: resolution: {integrity: sha512-PaUSFsUaNNuKwkBijoAPHAK6/eM6VirvyPWlZ7BAQy4D+hCvh4B6lIG+nPdhbFfIbP+gTGBcrdsOaUs0F+ZBOQ==} + safe-regex2@4.0.0: + resolution: {integrity: sha512-Hvjfv25jPDVr3U+4LDzBuZPPOymELG3PYcSk5hcevooo1yxxamQL/bHs/GrEPGmMoMEwRrHVGiCA1pXi97B8Ew==} + safe-stable-stringify@2.4.3: resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} engines: {node: '>=10'} @@ -9137,6 +9233,9 @@ packages: sonic-boom@3.8.0: resolution: {integrity: sha512-ybz6OYOUjoQQCQ/i4LU8kaToD8ACtYP+Cj5qd2AO36bwbdewxWJ3ArmJ2cr6AvxlL2o0PqnCcPGUgkILbfkaCA==} + sonic-boom@4.1.0: + resolution: {integrity: sha512-NGipjjRicyJJ03rPiZCJYjwlsuP2d1/5QUviozRXC7S3WdVWNK5e3Ojieb9CCyfhq2UC+3+SRd9nG3I2lPRvUw==} + sort-css-media-queries@2.1.0: resolution: {integrity: sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA==} engines: {node: '>= 6.3.0'} @@ -9449,6 +9548,9 @@ packages: thread-stream@2.4.1: resolution: {integrity: sha512-d/Ex2iWd1whipbT681JmTINKw0ZwOUBZm7+Gjs64DHuX34mmw8vJL2bFAaNacaW72zYiTJxSHi5abUuOi5nsfg==} + thread-stream@3.1.0: + resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} + through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} @@ -10240,6 +10342,11 @@ packages: engines: {node: '>= 14'} hasBin: true + yaml@2.5.1: + resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} + engines: {node: '>= 14'} + hasBin: true + yargs-parser@18.1.3: resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} engines: {node: '>=6'} @@ -12521,7 +12628,10 @@ snapshots: '@eslint/js@8.57.0': {} - '@fastify/accept-negotiator@1.1.0': {} + '@fastify/accept-negotiator@1.1.0': + optional: true + + '@fastify/accept-negotiator@2.0.0': {} '@fastify/ajv-compiler@3.5.0': dependencies: @@ -12529,6 +12639,12 @@ snapshots: ajv-formats: 2.1.1(ajv@8.12.0) fast-uri: 2.3.0 + '@fastify/ajv-compiler@4.0.0': + dependencies: + ajv: 8.12.0 + ajv-formats: 3.0.1(ajv@8.12.0) + fast-uri: 3.0.1 + '@fastify/cors@9.0.1': dependencies: fastify-plugin: 4.5.1 @@ -12536,10 +12652,16 @@ snapshots: '@fastify/error@3.4.1': {} + '@fastify/error@4.0.0': {} + '@fastify/fast-json-stringify-compiler@4.3.0': dependencies: fast-json-stringify: 5.13.0 + '@fastify/fast-json-stringify-compiler@5.0.0': + dependencies: + fast-json-stringify: 6.0.0 + '@fastify/formbody@7.4.0': dependencies: fast-querystring: 1.1.2 @@ -12563,6 +12685,15 @@ snapshots: fast-decode-uri-component: 1.0.1 http-errors: 2.0.0 mime: 3.0.0 + optional: true + + '@fastify/send@3.1.1': + dependencies: + '@lukeed/ms': 2.0.2 + escape-html: 1.0.3 + fast-decode-uri-component: 1.0.1 + http-errors: 2.0.0 + mime: 3.0.0 '@fastify/static@6.12.0': dependencies: @@ -12572,22 +12703,32 @@ snapshots: fastify-plugin: 4.5.1 glob: 8.1.0 p-limit: 3.1.0 + optional: true - '@fastify/swagger-ui@2.1.0': + '@fastify/static@8.0.0': dependencies: - '@fastify/static': 6.12.0 - fastify-plugin: 4.5.1 + '@fastify/accept-negotiator': 2.0.0 + '@fastify/send': 3.1.1 + content-disposition: 0.5.4 + fastify-plugin: 5.0.0 + fastq: 1.17.1 + glob: 11.0.0 + + '@fastify/swagger-ui@5.0.1': + dependencies: + '@fastify/static': 8.0.0 + fastify-plugin: 5.0.0 openapi-types: 12.1.3 rfdc: 1.3.1 yaml: 2.4.1 - '@fastify/swagger@8.14.0': + '@fastify/swagger@9.0.0': dependencies: - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.0 json-schema-resolver: 2.0.0 openapi-types: 12.1.3 rfdc: 1.3.1 - yaml: 2.4.1 + yaml: 2.5.1 transitivePeerDependencies: - supports-color @@ -14586,6 +14727,10 @@ snapshots: optionalDependencies: ajv: 8.12.0 + ajv-formats@3.0.1(ajv@8.12.0): + optionalDependencies: + ajv: 8.12.0 + ajv-keywords@3.5.2(ajv@6.12.6): dependencies: ajv: 6.12.6 @@ -14835,6 +14980,11 @@ snapshots: transitivePeerDependencies: - supports-color + avvio@9.0.0: + dependencies: + '@fastify/error': 4.0.0 + fastq: 1.17.1 + b4a@1.6.6: {} babel-loader@9.1.3(@babel/core@7.24.3)(webpack@5.91.0): @@ -16586,6 +16736,16 @@ snapshots: json-schema-ref-resolver: 1.0.1 rfdc: 1.3.1 + fast-json-stringify@6.0.0: + dependencies: + '@fastify/merge-json-schemas': 0.1.1 + ajv: 8.12.0 + ajv-formats: 3.0.1(ajv@8.12.0) + fast-deep-equal: 3.1.3 + fast-uri: 2.3.0 + json-schema-ref-resolver: 1.0.1 + rfdc: 1.3.1 + fast-levenshtein@2.0.6: {} fast-querystring@1.1.2: @@ -16598,12 +16758,16 @@ snapshots: fast-uri@2.3.0: {} + fast-uri@3.0.1: {} + fast-url-parser@1.1.3: dependencies: punycode: 1.4.1 fastify-plugin@4.5.1: {} + fastify-plugin@5.0.0: {} + fastify@4.26.2: dependencies: '@fastify/ajv-compiler': 3.5.0 @@ -16625,6 +16789,24 @@ snapshots: transitivePeerDependencies: - supports-color + fastify@5.0.0: + dependencies: + '@fastify/ajv-compiler': 4.0.0 + '@fastify/error': 4.0.0 + '@fastify/fast-json-stringify-compiler': 5.0.0 + abstract-logging: 2.0.1 + avvio: 9.0.0 + fast-json-stringify: 6.0.0 + find-my-way: 9.0.1 + light-my-request: 6.0.0 + pino: 9.4.0 + process-warning: 4.0.0 + proxy-addr: 2.0.7 + rfdc: 1.3.1 + secure-json-parse: 2.7.0 + semver: 7.6.0 + toad-cache: 3.7.0 + fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -16693,6 +16875,12 @@ snapshots: fast-querystring: 1.1.2 safe-regex2: 2.0.0 + find-my-way@9.0.1: + dependencies: + fast-deep-equal: 3.1.3 + fast-querystring: 1.1.2 + safe-regex2: 4.0.0 + find-up@3.0.0: dependencies: locate-path: 3.0.0 @@ -16924,6 +17112,15 @@ snapshots: minipass: 7.0.4 path-scurry: 1.10.2 + glob@11.0.0: + dependencies: + foreground-child: 3.1.1 + jackspeak: 4.0.1 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 2.0.0 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -16940,6 +17137,7 @@ snapshots: inherits: 2.0.4 minimatch: 5.1.6 once: 1.4.0 + optional: true glob@9.3.5: dependencies: @@ -17639,6 +17837,12 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.1: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 @@ -17782,6 +17986,12 @@ snapshots: process-warning: 3.0.0 set-cookie-parser: 2.6.0 + light-my-request@6.0.0: + dependencies: + cookie: 0.6.0 + process-warning: 4.0.0 + set-cookie-parser: 2.6.0 + lilconfig@2.1.0: {} lilconfig@3.1.1: {} @@ -17888,6 +18098,8 @@ snapshots: lru-cache@10.2.0: {} + lru-cache@11.0.1: {} + lru-cache@4.1.5: dependencies: pseudomap: 1.0.2 @@ -18653,6 +18865,10 @@ snapshots: minimalistic-assert@1.0.1: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -18685,6 +18901,8 @@ snapshots: minipass@7.0.4: {} + minipass@7.1.2: {} + mixme@0.5.10: {} mkdirp-classic@0.5.3: {} @@ -18973,6 +19191,8 @@ snapshots: p-try@2.2.0: {} + package-json-from-dist@1.0.0: {} + package-json@8.1.1: dependencies: got: 12.6.1 @@ -19058,6 +19278,11 @@ snapshots: lru-cache: 10.2.0 minipass: 7.0.4 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.1 + minipass: 7.1.2 + path-to-regexp@0.1.7: {} path-to-regexp@1.8.0: @@ -19144,6 +19369,11 @@ snapshots: readable-stream: 4.5.2 split2: 4.2.0 + pino-abstract-transport@1.2.0: + dependencies: + readable-stream: 4.5.2 + split2: 4.2.0 + pino-pretty@10.3.1: dependencies: colorette: 2.0.20 @@ -19163,6 +19393,8 @@ snapshots: pino-std-serializers@6.2.2: {} + pino-std-serializers@7.0.0: {} + pino@8.19.0: dependencies: atomic-sleep: 1.0.0 @@ -19177,6 +19409,20 @@ snapshots: sonic-boom: 3.8.0 thread-stream: 2.4.1 + pino@9.4.0: + dependencies: + atomic-sleep: 1.0.0 + fast-redact: 3.5.0 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 1.2.0 + pino-std-serializers: 7.0.0 + process-warning: 4.0.0 + quick-format-unescaped: 4.0.4 + real-require: 0.2.0 + safe-stable-stringify: 2.4.3 + sonic-boom: 4.1.0 + thread-stream: 3.1.0 + pirates@4.0.6: {} pkg-dir@4.2.0: @@ -19691,6 +19937,8 @@ snapshots: process-warning@3.0.0: {} + process-warning@4.0.0: {} + process@0.11.10: {} progress@2.0.3: {} @@ -20171,6 +20419,8 @@ snapshots: ret@0.2.2: {} + ret@0.5.0: {} + retimer@3.0.0: {} retry@0.12.0: {} @@ -20260,6 +20510,10 @@ snapshots: dependencies: ret: 0.2.2 + safe-regex2@4.0.0: + dependencies: + ret: 0.5.0 + safe-stable-stringify@2.4.3: {} safer-buffer@2.1.2: {} @@ -20500,6 +20754,10 @@ snapshots: dependencies: atomic-sleep: 1.0.0 + sonic-boom@4.1.0: + dependencies: + atomic-sleep: 1.0.0 + sort-css-media-queries@2.1.0: {} sort-css-media-queries@2.2.0: {} @@ -20890,6 +21148,10 @@ snapshots: dependencies: real-require: 0.2.0 + thread-stream@3.1.0: + dependencies: + real-require: 0.2.0 + through@2.3.8: {} thunky@1.1.0: {} @@ -21803,6 +22065,8 @@ snapshots: yaml@2.4.1: {} + yaml@2.5.1: {} + yargs-parser@18.1.3: dependencies: camelcase: 5.3.1 From 74801f5f16dff3e49605306572c2c49c5d119528 Mon Sep 17 00:00:00 2001 From: Nicola Bovolato Date: Thu, 19 Sep 2024 14:57:33 +0200 Subject: [PATCH 2/4] feat(@basica/fastify)!: default ajv.customOptions.removeAdditional to "failing" --- packages/basica/plugins/fastify/src/config.ts | 2 +- packages/basica/plugins/fastify/src/entrypoint.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basica/plugins/fastify/src/config.ts b/packages/basica/plugins/fastify/src/config.ts index 0befd0f..bf3d7f5 100644 --- a/packages/basica/plugins/fastify/src/config.ts +++ b/packages/basica/plugins/fastify/src/config.ts @@ -10,7 +10,7 @@ export type FastifyRuntimeConfig = Required< /** * `ignoreTrailingSlash` is `true` by default * - * `ajv.customOptions.removeAdditional` is `"all"` by default + * `ajv.customOptions.removeAdditional` is `"failing"` by default * @see {@link FastifyServerOptions} * */ export type FastifyConfig = FastifyServerOptions & diff --git a/packages/basica/plugins/fastify/src/entrypoint.ts b/packages/basica/plugins/fastify/src/entrypoint.ts index 85fbb3d..7dd8675 100644 --- a/packages/basica/plugins/fastify/src/entrypoint.ts +++ b/packages/basica/plugins/fastify/src/entrypoint.ts @@ -21,7 +21,7 @@ export class FastifyEntrypoint implements IEntrypoint { }), ajv: { customOptions: { - removeAdditional: "all", + removeAdditional: "failing", }, }, ignoreTrailingSlash: true, From a503593b812ce98d8cedc0facab2eb2970a735b7 Mon Sep 17 00:00:00 2001 From: Nicola Bovolato Date: Thu, 19 Sep 2024 15:15:53 +0200 Subject: [PATCH 3/4] chore: bump fastify version --- .../crud/basica-fastify/package.json | 4 +- packages/benchmarks/crud/fastify/package.json | 4 +- .../benchmarks/crud/fastify/src/routes.ts | 2 +- .../http/basica-fastify/package.json | 2 +- packages/benchmarks/http/fastify/package.json | 2 +- packages/examples/crud/package.json | 4 +- packages/examples/telemetry/svc1/package.json | 4 +- ...instrumentation.ts => instrumentation.mts} | 0 packages/examples/telemetry/svc2/package.json | 4 +- pnpm-lock.yaml | 48 +++++++++---------- 10 files changed, 37 insertions(+), 37 deletions(-) rename packages/examples/telemetry/svc1/src/{instrumentation.ts => instrumentation.mts} (100%) diff --git a/packages/benchmarks/crud/basica-fastify/package.json b/packages/benchmarks/crud/basica-fastify/package.json index 8f3a13c..5427a04 100644 --- a/packages/benchmarks/crud/basica-fastify/package.json +++ b/packages/benchmarks/crud/basica-fastify/package.json @@ -19,9 +19,9 @@ "@basica/fastify": "workspace:^0.0.4", "@basica/kysely": "workspace:^", "@basica/pg": "workspace:^", - "@fastify/type-provider-typebox": "^4.0.0", + "@fastify/type-provider-typebox": "^5.0.0", "@sinclair/typebox": "^0.32.16", - "fastify": "^4.26.2", + "fastify": "^5.0.0", "kysely": "^0.27.2", "pg": "^8.11.3" }, diff --git a/packages/benchmarks/crud/fastify/package.json b/packages/benchmarks/crud/fastify/package.json index 80acfb3..71458ff 100644 --- a/packages/benchmarks/crud/fastify/package.json +++ b/packages/benchmarks/crud/fastify/package.json @@ -14,8 +14,8 @@ "lint": "tsc --noEmit && eslint \"{src,migrations}/**/*.ts\"" }, "dependencies": { - "@fastify/type-provider-typebox": "^4.0.0", - "fastify": "^4.26.2", + "@fastify/type-provider-typebox": "^5.0.0", + "fastify": "^5.0.0", "kysely": "^0.27.2", "pg": "^8.11.3" }, diff --git a/packages/benchmarks/crud/fastify/src/routes.ts b/packages/benchmarks/crud/fastify/src/routes.ts index cf9ef9f..6271c93 100644 --- a/packages/benchmarks/crud/fastify/src/routes.ts +++ b/packages/benchmarks/crud/fastify/src/routes.ts @@ -1,8 +1,8 @@ -import { TodoService } from "./service"; import { FastifyPluginAsyncTypebox, Type, } from "@fastify/type-provider-typebox"; +import { TodoService } from "./service"; const todo = Type.Object({ id: Type.String({ format: "uuid" }), diff --git a/packages/benchmarks/http/basica-fastify/package.json b/packages/benchmarks/http/basica-fastify/package.json index 5929fb3..33211f3 100644 --- a/packages/benchmarks/http/basica-fastify/package.json +++ b/packages/benchmarks/http/basica-fastify/package.json @@ -16,7 +16,7 @@ "dependencies": { "@basica/core": "workspace:^0.0.4", "@basica/fastify": "workspace:^0.0.4", - "fastify": "^4.26.2" + "fastify": "^5.0.0" }, "devDependencies": { "@basica/eslint-config": "workspace:^0.0.0", diff --git a/packages/benchmarks/http/fastify/package.json b/packages/benchmarks/http/fastify/package.json index 46ece0a..6520711 100644 --- a/packages/benchmarks/http/fastify/package.json +++ b/packages/benchmarks/http/fastify/package.json @@ -14,7 +14,7 @@ "lint": "tsc --noEmit && eslint \"src/**/*.ts\"" }, "dependencies": { - "fastify": "^4.26.2" + "fastify": "^5.0.0" }, "devDependencies": { "@basica/eslint-config": "workspace:^0.0.0", diff --git a/packages/examples/crud/package.json b/packages/examples/crud/package.json index 461a98e..c7d1242 100644 --- a/packages/examples/crud/package.json +++ b/packages/examples/crud/package.json @@ -23,9 +23,9 @@ "@basica/fastify": "workspace:^0.0.4", "@basica/kysely": "workspace:^0.0.4", "@basica/pg": "workspace:^0.0.4", - "@fastify/type-provider-typebox": "^4.0.0", + "@fastify/type-provider-typebox": "^5.0.0", "@sinclair/typebox": "^0.32.16", - "fastify": "^4.26.2", + "fastify": "^5.0.0", "kysely": "^0.27.2", "pg": "^8.11.3" }, diff --git a/packages/examples/telemetry/svc1/package.json b/packages/examples/telemetry/svc1/package.json index b9026c8..72c73e0 100644 --- a/packages/examples/telemetry/svc1/package.json +++ b/packages/examples/telemetry/svc1/package.json @@ -9,7 +9,7 @@ }, "scripts": { "start": "node --require ./dist/instrumentation.js dist/index.js", - "dev": "HTTP_PORT=8080 SVC2_URL=http://127.0.0.0:8081 tsx watch --require ./src/instrumentation.ts --inspect src/index.ts | pino-pretty -c -t", + "dev": "HTTP_PORT=8080 SVC2_URL=http://127.0.0.0:8081 tsx watch --require tsx/cjs --require ./src/instrumentation.mts --inspect src/index.ts | pino-pretty -c -t", "build": "tsup-node src/index.ts src/instrumentation.ts", "lint": "tsc --noEmit && eslint \"src/**/*.ts\"" }, @@ -22,7 +22,7 @@ "@opentelemetry/exporter-prometheus": "^0.49.1", "@opentelemetry/exporter-trace-otlp-grpc": "^0.49.1", "@sinclair/typebox": "^0.32.16", - "fastify": "^4.26.2", + "fastify": "^5.0.0", "opentelemetry-instrumentation-fetch-node": "^1.1.2" }, "devDependencies": { diff --git a/packages/examples/telemetry/svc1/src/instrumentation.ts b/packages/examples/telemetry/svc1/src/instrumentation.mts similarity index 100% rename from packages/examples/telemetry/svc1/src/instrumentation.ts rename to packages/examples/telemetry/svc1/src/instrumentation.mts diff --git a/packages/examples/telemetry/svc2/package.json b/packages/examples/telemetry/svc2/package.json index e72b4d6..5facc19 100644 --- a/packages/examples/telemetry/svc2/package.json +++ b/packages/examples/telemetry/svc2/package.json @@ -9,7 +9,7 @@ }, "scripts": { "start": "node --require ./dist/instrumentation.js dist/index.js", - "dev": "HTTP_PORT=8081 tsx watch --require ./src/instrumentation.ts --inspect src/index.ts | pino-pretty -c -t", + "dev": "HTTP_PORT=8081 tsx watch --require tsx/cjs --require ./src/instrumentation.ts --inspect src/index.ts | pino-pretty -c -t", "build": "tsup-node src/index.ts src/instrumentation.ts", "lint": "tsc --noEmit && eslint \"src/**/*.ts\"" }, @@ -22,7 +22,7 @@ "@opentelemetry/exporter-prometheus": "^0.49.1", "@opentelemetry/exporter-trace-otlp-grpc": "^0.49.1", "@sinclair/typebox": "^0.32.16", - "fastify": "^4.26.2" + "fastify": "^5.0.0" }, "devDependencies": { "@basica/eslint-config": "workspace:^0.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2e15d13..6db9931 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -616,14 +616,14 @@ importers: specifier: workspace:^ version: link:../../../basica/plugins/pg '@fastify/type-provider-typebox': - specifier: ^4.0.0 - version: 4.0.0(@sinclair/typebox@0.32.20) + specifier: ^5.0.0 + version: 5.0.0(@sinclair/typebox@0.32.20) '@sinclair/typebox': specifier: ^0.32.16 version: 0.32.20 fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 kysely: specifier: ^0.27.2 version: 0.27.3 @@ -662,11 +662,11 @@ importers: packages/benchmarks/crud/fastify: dependencies: '@fastify/type-provider-typebox': - specifier: ^4.0.0 - version: 4.0.0(@sinclair/typebox@0.32.20) + specifier: ^5.0.0 + version: 5.0.0(@sinclair/typebox@0.32.20) fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 kysely: specifier: ^0.27.2 version: 0.27.3 @@ -875,8 +875,8 @@ importers: specifier: workspace:^0.0.4 version: link:../../../basica/plugins/fastify fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 devDependencies: '@basica/eslint-config': specifier: workspace:^0.0.0 @@ -906,8 +906,8 @@ importers: packages/benchmarks/http/fastify: dependencies: fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 devDependencies: '@basica/eslint-config': specifier: workspace:^0.0.0 @@ -1105,14 +1105,14 @@ importers: specifier: workspace:^0.0.4 version: link:../../basica/plugins/pg '@fastify/type-provider-typebox': - specifier: ^4.0.0 - version: 4.0.0(@sinclair/typebox@0.32.20) + specifier: ^5.0.0 + version: 5.0.0(@sinclair/typebox@0.32.20) '@sinclair/typebox': specifier: ^0.32.16 version: 0.32.20 fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 kysely: specifier: ^0.27.2 version: 0.27.3 @@ -1187,8 +1187,8 @@ importers: specifier: ^0.32.16 version: 0.32.20 fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 opentelemetry-instrumentation-fetch-node: specifier: ^1.1.2 version: 1.1.2 @@ -1245,8 +1245,8 @@ importers: specifier: ^0.32.16 version: 0.32.20 fastify: - specifier: ^4.26.2 - version: 4.26.2 + specifier: ^5.0.0 + version: 5.0.0 devDependencies: '@basica/eslint-config': specifier: workspace:^0.0.0 @@ -2740,10 +2740,10 @@ packages: '@fastify/swagger@9.0.0': resolution: {integrity: sha512-E7TQbBCbhvS2djGLxJ7t2OFbhc2F+KCsOZCNhh6xQIlJxq9H4ZR5KuLKG+vn6COVqkLxRVUOZ9qtbbzdf5Jfqw==} - '@fastify/type-provider-typebox@4.0.0': - resolution: {integrity: sha512-kTlN0saC/+xhcQPyBjb3YONQAMjiD/EHlCRjQjsr5E3NFjS5K8ZX5LGzXYDRjSa+sV4y8gTL5Q7FlObePv4iTA==} + '@fastify/type-provider-typebox@5.0.0': + resolution: {integrity: sha512-E6D31dfF0l7wLwUji0DIoHlaHzyUCTJV4K0FP+bdibuEj+YVh8QGhwH9MqYi+FoTZRTu+bXaDs+W9kdMImt+Bw==} peerDependencies: - '@sinclair/typebox': '>=0.26 <=0.32' + '@sinclair/typebox': '>=0.26 <=0.33' '@grpc/grpc-js@1.10.4': resolution: {integrity: sha512-MqBisuxTkYvPFnEiu+dag3xG/NBUDzSbAFAWlzfkGnQkjVZ6by3h4atbBc+Ikqup1z5BfB4BN18gKWR1YyppNw==} @@ -12732,7 +12732,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@fastify/type-provider-typebox@4.0.0(@sinclair/typebox@0.32.20)': + '@fastify/type-provider-typebox@5.0.0(@sinclair/typebox@0.32.20)': dependencies: '@sinclair/typebox': 0.32.20 From 571f738b8eff945c0868671988c3f242b11248e5 Mon Sep 17 00:00:00 2001 From: Nicola Bovolato Date: Thu, 19 Sep 2024 18:54:37 +0200 Subject: [PATCH 4/4] fix: ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bf7869..7c0c907 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,4 +16,4 @@ jobs: - uses: ./.github/actions/base - run: pnpm build - run: pnpm lint - - run: pnpm run test --concurrency=2 + - run: pnpm run test --concurrency=1