fix(deps): update dependency class-validator to v0.14.2 #15058
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.14.1
->0.14.2
Release Notes
typestack/class-validator (class-validator)
v0.14.2
Compare Source
Fixed
forbidUnknownValues
did not default totrue
whenvalidatorOptions
was undefined. (#2196 by @cduff)ValidationMetadata.name
property to work correctly with the@IsOptional
decorator. (#2044 by @Clashsoft)@IsBase64
decorator. (#2549 by @aseyfpour)isBase64
function. (#2574 by @braaar)0.14.1 (2024-01-12)
Added
@IsBase64
decorator (#1845) , closes #1013@IsUUID
decorator (#1846) , closes #1497@IsPhoneNumber
decorator to use max dataset (#1857)Fixed
@IsIn
decorator (#1844) , closes #1693@IsNotEmptyObject
decorator correctly (#1555) , closes #1554Changed
libphonenumber-js
to^1.10.53
from^1.10.14
0.14.0 (2022-12-09)
Added
@IsTimeZone
decorator to check if given string is valid IANA time zone@IsISO4217CurrencyCode
decorator to check if the string is an ISO 4217 currency code@IsStrongPassword
decorator to check if given password matches specific complexity criteria@IsBase58
decorator to check if a string is base58 encoded@IsTaxId
decorator to check if a given string is a valid tax ID in a given locale@MinDate
and@MaxDate
decorators@IsEnum
decoratorFixed
@types/validator
as dependency@NestedValidation
@IsDateString
decoratorSymbol
as parameter in error message generation@IsAlphanumeric
decoratorChanged
forbidUnknownValues
option by defaultlibphonenumber-js
to^1.10.14
from^1.9.43
BREAKING CHANGES
forbidUnknownValues
option is enabled by defaultFrom this release the
forbidUnknownValues
is enabled by default. This is the desired behavior for majority ofuse-cases, but this change may break validation for some. The two scenarios that results in failed validation:
The old behavior can be restored via specifying
forbidUnknownValues: false
option when calling the validate functions.For more details see PR #1798 and #1422 (comment).
@NestedValidation
decorator correctly assigns validation errorsUntil now the errors from a nested validation in some cases were incorrectly assigned
to the parent instead of the child being validated. Now the validation errors are correctly assigned.
For more details see #679.
0.13.2 (2021-11-20)
Fixed
Array.isArray
in array checks frominstanceof
operatorChanged
libphonenumber-js
package updated to1.9.43
from1.9.7
validator
package updated to13.5.2
from13.5.2
0.13.1 (2021-01-14)
Added
ArrayUnique
decoratorFixed
IsUUID
decoratorValidationError.toString()
doesn't result in an error whenforbidNonWhitelisted
parameter was usedIsIn
decorator@types/validator
package is correctly installedinlineSources
option is enabled in tsconfig preventing various sourcemap errors when consuming the packageChanged
0.13.0 (2021-01-11)
Added
always
- allows setting global default foralways
option for decoratorsstrictGroups
- ignore decorators with at least one group, whenValidatorOptions.groups
is emptyFixed
isPostalCode
decorator (#634)IsDateString()
decorator now aliases theIsISO8601()
decorator (#672)Changed
0.12.2 (2020-04-23)
Fixed
tslib
frompeerDependencies
todependencies
(827eff1), closes #5880.12.1 (2020-04-18)
Fixed
0.12.0 (2020-04-18)
Fixed
constraints
property in ValidationError (#465) (84680ad), closes #309Changed
Added
BREAKING CHANGES
Validatorjs releases contain some breaking changes e.g.
IsMobileNumber
orIsHexColor
. Please check validatorjs CHANGELOGValidation functions was removed from
Validator
class to enable tree shaking.BEFORE:
AFTER:
IsNumberString decorator arguments changed to
@IsNumberString(ValidatorJS.IsNumericOptions, ValidationOptions)
.0.11.1 (2020-03-18)
Fixed
Added
0.11.0 (2019-11-01)
Fixed
Added
BREAKING CHANGES
0.10.2 (2019-10-14)
Fixed
Added
0.10.1 (2019-09-25)
Fixed
Added
skipUndefinedProperties
,skipNullProperties
options (#414) (76c948a), closes #3080.10.0 (2019-08-10)
Fixed
Added
IsISO31661Alpha3
andIsISO31661Alpha2
validators (#273) (55c57b3)IsDecimal
from validatorjs (#359) (b4c8e21)isPort
decorator (#282) (36684ec)ValidatePromise
decorator - resolve promise before validate (#369) (35ec04d)isNumberString
now accept validator.jsIsNumericOptions
as second parameter (#262)BREAKING CHANGES
isDateString
now check to match only entire ISO Date (#275) (5012464)IsCurrencyOptions
,IsURLOptions
,IsEmailOptions
,IsFQDNOptions
interfaces and replace with interfaces from@types/validator
0.9.1
Added
Fixed
0.9.0 [BREAKING CHANGE]
Added
IsNumberString
decorator, now they are allowed+
symbol, this is not allowed anymoreIsPhoneNumber
decorator has been added which uses the google-libphonenumber library to validate international phone numbers accuratelyFixed
IsURLOptions
to match underlying validator host list optionsMin
andMax
decorator will corectly show an inclusive error message when failingvalidationArguments.value
is not a string0.8.5
Fixed
ansicolor
package, because it's incompatible with IE0.8.4
Added
ValidatorOptions
now has aforbidUnknownValues
key to prevent unknown objects to pass validationfalse
but will be default totrue
after the 1.0 release0.8.3
Fixed
target
property is undefined when callingValidationError.toString()
0.8.2
Added
ValidationError.toString()
method for easier debuggingprintError
method to pretty-print errors in NodeJS or the browserFixed
ValidatorOptions
ValidationSchema
(theoptions
key now is optional)IsNumericString
toIsNumberString
in the READMEhost_whitelist
andhost_backlist
inIsURLOptions
0.8.1
Fixed
ValidatorOptions
0.8.0 [BREAKING CHANGE]
Added
updated validator.js from 7.0.0 to 9.2.0 (Check it's changelog for what has changed.)
This caused breaking change, if you used the
IsUrl
decorator to validatelocalhost
as a valid url, from now you must use therequire_tld: false
optionadded
@IsInstance
decorator andvalidator.isInstance(value, target)
method.changed
@IsNumber
decorator has been changed to@IsNumber(options: IsNumberOptions)
added option to strip unknown properties (
whitelist: true
)added option to throw error on unknown properties (
forbidNonWhitelisted: true
)added
@Allow
decorator to prevent stripping properties without other constraintFixed
@IsDateString
now it allow dates without fraction seconds to be set@IsDateString
now it allow dates without with timezones to be set@ValidateNested
correctly generates validation error on non object and non array values0.6.7
Fixed
@ValidateNested
when nested property is not defined and it throw an error (#59)0.6.5
Fixed
@IsUrl
,@IsEmail
and several other decorators0.6.4
Added
@IsMilitaryTime
decorator.0.6.3
Added
validateOrReject
method which rejects promise instead of returning array of errors in resolved result0.6.1
Added
@IsArray
decorator.0.6.0 [BREAKING CHANGE]
Added
@ValidateNested
on arrays: Validator now groups the validation errors by sub-object, rather than them all being grouped together. See #32 for a demonstration of the updated structure.@ValidateIf
decorator, see conditional validation in docs.0.5.0 [BREAKING CHANGE]
Added
async validations must be marked with
{ async: true }
option now.This is optional, but it helps to determine which decorators are async to prevent their execution in
validateSync
method.added
validateSync
method that performs non asynchronous validation and ignores validations that marked withasync: true
.there is a breaking change in
registerDecorator
method. Now it accepts options object.breaking change with
@ValidatorConstraint
decorator. Now it accepts option object instead of single name.0.4.1
Fixed
0.4.0 [BREAKING CHANGE]
Added
ValidatorInterface
has been renamed toValidatorConstraintInterface
validator.validate
ValidationError
. Now if it has nested errors it does not return them in a flat arrayFixed
0.3.0
Added
validator.ts
toclass-validator
.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.