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
5 changes: 0 additions & 5 deletions .changeset/y-partyserver-cjs-build.md

This file was deleted.

2 changes: 1 addition & 1 deletion fixtures/tiptap-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions packages/y-partyserver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -22,6 +29,7 @@
- Widen `onLoad()` return type to `Promise<YDoc | void>` 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)
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/y-partyserver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "y-partyserver",
"version": "2.1.1",
"version": "2.1.2",
"description": "",
"keywords": [
"collaboration",
Expand Down