Minor Changes
-
#2350
c81b5007
Thanks @jodeleeuw! - Added microphone related features to thepluginAPI
module:initializeMicrophoneRecorder()
andgetMicrophoneRecorder()
. These allow sharing of theMediaRecorder
object attached to the microphone'sMediaStream
across trials. -
#2245
1216ace2
Thanks @bjoluc! - Throw errors if trialtype
parameters are strings, deprecated jsPsych functions are called, or the globaljsPsych
variable is used without assigning a JsPsych instance first (#2217) -
#2287
522aa2cd
Thanks @jodeleeuw! - AddedrandomInt(lower, upper)
,sampleBernoulli(p)
,sampleNormal(mean, std)
,sampleExponential(rate)
, andsampleExGaussian(mean, std, rate, positive=false)
tojsPsych.randomization
. -
#2287
522aa2cd
Thanks @jodeleeuw! - Added the ability to run the experiment in simulation mode usingjsPsych.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 andclickTarget
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 thepluginAPI
module in order to support the new simulation feature.
Patch Changes
- #2287
522aa2cd
Thanks @jodeleeuw! - The weights argument forrandomization.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.