New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: VALIDATORS[option] is not a function #363
Comments
@JonasSchubert Looks related to #349, could you have a look? |
@fgreinacher will do so on the coming weekend. |
is it worth reverting the problematic implementation in the meantime so that a working patch version can be released? |
If it is urgent maybe. I'm on vacation and unfortunately without prober computer. Saturday is the earliest I can work on it |
I’ll have a look tomorrow (before leaving for vacation 😀) |
I think we can either check whether an validator exists here. E.g.: !isNil(value) && (!VALIDATORS[option] || !VALIDATORS[option](value)) Or (in my opinion better) we add the missing validators here. I think the missing validators are const VALIDATORS = {
assets: isArrayOf(
asset => isStringOrStringArray(asset) || (isPlainObject(asset) && isStringOrStringArray(asset.path))
),
milestones: isArrayOf(
milestone => isStringOrStringArray(milestone)
),
successComment: canBeDisabled(isNonEmptyString),
failTitle: canBeDisabled(isNonEmptyString),
failComment: canBeDisabled(isNonEmptyString),
labels: isNonEmptyString,
assignee: isNonEmptyString,
}; Or remove the generic validator check and do each validation separately. PS: thanks @fgreinacher for looking into it and sorry for the trouble |
🎉 This issue has been resolved in version 9.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This popped up today. Was working fine last week.
My release.config.js looks like
The text was updated successfully, but these errors were encountered: