Skip to content

Commit 799f34a

Browse files
authored
build: vendor fastify-socket.io instead of patching it (#1795)
1 parent f95b923 commit 799f34a

6 files changed

Lines changed: 38 additions & 48 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"drizzle-orm": "0.45.2",
5757
"fastify": "5.11.2",
5858
"fastify-metrics": "13.2.1",
59-
"fastify-socket.io": "5.1.0",
59+
"fastify-plugin": "6.0.0",
6060
"got": "15.1.0",
6161
"graphql": "16.14.2",
6262
"http-proxy-agent": "9.1.0",

patches/fastify-socket.io.patch

Lines changed: 0 additions & 24 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 3 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ allowBuilds:
22
'@bufbuild/buf': true
33
'@confluentinc/kafka-javascript': true
44
esbuild: true
5-
fastify-socket.io: false
65

76
shellEmulator: true
87
engineStrict: true

routes/private/routes/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fastifySocketIO from 'fastify-socket.io';
21
import type { Server } from 'socket.io';
32
import t from 'typebox';
43

@@ -17,6 +16,7 @@ import { LimitAction } from '@app/lib/utils/rate-limit';
1716
import { requireLogin } from '@app/routes/hooks/pre-handler';
1817
import { rateLimit } from '@app/routes/hooks/rate-limit';
1918
import type { App } from '@app/routes/type.ts';
19+
import fastifySocketIO from '@app/vendor/fastify-socket.io/index.ts';
2020

2121
declare module 'fastify' {
2222
interface FastifyInstance {

vendor/fastify-socket.io/index.ts

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)