diff --git a/.changeset/y-partyserver-cjs-build.md b/.changeset/y-partyserver-cjs-build.md deleted file mode 100644 index 4e85294f..00000000 --- a/.changeset/y-partyserver-cjs-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"y-partyserver": patch ---- - -Add CJS build output alongside ESM. The package now ships both `.js` (ESM) and `.cjs` (CJS) files with corresponding `.d.ts` and `.d.cts` type declarations. diff --git a/fixtures/tiptap-yjs/package.json b/fixtures/tiptap-yjs/package.json index c35d796d..94343f92 100644 --- a/fixtures/tiptap-yjs/package.json +++ b/fixtures/tiptap-yjs/package.json @@ -15,7 +15,7 @@ "react": "^19.2.4", "react-dom": "^19.2.4", "tailwindcss": "^4.2.1", - "y-partyserver": "^2.1.1" + "y-partyserver": "^2.1.2" }, "devDependencies": { "@types/react": "^19.2.14", diff --git a/package-lock.json b/package-lock.json index 2b9f4686..6fddcfe9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -187,7 +187,7 @@ "react": "^19.2.4", "react-dom": "^19.2.4", "tailwindcss": "^4.2.1", - "y-partyserver": "^2.1.1" + "y-partyserver": "^2.1.2" }, "devDependencies": { "@types/react": "^19.2.14", @@ -12688,7 +12688,7 @@ } }, "packages/y-partyserver": { - "version": "2.1.1", + "version": "2.1.2", "license": "ISC", "dependencies": { "lib0": "^0.2.117", diff --git a/packages/y-partyserver/CHANGELOG.md b/packages/y-partyserver/CHANGELOG.md index 7dbe9fdd..9b8d614f 100644 --- a/packages/y-partyserver/CHANGELOG.md +++ b/packages/y-partyserver/CHANGELOG.md @@ -1,5 +1,11 @@ # y-partyserver +## 2.1.2 + +### Patch Changes + +- [#347](https://github.com/cloudflare/partykit/pull/347) [`0171a8b`](https://github.com/cloudflare/partykit/commit/0171a8b7a43084d3dc1a949a189dbb57227c877a) Thanks [@threepointone](https://github.com/threepointone)! - Add CJS build output alongside ESM. The package now ships both `.js` (ESM) and `.cjs` (CJS) files with corresponding `.d.ts` and `.d.cts` type declarations. + ## 2.1.1 ### Patch Changes @@ -13,6 +19,7 @@ - [#341](https://github.com/cloudflare/partykit/pull/341) [`e7f4b51`](https://github.com/cloudflare/partykit/commit/e7f4b51198904273befb1d39478840c628f6e2b1) Thanks [@threepointone](https://github.com/threepointone)! - Fix Yjs hibernation support and awareness propagation **Server:** + - Replace in-memory `WSSharedDoc.conns` Map with `connection.setState()` and `getConnections()` so connection tracking survives Durable Object hibernation - Move event handler registration from `WSSharedDoc` constructor into `onStart()` to use `getConnections()` for broadcasting - Disable awareness protocol's built-in `_checkInterval` in `WSSharedDoc` constructor to prevent timers from defeating hibernation @@ -22,6 +29,7 @@ - Widen `onLoad()` return type to `Promise` to allow seeding the document from a returned YDoc **Provider:** + - Switch awareness event listener from `"update"` to `"change"` so clock-only heartbeat renewals do not produce network traffic (allows DO hibernation during idle sessions) - Disable awareness protocol's built-in `_checkInterval` on the client to stop 15-second clock renewals and 30-second peer timeout removal - Remove provider's own `_checkInterval` liveness timer (was coupled to the awareness heartbeat) @@ -356,12 +364,14 @@ ### Patch Changes - [`528adea`](https://github.com/threepointone/partyserver/commit/528adeaced6dce6e888d2f54cc75c3569bf2c277) Thanks [@threepointone](https://github.com/threepointone)! - some fixes and tweaks + - getServerByName was throwing on all requests - `Env` is now an optional arg when defining `Server` - `y-partyserver/provider` can now take an optional `prefix` arg to use a custom url to connect - `routePartyKitRequest`/`getServerByName` now accepts `jurisdiction` bonus: + - added a bunch of fixtures - added stubs for docs diff --git a/packages/y-partyserver/package.json b/packages/y-partyserver/package.json index dbe67c83..824c8a2d 100644 --- a/packages/y-partyserver/package.json +++ b/packages/y-partyserver/package.json @@ -1,6 +1,6 @@ { "name": "y-partyserver", - "version": "2.1.1", + "version": "2.1.2", "description": "", "keywords": [ "collaboration",