Releases: jspsych/jsPsych
[email protected]
Patch Changes
- #3495
1f535826a296556252d5c0c8da5cb6aaa8fec656
Thanks @jadeddelta! - add a defaultmimeType
of"video/webm" to
initializeCameraRecorder()`
@jspsych/[email protected]
Major Changes
-
#3554
c5ccbd35786c9d9f92d3f3806d6d3900e7b6f8ab
Thanks @becky-gilbert! - This release updates the SurveyJS version from 1.9.138 to 2.2.0. See the SurveyJS release notes and list of breaking changes for complete information. This update includes some bug fixes and improvements to SurveyJS that, while mostly minor, could change the appearance and functionality of existing jsPsychsurvey
trials in unexpected ways. It also includes major (breaking) changes to the SurveyJS form library API that could affect users. Please test your experiments carefully when updating this plugin, and consult the SurveyJS release notes and other documentation for specifics.- New SurveyJS features:
- New slider and range slider question types.
- Support for recursive question numbering.
- In dynamic panels, the new
templateQuestionTitleWidth
property allows you to align question titles and input fields. - In dropdown and tag box questions, you can now allow user-defined choice options.
- New loop and merge feature allows you to repeat a group of questions and combine the responses into one data object. It can be used to present a fixed set of questions, or dynamically repeat questions in response to the participant's responses.
- New
round()
andtrunc()
functions that can be used for calculations in expressions. - The
dateDiff()
function now includes hours and minutes. - In checkbox questions, you can create a custom exclusive option that clears all other selected choices in the same question when selected.
- Breaking changes that affect plugin users:
- Survey element titles no longer use HTML heading tags (
<h1>
-<h6>
). You may need to make changes if you use these tags as selectors for custom code/CSS. - Question numbering is disabled by default. If you use question numbering, you may need to add
showQuestionNumbers: true
to your top-level survey JSON, orsurvey.showQuestionNumbers = true;
to your survey function. - The default logo sizes in the survey header have changed from 200 px H x 300 px W, to 40 px H x "auto" W (preserving original aspect ratio).
- When multiple choice and checkbox items are presented in multiple columns, they are now laid out column-by-column instead of row-by-row.
- In image picker questions, the images were previously capped in size but now fill the available space. You can set an upper limit on the image height/width with the
maxImageWidth
andmaxImageHeight
parameters. - There have been a number of form library API members (properties, methods, events) that have been deprecated or removed.
- Survey element titles no longer use HTML heading tags (
- Developer-facing changes:
- SurveyJS UI package changed from survey-knockout-ui (removed in survey-core v2) to survey-js-ui (i.e. the Vanilla JS option).
- SurveyJS v1 -> v2 code migration changes.
- Hides a rollup build warning due to the use of top-level 'this' by SurveyJS.
- Adds a
resizeObserver
mock to fix broken tests caused by SurveyJS's dependence onresizeObserver
. - Creates a new survey container div on the display element to render into, to fix a rendering bug introduced by the SurveyJS update.
- Other plugin changes:
- Adds a minified version of the plugin's CSS file,
survey.min.css
, and loads it in the plugin example files. - In the docs and example files, (1) updates the
button_html
parameter value from a string to a function (for*-button-response
v2 migration), (2) removesshowQuestionNumbers: false
, as that is now the default. - Adds a new "slider_scale.html" example to the plugin's examples folder. Thanks @Max-Lovell!
- Adds a minified version of the plugin's CSS file,
- New SurveyJS features:
@jspsych/[email protected]
Minor Changes
- #3561
a25c47256c61a5fea67acf4a1fdf29024fe1ab21
Thanks @becky-gilbert! - Add the minified version of the survey plugin CSS file,survey.min.css
, to the dist archive.
@jspsych/[email protected]
Patch Changes
- #2991
5ab4cc7a0f8750735b88e87df3bb692f140b3c53
Thanks @bbonf! - uses mimetype of audio recorded for playback instead of defaulting to webm
[email protected]
Patch Changes
- #3484
e710cb01e8ab2f992d0be902016e3e6540197f67
Thanks @jadeddelta! - Patches some edge cases forgetCitations
and the build process that reads CITATION.CFF files to include citation info
@jspsych/[email protected]
Patch Changes
-
#3488
64a01292c350b5f6fd9f3f2e0dad5124262d53c9
Thanks @jodeleeuw! - Replaces the dependency oncanvas
in@jspsych/config
withjest-canvas-mock
. -
#3484
e710cb01e8ab2f992d0be902016e3e6540197f67
Thanks @jadeddelta! - Patches some edge cases forgetCitations
and the build process that reads CITATION.CFF files to include citation info
@jspsych/[email protected]
Patch Changes
- #3486
ad1d854f43c1e25ba988a3aa2a23a8ab22be3535
Thanks @jadeddelta! - remove DOM clearing after each individual test, fixes issues with testing in other repositories
[email protected]
Minor Changes
- #3385
3948fdc0ac176584fe4b8fe0b9cca5ed6e8b3afc
Thanks @cherriechang! - Added citations property to info field of all plugins/extensions in two citation formats (apa, bibtex); added getCitations() as function in jsPsych package allowing user to generate citations by passing an array of plugins/extensions by name as first input and citation format as string as second input; changed template of plugins/extensions to contain citations field by default; citations for each plugin/extension are automatically generated from .cff file (if any) at its folder's root during build process; getCitations() prints out citations in the form of a string separating each citation with newline character, and always prints the jsPsych library citation first.
Patch Changes
-
#3477
d8653b076008807b382f002ae0215c887ad6db13
Thanks @rkilpadi! - Add informative error message when a trial is missing thetype
parameter -
#3479
2f8413970e06ef23dd0dd03059e2f88da396136b
Thanks @alexrockhill! - Modify import of seedrandom to fix build issue with some configurations of webpack
@jspsych/[email protected]
Minor Changes
- #3385
3948fdc0ac176584fe4b8fe0b9cca5ed6e8b3afc
Thanks @cherriechang! - Added citations property to info field of all plugins/extensions in two citation formats (apa, bibtex); added getCitations() as function in jsPsych package allowing user to generate citations by passing an array of plugins/extensions by name as first input and citation format as string as second input; changed template of plugins/extensions to contain citations field by default; citations for each plugin/extension are automatically generated from .cff file (if any) at its folder's root during build process; getCitations() prints out citations in the form of a string separating each citation with newline character, and always prints the jsPsych library citation first.
@jspsych/[email protected]
Minor Changes
- #3385
3948fdc0ac176584fe4b8fe0b9cca5ed6e8b3afc
Thanks @cherriechang! - Added citations property to info field of all plugins/extensions in two citation formats (apa, bibtex); added getCitations() as function in jsPsych package allowing user to generate citations by passing an array of plugins/extensions by name as first input and citation format as string as second input; changed template of plugins/extensions to contain citations field by default; citations for each plugin/extension are automatically generated from .cff file (if any) at its folder's root during build process; getCitations() prints out citations in the form of a string separating each citation with newline character, and always prints the jsPsych library citation first.