Skip to content

docs: fix stale references to the jsPsych core multiplayer API - #70

Open
htsukamoto5 wants to merge 1 commit into
mainfrom
chore/fix-stale-core-api-references
Open

docs: fix stale references to the jsPsych core multiplayer API#70
htsukamoto5 wants to merge 1 commit into
mainfrom
chore/fix-stale-core-api-references

Conversation

@htsukamoto5

Copy link
Copy Markdown
Member

Two stale pointers to jsPsych#3694, found while verifying the core API against that PR's head today.

1. The vendored adapter-contract mirror pointed at a nonexistent file. All three adapters carry a local src/multiplayer-adapter.ts copy of the contract, whose header cites the core types as living at packages/jspsych/src/modules/plugin-api/MultiplayerAPI.ts. The real path on the PR head is packages/jspsych/src/modules/multiplayer/index.ts. That comment describes itself as "the single seam to re-verify once #3694 lands", so it is the one pointer in the repo that has to resolve.

2. The local adapter's 0.1.0 changelog entry showed the pre-namespace-migration pluginAPI.connect(new LocalAdapter()); the API is jsPsych.multiplayer.connect(...). This is a published changelog entry, so it is visible on npm.

While verifying, I also re-checked the interface shape and the composed operations against the PR head: MultiplayerAdapter is identical to the vendored mirrors, and update / wait behave as the READMEs and docs site describe (shallow own-slot merge then push, non-atomic against itself; wait is subscribe-based with replay-as-fast-path, rejects on a throwing predicate, and rejects with a typed MultiplayerTimeoutError). No other drift found — the docs site and package READMEs were already correct.

Comments and docs only. No behavior change, no interface change; prettier clean.

🤖 Generated with Claude Code

Two stale pointers to jsPsych#3694, verified against that PR head today.

The vendored `multiplayer-adapter.ts` mirror in all three adapters cited the
core types as living at `packages/jspsych/src/modules/plugin-api/MultiplayerAPI.ts`.
The real path is `packages/jspsych/src/modules/multiplayer/index.ts`. That
comment calls itself "the single seam to re-verify once #3694 lands", so it is
the one pointer that has to resolve.

The local adapter's 0.1.0 changelog entry showed the pre-namespace-migration
`pluginAPI.connect(...)` form; the API is `jsPsych.multiplayer.connect(...)`.

Comments and docs only — no behavior change, interface shape unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant