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