Skip to content

Commit

Permalink
update deps, use vite for one fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Feb 11, 2025
1 parent d0f2091 commit a240942
Show file tree
Hide file tree
Showing 32 changed files with 526 additions and 404 deletions.
9 changes: 9 additions & 0 deletions .changeset/chilly-dryers-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"y-partyserver": patch
"partyserver": patch
"hono-party": patch
"partysync": patch
"partysub": patch
---

update deps, use vite for one fixture
651 changes: 411 additions & 240 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions fixtures/blocknote-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"start": "wrangler dev"
},
"dependencies": {
"@blocknote/mantine": "^0.23.0",
"@blocknote/react": "^0.23.0",
"@tiptap/core": "^2.11.3",
"@types/react": "^19.0.7",
"@blocknote/mantine": "^0.23.4",
"@blocknote/react": "^0.23.4",
"@tiptap/core": "^2.11.5",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
Expand Down
3 changes: 1 addition & 2 deletions fixtures/chat/public/index.html → fixtures/chat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎈</text></svg>"
/>
<link rel="stylesheet" href="/dist/index.css" />
<title>PartyServer</title>
</head>
<body class="prose" style="padding: 20px">
<div id="root" />
<script src="/dist/index.js" type="module"></script>
<script src="/src/client/index.tsx" type="module"></script>
</body>
</html>
13 changes: 6 additions & 7 deletions fixtures/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
"name": "@partyserver/fixture-chat",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"start": "wrangler dev"
"start": "vite dev"
},
"dependencies": {
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"esbuild-plugin-tailwindcss": "^1.2.1",
"@tailwindcss/vite": "^4.0.6",
"partyserver": "workspace:*",
"partysocket": "^1.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^3.4.17",
"valibot": "^1.0.0-beta.14"
"tailwindcss": "^4.0.6",
"valibot": "^1.0.0-rc.0"
},
"devDependencies": {
"@types/react": "^19.0.7",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
}
}
11 changes: 0 additions & 11 deletions fixtures/chat/scripts/build.ts

This file was deleted.

6 changes: 0 additions & 6 deletions fixtures/chat/scripts/tsconfig.json

This file was deleted.

6 changes: 4 additions & 2 deletions fixtures/chat/src/client/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "tailwindcss/base";
@import "tailwindcss";

/* @import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import "tailwindcss/utilities"; */
12 changes: 6 additions & 6 deletions fixtures/chat/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ import { routePartykitRequest, Server } from "partyserver";

import type { Connection, WSMessage } from "partyserver";

type Env = {
Chat: DurableObjectNamespace<Chat>;
};
type Env = { Chat: DurableObjectNamespace<Chat> };

export class Chat extends Server {
static options = {
hibernate: true
};
static options = { hibernate: true };

onMessage(connection: Connection, message: WSMessage) {
console.log("Received a message:", message);
this.broadcast(message);
}
}

console.log("Hello from the server!");

export default {
async fetch(request: Request, env: Env): Promise<Response> {
console.log("Fetching the server!");
return (
(await routePartykitRequest(request, env)) ||
new Response("Not Found", { status: 404 })
Expand Down
13 changes: 0 additions & 13 deletions fixtures/chat/tailwind.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions fixtures/chat/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { cloudflare } from "@cloudflare/vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [cloudflare(), react(), tailwindcss()]
});
8 changes: 8 additions & 0 deletions fixtures/chat/wrangler.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "partyserver-fixture-chat",
"main": "src/server/index.ts",
"compatibility_date": "2024-04-19",
"assets": { "directory": "./public" },
"durable_objects": { "bindings": [{ "name": "Chat", "class_name": "Chat" }] },
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["Chat"] }]
}
18 changes: 0 additions & 18 deletions fixtures/chat/wrangler.toml

This file was deleted.

