Description
First, I've read about #1803 where we should use tree shaking, and it's planned to move all validator to subpackages.
But I think IsPhoneNumber is a special case: it's pretty big, and this only validator requires the import for libphonenumber-js, 43kb gzipped.
I suggest moving it first.
Proposed solution
Deprecate IsPhoneNumber now (at least before next major), and suggest to replace it by the newly extracted package, and in next major, remove dependency to libphonenumber-js
Description
First, I've read about #1803 where we should use tree shaking, and it's planned to move all validator to subpackages.
But I think
IsPhoneNumberis a special case: it's pretty big, and this only validator requires the import forlibphonenumber-js, 43kb gzipped.I suggest moving it first.
Proposed solution
Deprecate
IsPhoneNumbernow (at least before next major), and suggest to replace it by the newly extracted package, and in next major, remove dependency tolibphonenumber-js