Skip to content

Accept Reveal.js 6 - #10

Merged
irinanazarova merged 1 commit into
mainfrom
accept-reveal-6
Oct 15, 2026
Merged

irinanazarova merged 1 commit into
mainfrom
accept-reveal-6

Conversation

@irinanazarova

Copy link
Copy Markdown
Collaborator

Since Reveal.js 6 came out on September 10, npm install reveal.js installs 6. slide-quiz's peer range was ^4.0.0 || ^5.0.0, so npm install slide-quiz in such a deck fails with ERESOLVE.

Change

  • Peer range is now ^4.0.0 || ^5.0.0 || ^6.0.0. The plugin code doesn't change.
  • The README explains the one TypeScript difference: Reveal.js 6's RevealConfig type doesn't list plugin options, so an object literal with slideQuiz fails the excess property check. Passing the options through a variable type-checks.

Verification

The same deck ran in headless Chromium on Reveal.js 5.2.1 and 6.0.2, with a real anycable-go and a phone. On both versions:

  • The QR code and result bars are injected.
  • The phone shows the question after slidechanged.
  • A vote reaches the slide.
  • fragmentshown and fragmenthidden toggle the correct answer.
  • The phone returns to Waiting on a regular slide.
  • destroy() removes everything it injected.

There were no page or console errors on either version.

I also packed the package and installed it into a fresh Reveal.js 6 deck:

  • npm installs it without a conflict.
  • vite build succeeds.
  • tsc passes with the variable pattern from the README.

npm test (155), the typecheck and the build pass.

After merge: release 0.7.3, then let create-slide-quiz install the latest Reveal.js again.

The peer range was ^4 || ^5, so installing slide-quiz into a deck on
Reveal.js 6 (the latest since September 10) failed with ERESOLVE. The
plugin calls getConfig, getRevealElement, on and off, which Reveal.js 6
keeps, and it works there unchanged: question, vote, correct-answer
fragment, leaving the slide and destroy all behave as on 5.

Reveal.js 6 ships its own RevealConfig type without plugin options, so a
TypeScript object literal with slideQuiz fails the excess property
check. The README shows passing the options through a variable.
@irinanazarova
irinanazarova merged commit d6244f3 into main Oct 15, 2026
2 checks passed
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