github jspsych/jsPsych jspsych@7.1.0

latest releases: @jspsych/plugin-visual-search-circle@1.2.1, @jspsych/plugin-visual-search-circle@1.2.0, @jspsych/plugin-webgazer-validate@1.0.3...
2 years ago

Minor Changes

  • #2350 c81b5007 Thanks @jodeleeuw! - Added microphone related features to the pluginAPI module: initializeMicrophoneRecorder() and getMicrophoneRecorder(). These allow sharing of the MediaRecorder object attached to the microphone's MediaStream across trials.

  • #2245 1216ace2 Thanks @bjoluc! - Throw errors if trial type parameters are strings, deprecated jsPsych functions are called, or the global jsPsych variable is used without assigning a JsPsych instance first (#2217)

  • #2287 522aa2cd Thanks @jodeleeuw! - Added randomInt(lower, upper), sampleBernoulli(p), sampleNormal(mean, std), sampleExponential(rate), and sampleExGaussian(mean, std, rate, positive=false) to jsPsych.randomization.

  • #2287 522aa2cd Thanks @jodeleeuw! - Added the ability to run the experiment in simulation mode using jsPsych.simulate(). See the simulation mode documentation for information about how to get started.

  • #2287 522aa2cd Thanks @jodeleeuw! - Added methods to assist with simulation (e.g., pressKey for dispatching a keyboard event and clickTarget for dispatching a click event) to the PluginAPI module.

  • #2209 45fb3ebb Thanks @jodeleeuw! - jsPsych.endExperiment() has a new, optional second parameter for saving data. Passing in an object of key-value pairs will store the pairs in the data for the final trial of the experiment.

  • #2287 522aa2cd Thanks @jodeleeuw! - Added several functions to the pluginAPI module in order to support the new simulation feature.

Patch Changes

  • #2287 522aa2cd Thanks @jodeleeuw! - The weights argument for randomization.sampleWithReplacement() is now explicitly marked as optional in TypeScript. This has no impact on usage, as the implementation was already treating this argument as optional.

Don't miss a new jsPsych release

NewReleases is sending notifications on new releases.