You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constraints and transformers are registered in a single window.Svaroh object - Svaroh.constraints and Svaroh.transformers - instead of one global per class name.
Every former global name is kept as an alias, and a class defined only in the global scope is still found, so custom constraints and custom data transformers written against the old globals keep working unchanged. New ones can be registered in the namespace instead:
The fix is in the svaroh/jsformvalidator-bundle package on main. It is not backported to fp/jsformvalidator-bundle, which stays on its 1.x line, so upgrading to the new package is what picks it up.
Activity
feat(js): register constraints and transformers in a Svaroh namespace
66Ton99 commentedon Aug 24, 2026
Fixed in Svaroh/JsFormValidatorBundle, the new home of this bundle, by PR #19.
Constraints and transformers are registered in a single
window.Svarohobject -Svaroh.constraintsandSvaroh.transformers- instead of one global per class name.Every former global name is kept as an alias, and a class defined only in the global scope is still found, so custom constraints and custom data transformers written against the old globals keep working unchanged. New ones can be registered in the namespace instead:
The fix is in the
svaroh/jsformvalidator-bundlepackage onmain. It is not backported tofp/jsformvalidator-bundle, which stays on its 1.x line, so upgrading to the new package is what picks it up.