Skip to content
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

fix: libphonenumber.js is loaded without using the IsMobilePhone decorator #247

Closed
websolutions-hamburg opened this issue Aug 7, 2018 · 2 comments · Fixed by #568
Closed
Labels
priority: high type: fix Issues describing a broken feature.

Comments

@websolutions-hamburg
Copy link

websolutions-hamburg commented Aug 7, 2018

The huge library libphonenumber.js is loaded, although I did not use the IsMobilePhone decorator.

Is it possible to load this library only if we use the decorator?

@NoNameProvided
Copy link
Member

Not in the current version but @HonoluluHenk has started to work in this in #258. When that is merged, this problem will be solved.

@NoNameProvided NoNameProvided added type: fix Issues describing a broken feature. priority: high labels Nov 4, 2018
vlapo added a commit that referenced this issue Apr 17, 2020
BREAKING CHANGE: 

Validation functions was removed from `Validator` class to enable tree shaking.

BEFORE:

    import {Validator} from "class-validator";

    const validator = new Validator();
    validator.isNotIn(value, possibleValues);
    validator.isBoolean(value);

AFTER:

    import {isNotIn, isBoolean} from "class-validator";

    isNotIn(value, possibleValues);
    isBoolean(value);

Closes #258, #248, #247, #212
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
@NoNameProvided NoNameProvided changed the title libphonenumber.js is loaded without using the IsMobilePhone decorator fix: libphonenumber.js is loaded without using the IsMobilePhone decorator Aug 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: high type: fix Issues describing a broken feature.
Development

Successfully merging a pull request may close this issue.

2 participants