Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/composition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@swmansion/smelter": "0.3.0",
"@types/node": "^22.13.16",
"@types/react": "^18.3.0",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"react": "^18.3.1",
"typescript": "^5.9.3"
},
Expand Down
3 changes: 2 additions & 1 deletion examples/multimodal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"@fishjam-cloud/js-server-sdk": "workspace:*",
"@google/genai": "^1.13.0",
"@grotto/logysia": "^0.1.6",
"@sinclair/typebox": "^0.34.33",
"bun": "^1.2.20",
"elysia": "latest"
},
"devDependencies": {
"@types/bun": "^1",
"bun-types": "latest",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"typescript": "^5.9.3"
},
"module": "src/index.js"
Expand Down
16 changes: 8 additions & 8 deletions examples/room-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
},
"author": "Fishjam Team",
"dependencies": {
"@fastify/cors": "^10.1.0",
"@fastify/cors": "^11.1.0",
"@fastify/env": "^5.0.2",
"@fishjam-cloud/js-server-sdk": "workspace:*",
"axios": "^1.7.9",
"fastify": "^5.2.1",
"axios": "^1.15.0",
"fastify": "^5.7.3",
"fastify-healthcheck": "^5.1.0",
"fluent-json-schema": "^5.0.0"
"fluent-json-schema": "^6.0.0"
},
"devDependencies": {
"@fastify/swagger": "^9.4.2",
"@fastify/swagger": "^9.7.0",
"@types/node": "^22.13.16",
"pino-pretty": "^13.0.0",
"tsx": "^4.19.3",
"typescript": "~5.8.2"
"pino-pretty": "^13.1.3",
"tsx": "^4.21.0",
"typescript": "~5.9.3"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
Expand Down
2 changes: 1 addition & 1 deletion examples/room-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const envToLogger = {
test: false,
};

export const fastify = Fastify({ logger: envToLogger.development, ignoreTrailingSlash: true });
export const fastify = Fastify({ logger: envToLogger.development, routerOptions: { ignoreTrailingSlash: true } });

async function setupServer() {
await fastify.register(cors, { origin: '*' });
Expand Down
1 change: 1 addition & 0 deletions examples/selective-subscription/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@elysiajs/cors": "^1.4.0",
"@fishjam-cloud/js-server-sdk": "workspace:*",
"@grotto/logysia": "^0.1.6",
"@sinclair/typebox": "^0.34.33",
"bun": "^1.2.20",
"elysia": "latest"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ import { Elysia } from 'elysia';
import { FishjamService } from '../service/fishjam';

export const notificationsController = (fishjam: FishjamService) =>
new Elysia().get('/notifications/stream', ({ set }) => {
set.headers = {
'Content-Type': 'text/event-stream',
'Cache-Control': 'no-cache',
Connection: 'keep-alive',
'Access-Control-Allow-Origin': '*',
};

return new ReadableStream({
new Elysia().get('/notifications/stream', () => {
const stream = new ReadableStream<string>({
start(controller) {
let isConnected = true;

Expand Down Expand Up @@ -43,4 +36,14 @@ export const notificationsController = (fishjam: FishjamService) =>
};
},
});

// Return a plain Response so the SSE headers are sent exactly as set here
return new Response(stream.pipeThrough(new TextEncoderStream()), {
headers: {
'Content-Type': 'text/event-stream',
'Cache-Control': 'no-cache',
Connection: 'keep-alive',
'Access-Control-Allow-Origin': '*',
},
});
});
2 changes: 1 addition & 1 deletion examples/selective-subscription/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"concurrently": "^9.2.1",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"typescript": "^5.9.3"
}
}
3 changes: 2 additions & 1 deletion examples/transcription/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"@fishjam-cloud/js-server-sdk": "workspace:*",
"@google/genai": "^1.13.0",
"@grotto/logysia": "^0.1.6",
"@sinclair/typebox": "^0.34.33",
"bun": "^1.2.20",
"elysia": "latest"
},
"devDependencies": {
"@types/bun": "^1",
"bun-types": "latest",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"typescript": "^5.9.3"
},
"module": "src/index.js"
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
],
"packageManager": "yarn@4.12.0",
"devDependencies": {
"@eslint/js": "^9.23.0",
"cspell": "^9.4.0",
"eslint": "^9.23.0",
"globals": "^16.0.0",
"@eslint/js": "^10.0.1",
"cspell": "^9.7.0",
"eslint": "^10.1.0",
"globals": "^17.4.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.5.3",
"typedoc": "^0.28.1",
"typedoc-material-theme": "^1.3.0",
"typescript": "^5.8.2",
"typescript-eslint": "^8.29.0"
"lint-staged": "^16.4.0",
"prettier": "^3.8.1",
"typedoc": "^0.28.18",
"typedoc-material-theme": "^1.4.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.2"
},
"scripts": {
"build": "yarn workspaces foreach -A --topological-dev run build",
Expand Down
4 changes: 2 additions & 2 deletions packages/composition-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"devDependencies": {
"@types/node": "^22",
"@types/react-is": "^18.3.0",
"eslint": "^9.33.0",
"prettier": "^3.6.2",
"eslint": "^10.1.0",
"prettier": "^3.8.1",
"tsup": "^8.5.1",
"vitest": "^3.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/composition-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"outDir": "dist"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.18.4",
"tsup": "^8.4.0"
"@openapitools/openapi-generator-cli": "^2.31.0",
"tsup": "^8.5.1"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions packages/composition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
"@fishjam-cloud/js-server-sdk": "workspace:*",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.1.9",
"eslint": "^9.33.0",
"prettier": "^3.6.2",
"eslint": "^10.1.0",
"prettier": "^3.8.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tsup": "^8.4.0",
"tsup": "^8.5.1",
"vitest": "^3.0.0"
},
"lint-staged": {
Expand Down
1 change: 0 additions & 1 deletion packages/composition/src/eventBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export interface CompositionEventBus {
}

declare global {
// eslint-disable-next-line no-var
var eventBus: CompositionEventBus;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/fishjam-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"outDir": "dist"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.18.4",
"tsup": "^8.4.0"
"@openapitools/openapi-generator-cli": "^2.31.0",
"tsup": "^8.5.1"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions packages/fishjam-proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"protobufjs": "^7.4.0"
},
"devDependencies": {
"ts-proto": "^2.7.0",
"tsup": "^8.4.0"
"ts-proto": "^2.11.6",
"tsup": "^8.5.1"
}
}
9 changes: 5 additions & 4 deletions packages/js-server-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"fishjam-proto"
],
"minify": false,
"removeNodeProtocol": false,
"format": [
"cjs",
"esm"
Expand All @@ -80,12 +81,12 @@
"@fishjam-cloud/composition-openapi": "workspace:*",
"@fishjam-cloud/fishjam-openapi": "workspace:*",
"@fishjam-cloud/fishjam-proto": "workspace:*",
"@openapitools/openapi-generator-cli": "^2.18.4",
"@openapitools/openapi-generator-cli": "^2.31.0",
"@types/node": "^22.13.16",
"@types/websocket": "^1.0.10",
"eslint": "^9.33.0",
"prettier": "^3.6.2",
"tsup": "^8.4.0",
"eslint": "^10.1.0",
"prettier": "^3.8.1",
"tsup": "^8.5.1",
"typed-emitter": "^2.1.0",
"vitest": "^3.0.0"
},
Expand Down
Loading
Loading