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
seems like right now everything is imported, would it be possible to make a more fine grained build? I import only a few validators and yet the build contains all default messages and a lot of other stuff I don't need.
Would be nice split the project into smaller packages on a single file basis, especially for browser usage this would be great.
Cheers
The text was updated successfully, but these errors were encountered:
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
Hi,
seems like right now everything is imported, would it be possible to make a more fine grained build? I import only a few validators and yet the build contains all default messages and a lot of other stuff I don't need.
Would be nice split the project into smaller packages on a single file basis, especially for browser usage this would be great.
Cheers
The text was updated successfully, but these errors were encountered: