Skip to content

Commit 98390aa

Browse files
committed
Rename Hocuspocus prev-provider alias to signal its test-only purpose
The npm alias was @hocuspocus/provider-prev; JSON can't carry a comment saying it exists solely to pin the previous major for the skew test. Renamed to @hocuspocus/provider-prev-test-only so the intent is on the key.
1 parent 761efb2 commit 98390aa

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/op-blocknote-hocuspocus/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/op-blocknote-hocuspocus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@eslint/js": "^9.35.0",
3535
"@eslint/json": "^1.2.0",
3636
"@hocuspocus/provider": "^4.2.0",
37-
"@hocuspocus/provider-prev": "npm:@hocuspocus/provider@^3",
37+
"@hocuspocus/provider-prev-test-only": "npm:@hocuspocus/provider@^3",
3838
"@stylistic/eslint-plugin": "^5.3.1",
3939
"@types/node": "^25.0.2",
4040
"eslint": "^9.35.0",

extensions/op-blocknote-hocuspocus/test/integration/provider-server-sync.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
22
import { Server } from "@hocuspocus/server";
33
import { HocuspocusProvider } from "@hocuspocus/provider";
4-
import { HocuspocusProvider as HocuspocusProviderPrev } from "@hocuspocus/provider-prev";
4+
import { HocuspocusProvider as HocuspocusProviderPrev } from "@hocuspocus/provider-prev-test-only";
55
import * as Y from "yjs";
66
import { ws } from "msw";
77
import { readFileSync } from "node:fs";
@@ -61,7 +61,7 @@ type ProviderConstructor = new (config: ProviderConfig) => ProviderInstance;
6161

6262
const providers = [
6363
{ label: `v${CURRENT_MAJOR} (current)`, pkg: "@hocuspocus/provider", major: CURRENT_MAJOR, Provider: HocuspocusProvider as unknown as ProviderConstructor },
64-
{ label: `v${PREVIOUS_MAJOR} (previous)`, pkg: "@hocuspocus/provider-prev", major: PREVIOUS_MAJOR, Provider: HocuspocusProviderPrev as unknown as ProviderConstructor },
64+
{ label: `v${PREVIOUS_MAJOR} (previous)`, pkg: "@hocuspocus/provider-prev-test-only", major: PREVIOUS_MAJOR, Provider: HocuspocusProviderPrev as unknown as ProviderConstructor },
6565
] as const;
6666

6767
let hocuspocus: Server;
@@ -88,7 +88,7 @@ it("provider matrix stays within Hocuspocus's one-major skew window", () => {
8888
}
8989
expect(
9090
CURRENT_MAJOR - PREVIOUS_MAJOR,
91-
"the matrix must stay exactly one major apart; bump the @hocuspocus/provider-prev alias in package.json",
91+
"the matrix must stay exactly one major apart; bump the @hocuspocus/provider-prev-test-only alias in package.json",
9292
).toBe(1);
9393
});
9494

0 commit comments

Comments
 (0)