Skip to content

Commit

Permalink
update to fastify v5 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesconix authored Jan 19, 2025
1 parent fc1d5c6 commit 85b1358
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 196 deletions.
8 changes: 8 additions & 0 deletions .changeset/hip-shrimps-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"pinorama-create-server-example": minor
"pinorama-fastify-example": minor
"pinorama-server": minor
"pinorama-studio": minor
---

update to fastify v5
6 changes: 3 additions & 3 deletions examples/create-server-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"clean": "rimraf node_modules"
},
"dependencies": {
"@fastify/cors": "^9.0.1",
"@fastify/one-line-logger": "^1.3.0",
"fastify": "^4.26.2",
"@fastify/cors": "^10.0.2",
"@fastify/one-line-logger": "^2.0.2",
"fastify": "^5.2.1",
"pinorama-server": "workspace:*",
"pinorama-transport": "workspace:*"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/fastify-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"clean": "rimraf node_modules"
},
"dependencies": {
"@fastify/cors": "^9.0.1",
"@fastify/one-line-logger": "^1.3.0",
"fastify": "^4.26.2",
"@fastify/cors": "^10.0.2",
"@fastify/one-line-logger": "^2.0.2",
"fastify": "^5.2.1",
"pinorama-presets": "workspace:*",
"pinorama-server": "workspace:*",
"pinorama-transport": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/pinorama-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@orama/orama": "^3.0.4",
"@orama/plugin-data-persistence": "3.0.4",
"change-case": "^5.4.4",
"fastify": "^4.26.2",
"fastify-plugin": "^4.5.1",
"fastify": "^5.2.1",
"fastify-plugin": "^5.0.1",
"pinorama-presets": "workspace:*",
"pinorama-types": "workspace:*"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/pinorama-server/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const fastifyPinoramaServer: FastifyPluginAsync<PinoramaServerOptions> = async (
}

function createServer(
pinoramaOptions?: FastifyRegisterOptions<PinoramaServerOptions>,
pinoramaOptions: FastifyRegisterOptions<PinoramaServerOptions>,
fastifyOptions?: FastifyServerOptions
): FastifyInstance {
const fastify = Fastify(fastifyOptions)
Expand All @@ -89,7 +89,7 @@ function createServer(
}

const plugin = fp(fastifyPinoramaServer, {
fastify: "4.x",
fastify: "5.x",
name: "fastify-pinorama-server"
})

Expand Down
8 changes: 4 additions & 4 deletions packages/pinorama-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"directory": "packages/pinorama-studio"
},
"dependencies": {
"@fastify/cors": "^9.0.1",
"@fastify/one-line-logger": "^1.4.0",
"@fastify/static": "^7.0.4",
"@fastify/cors": "^10.0.2",
"@fastify/one-line-logger": "^2.0.2",
"@fastify/static": "^8.0.4",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.1",
Expand All @@ -49,7 +49,7 @@
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"debounce": "^2.1.0",
"fastify": "^4.28.1",
"fastify": "^5.2.1",
"lucide-react": "^0.390.0",
"minimist": "^1.2.8",
"open": "^10.1.0",
Expand Down
Loading

0 comments on commit 85b1358

Please sign in to comment.