Version Packages - #3697
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
5 times, most recently
from
July 22, 2026 15:54
ae35988 to
5005940
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
July 26, 2026 13:01
5005940 to
f83140f
Compare
jodeleeuw
approved these changes
Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
jspsych@8.3.0
Minor Changes
#3708
a69d7ad7aca8a0b0d97c5893ab09a368bd9dda25Thanks @jodeleeuw! - Added a CSS style to jspsych.css that renders<kbd>elements (or any element with class "jspsych-key") as a visual keycap. Wrapping a key name in<kbd>inside a trial renders it as a keycap, e.g.Press <kbd>space</kbd> to continue.#3707
a9f454ee58fda69173dbaa1ecfa4aa7797920031Thanks @jodeleeuw! - Added the ability to measure how long a response key was held down. ThegetKeyboardResponse()method of the keyboard plugin API gains an optionalwait_for_key_releaseoption; when true, thecallback_functionfires at key release instead of key press, and its payload includes anrt_key_durationfield (the press-to-release duration in milliseconds) alongside the usualkeyandrt. The five*-keyboard-responseplugins (html, image, audio, video, canvas) expose a matchingwait_for_key_releasetrial parameter (default false) and record the newrt_key_durationdata field. The release is matched to the press by the physical key (KeyboardEvent.code), so changing the shift state while holding a key (which changese.key) does not prevent the release from being detected, and thekeyreported to the callback is always the value from the original keydown event. If the window loses focus while a key is held (ablurevent), the browser stops delivering the eventualkeyup; in that case the pending release is resolved withrt_key_duration: null(the hold duration cannot be measured) and the held-key state is cleared so it does not leak into the next trial.@jspsych/plugin-audio-keyboard-response@2.2.0
Minor Changes
a9f454ee58fda69173dbaa1ecfa4aa7797920031Thanks @jodeleeuw! - Added the ability to measure how long a response key was held down. ThegetKeyboardResponse()method of the keyboard plugin API gains an optionalwait_for_key_releaseoption; when true, thecallback_functionfires at key release instead of key press, and its payload includes anrt_key_durationfield (the press-to-release duration in milliseconds) alongside the usualkeyandrt. The five*-keyboard-responseplugins (html, image, audio, video, canvas) expose a matchingwait_for_key_releasetrial parameter (default false) and record the newrt_key_durationdata field. The release is matched to the press by the physical key (KeyboardEvent.code), so changing the shift state while holding a key (which changese.key) does not prevent the release from being detected, and thekeyreported to the callback is always the value from the original keydown event. If the window loses focus while a key is held (ablurevent), the browser stops delivering the eventualkeyup; in that case the pending release is resolved withrt_key_duration: null(the hold duration cannot be measured) and the held-key state is cleared so it does not leak into the next trial.@jspsych/plugin-canvas-keyboard-response@2.2.0
Minor Changes
a9f454ee58fda69173dbaa1ecfa4aa7797920031Thanks @jodeleeuw! - Added the ability to measure how long a response key was held down. ThegetKeyboardResponse()method of the keyboard plugin API gains an optionalwait_for_key_releaseoption; when true, thecallback_functionfires at key release instead of key press, and its payload includes anrt_key_durationfield (the press-to-release duration in milliseconds) alongside the usualkeyandrt. The five*-keyboard-responseplugins (html, image, audio, video, canvas) expose a matchingwait_for_key_releasetrial parameter (default false) and record the newrt_key_durationdata field. The release is matched to the press by the physical key (KeyboardEvent.code), so changing the shift state while holding a key (which changese.key) does not prevent the release from being detected, and thekeyreported to the callback is always the value from the original keydown event. If the window loses focus while a key is held (ablurevent), the browser stops delivering the eventualkeyup; in that case the pending release is resolved withrt_key_duration: null(the hold duration cannot be measured) and the held-key state is cleared so it does not leak into the next trial.@jspsych/plugin-html-keyboard-response@2.2.0
Minor Changes
a9f454ee58fda69173dbaa1ecfa4aa7797920031Thanks @jodeleeuw! - Added the ability to measure how long a response key was held down. ThegetKeyboardResponse()method of the keyboard plugin API gains an optionalwait_for_key_releaseoption; when true, thecallback_functionfires at key release instead of key press, and its payload includes anrt_key_durationfield (the press-to-release duration in milliseconds) alongside the usualkeyandrt. The five*-keyboard-responseplugins (html, image, audio, video, canvas) expose a matchingwait_for_key_releasetrial parameter (default false) and record the newrt_key_durationdata field. The release is matched to the press by the physical key (KeyboardEvent.code), so changing the shift state while holding a key (which changese.key) does not prevent the release from being detected, and thekeyreported to the callback is always the value from the original keydown event. If the window loses focus while a key is held (ablurevent), the browser stops delivering the eventualkeyup; in that case the pending release is resolved withrt_key_duration: null(the hold duration cannot be measured) and the held-key state is cleared so it does not leak into the next trial.@jspsych/plugin-image-keyboard-response@2.2.0
Minor Changes
a9f454ee58fda69173dbaa1ecfa4aa7797920031Thanks @jodeleeuw! - Added the ability to measure how long a response key was held down. ThegetKeyboardResponse()method of the keyboard plugin API gains an optionalwait_for_key_releaseoption; when true, thecallback_functionfires at key release instead of key press, and its payload includes anrt_key_durationfield (the press-to-release duration in milliseconds) alongside the usualkeyandrt. The five*-keyboard-responseplugins (html, image, audio, video, canvas) expose a matchingwait_for_key_releasetrial parameter (default false) and record the newrt_key_durationdata field. The release is matched to the press by the physical key (KeyboardEvent.code), so changing the shift state while holding a key (which changese.key) does not prevent the release from being detected, and thekeyreported to the callback is always the value from the original keydown event. If the window loses focus while a key is held (ablurevent), the browser stops delivering the eventualkeyup; in that case the pending release is resolved withrt_key_duration: null(the hold duration cannot be measured) and the held-key state is cleared so it does not leak into the next trial.@jspsych/plugin-video-keyboard-response@2.2.0
Minor Changes
a9f454ee58fda69173dbaa1ecfa4aa7797920031Thanks @jodeleeuw! - Added the ability to measure how long a response key was held down. ThegetKeyboardResponse()method of the keyboard plugin API gains an optionalwait_for_key_releaseoption; when true, thecallback_functionfires at key release instead of key press, and its payload includes anrt_key_durationfield (the press-to-release duration in milliseconds) alongside the usualkeyandrt. The five*-keyboard-responseplugins (html, image, audio, video, canvas) expose a matchingwait_for_key_releasetrial parameter (default false) and record the newrt_key_durationdata field. The release is matched to the press by the physical key (KeyboardEvent.code), so changing the shift state while holding a key (which changese.key) does not prevent the release from being detected, and thekeyreported to the callback is always the value from the original keydown event. If the window loses focus while a key is held (ablurevent), the browser stops delivering the eventualkeyup; in that case the pending release is resolved withrt_key_duration: null(the hold duration cannot be measured) and the held-key state is cleared so it does not leak into the next trial.@jspsych/test-utils@1.3.0
Minor Changes
f14e9784fd49f36ac9051c6d5cdbd7223f391a9bThanks @jodeleeuw! - ThekeyDown()andkeyUp()helpers accept an optional second argument that sets thecodeproperty (the physical key) on the dispatchedKeyboardEvent, in addition to the existingkeyargument. A newwindowBlur()helper dispatches ablurevent onwindowand flushes pending promises, for testing behavior that depends on the page losing focus.@jspsych/config@3.3.4
Patch Changes
972548ec4c71388919f39b701b515f1d5c2793d3Thanks @jodeleeuw! - Bump build-time dependencies to clear security advisories:esbuildto^0.25.0(dev-server CORS advisory),rollupto^4.59.0(path-traversal and DOM-clobbering advisories), androllup-plugin-esbuildto6.2.1. These are build-tooling dependencies, so there is no change to runtime behavior.