Patch Changes
-
#11344
f08e0c6Thanks @hntrl! - fix: apply [Symbol.hasInstance] method to all comparable properties using .isInstance()We have some internal schemas that rely on
z.instanceof(). This uses a strictinstanceofcheck which can conflict if there are multiple versions of core installed. This overrides the Symbol.hasInstance method to use the same logic as.isInstance()to compare objects at runtime.