4 changes: 2 additions & 2 deletions fixtures/globe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "wrangler dev"
},
"dependencies": {
"@types/react": "^19.0.7",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"cobe": "^0.6.3",
"partyserver": "workspace:*",
Expand All @@ -15,6 +15,6 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250121.0"
"@cloudflare/workers-types": "^4.20250204.0"
}
}
4 changes: 2 additions & 2 deletions fixtures/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"start": "wrangler dev"
},
"dependencies": {
"hono": "^4.6.17",
"hono": "^4.7.0",
"hono-party": "workspace:*",
"partyserver": "workspace:*",
"partysocket": "^1.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/react": "^19.0.7",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
}
}
6 changes: 3 additions & 3 deletions fixtures/lexical-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"deploy": "wrangler deploy"
},
"dependencies": {
"@lexical/react": "^0.23.1",
"@types/react": "^19.0.7",
"@lexical/react": "^0.24.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"lexical": "^0.23.1",
"lexical": "^0.24.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
Expand Down
4 changes: 3 additions & 1 deletion fixtures/lexical-yjs/public/lexical.css
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@ button.action-button:disabled {
vertical-align: middle;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 70px;
font-size: 14px;
color: #777;
Expand Down Expand Up @@ -1309,6 +1310,7 @@ button.action-button:disabled {
vertical-align: middle;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 70px;
font-size: 14px;
color: #777;
Expand Down Expand Up @@ -3807,7 +3809,7 @@ body {
width: 2px;
height: 15px;
top: 6px;
start: 13px;
/* start: 13px; */
}
.PollNode__optionDelete:before {
transform: rotate(-45deg);
Expand Down
4 changes: 2 additions & 2 deletions fixtures/partytracks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"start": "wrangler dev"
},
"dependencies": {
"hono": "^4.6.17",
"hono": "^4.7.0",
"partytracks": "workspace:*"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250121.0"
"@cloudflare/workers-types": "^4.20250204.0"
}
}
16 changes: 8 additions & 8 deletions fixtures/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"start": "remix dev -c \"wrangler dev\""
},
"dependencies": {
"@remix-run/cloudflare": "^2.15.2",
"@remix-run/css-bundle": "^2.15.2",
"@remix-run/react": "^2.15.2",
"@remix-run/server-runtime": "^2.15.2",
"isbot": "^5.1.21",
"@remix-run/cloudflare": "^2.15.3",
"@remix-run/css-bundle": "^2.15.3",
"@remix-run/react": "^2.15.3",
"@remix-run/server-runtime": "^2.15.3",
"isbot": "^5.1.22",
"partysocket": "^1.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250121.0",
"@remix-run/dev": "^2.15.2",
"@types/react": "^19.0.7",
"@cloudflare/workers-types": "^4.20250204.0",
"@remix-run/dev": "^2.15.3",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
},
"engines": {
Expand Down
16 changes: 7 additions & 9 deletions fixtures/tiptap-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@
"start": "wrangler dev"
},
"dependencies": {
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.16",
"@tiptap/extension-collaboration": "^2.11.3",
"@tiptap/extension-collaboration-cursor": "^2.11.3",
"@tiptap/react": "^2.11.3",
"@tiptap/starter-kit": "^2.11.3",
"esbuild-plugin-tailwindcss": "^1.2.1",
"@tiptap/extension-collaboration": "^2.11.5",
"@tiptap/extension-collaboration-cursor": "^2.11.5",
"@tiptap/react": "^2.11.5",
"@tiptap/starter-kit": "^2.11.5",
"esbuild-plugin-tailwindcss": "^2.0.1",
"partyserver": "workspace:*",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^3.4.17",
"tailwindcss": "^4.0.6",
"y-partyserver": "workspace:*"
},
"devDependencies": {
"@types/react": "^19.0.7",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
}
}
6 changes: 4 additions & 2 deletions fixtures/tiptap-yjs/src/client/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "tailwindcss/base";
@import "tailwindcss";

/* @import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import "tailwindcss/utilities"; */
13 changes: 0 additions & 13 deletions fixtures/tiptap-yjs/tailwind.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion fixtures/tldraw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"tldraw": "^3.7.2"
},
"devDependencies": {
"@types/react": "^19.0.7",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
}
}
6 changes: 3 additions & 3 deletions fixtures/todo-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"start": "wrangler dev"
},
"dependencies": {
"@types/react": "^19.0.7",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"nanoid": "^5.0.9",
"partyserver": "workspace:*",
"partysocket": "^1.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"valibot": "^1.0.0-beta.14"
"valibot": "^1.0.0-rc.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250121.0"
"@cloudflare/workers-types": "^4.20250204.0"
}
}
16 changes: 8 additions & 8 deletions fixtures/video-echo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"start": "remix dev -c \"wrangler dev\""
},
"dependencies": {
"@remix-run/cloudflare": "^2.15.2",
"@remix-run/css-bundle": "^2.15.2",
"@remix-run/react": "^2.15.2",
"@remix-run/server-runtime": "^2.15.2",
"isbot": "^5.1.21",
"@remix-run/cloudflare": "^2.15.3",
"@remix-run/css-bundle": "^2.15.3",
"@remix-run/react": "^2.15.3",
"@remix-run/server-runtime": "^2.15.3",
"isbot": "^5.1.22",
"partysocket": "^1.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250121.0",
"@remix-run/dev": "^2.15.2",
"@types/react": "^19.0.7",
"@cloudflare/workers-types": "^4.20250204.0",
"@remix-run/dev": "^2.15.3",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
},
"engines": {
Expand Down
Loading

0 comments on commit a240942

Please sign in to comment.