Skip to content

feature: Move IsPhoneNumber outside of this package #2682

Description

@alcalyn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: needs discussionIssues which needs discussion before implementation.type: featureIssues related to new features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions