Skip to content

Conversation

jadeddelta
Copy link
Collaborator

trials will now properly check if non-array parameters given are of the same type, throwing an error if not in order to give more helpful error message as opposed to some variation of some method being called on a mismatched type not existing. along with this, ParameterType.SELECT now properly checks if the value given is in the options field; plugin developers may now specify certain possible parameter values for a parameter removing the need for manual parameter input validation.

this PR depends on #3556, as the video-*-response plugins have a parameter type mismatch with their default values, causing their respective tests to fail.

Copy link

changeset-bot bot commented Jun 15, 2025

🦋 Changeset detected

Latest commit: 761ae37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
jspsych Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jadeddelta
Copy link
Collaborator Author

one thing that crossed my mind recently while reviewing this: would this constitute as a breaking change? seeing as though there might be certain fields (such as the ones in video-*-response that fail upon this. would it be better to rewrite this as a warn, and then say target v9 for having it error and be more strict?

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