Skip to content

Commit d4760bb

Browse files
committed
chore: use rc version of hocuspocus
1 parent ab32e17 commit d4760bb

File tree

3 files changed

+42
-28
lines changed

3 files changed

+42
-28
lines changed

hocuspocus-server/package-lock.json

+33-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hocuspocus-server/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"@blocknote/core": "^0.25.1",
2222
"@blocknote/react": "^0.25.1",
2323
"@blocknote/server-util": "^0.25.0",
24-
"@hocuspocus/common": "2.15.2",
25-
"@hocuspocus/extension-sqlite": "^2.15.2",
26-
"@hocuspocus/server": "^2.15.2",
24+
"@hocuspocus/common": "3.0.6-rc.0",
25+
"@hocuspocus/extension-sqlite": "3.0.6-rc.0",
26+
"@hocuspocus/server": "3.0.6-rc.0",
2727
"@hono/node-server": "^1.0.8",
2828
"@hono/node-ws": "^1.0.8",
2929
"@tiptap/core": "2.11.5",

hocuspocus-server/src/rejectUnauthorized.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
type beforeSyncPayload,
3-
Extension
4-
} from "@hocuspocus/server";
1+
import { type beforeSyncPayload, Extension } from "@hocuspocus/server";
52
import * as syncProtocol from "y-protocols/sync";
63
import * as Y from "yjs";
74

@@ -15,7 +12,10 @@ import * as Y from "yjs";
1512
* - if the update is accepted, we do nothing
1613
*/
1714
export class RejectUnauthorized implements Extension {
18-
constructor(private readonly threadsMapKey: string, private readonly onReject?: (payload: beforeSyncPayload) => void) {}
15+
constructor(
16+
private readonly threadsMapKey: string,
17+
private readonly onReject?: (payload: beforeSyncPayload) => void
18+
) {}
1919
/**
2020
* This function protects against changes to the restricted type.
2121
* It does this by:
@@ -85,7 +85,7 @@ export class RejectUnauthorized implements Extension {
8585
);
8686

8787
if (didRollback) {
88-
this.onReject?.(data)
88+
this.onReject?.(data);
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)