All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Update dependencies to fix a potential security issue.
- Update dependencies to fix a potential security issue.
class-validator
must be at least at version 0.14.1
- All dependencies are now pinned.
- Don't fail build when uploading the coverage to Codecov fails.
- Added linting for
package.json
andpackage-lock.json
.
- Update dependencies to fix a potential security issue.
- Fix various typos.
IsNetworkPort
: Fixed issue where some valid values were rejected.
NotMatches
: Added new validator.
IsTimezone
: Removed because this was added toclass-validator
in 0.14.0.
IsNull
: Added new validator.
IsSet
,IsMap
,IsBigInt
,IsDayjs
,IsDuration
: Moved fromset
,map
,bigint
anddayjs
totype
directory, respectively. This is a non-breaking change for clients using the default exports.
IsDuration
: Allow negative durations. UseMinDuration
to check for negative values.
- Update dependencies to fix a potential security issue.
ArraySize
: Added new validator.MapSize
: Added new validator.SetSize
: Added new validator.
- Update dependencies and release first stable version.
IsDuration
: The duration object is required to be valid by default.
IsDuration
: Addedallow_invalid
option.IsNetworkPort
: Added new validator.MaxDuration
: Added new validator.MinDuration
: Added new validator.Nullable
: Added new validator.Optional
: Added new validator.
IsDayjs
: Replacedis_valid
option withallow_invalid
.dayjs
is now anoptionalDependency
instead of apeerDependency
- Most decorator options are now inlined and thus simpler to use and more readable in the generated documentation.
ArrayMonotonic
: Make the comparator/projection optional.FutureDayjs
Addedallow_invalid
,granularity
andinclusive
options.PastDayjs
Addedallow_invalid
,granularity
andinclusive
options.MaxDayjs
Addedallow_invalid
,granularity
andinclusive
options.MinDayjs
Addedallow_invalid
,granularity
andinclusive
options.- You can now import
dist/minimal
if you installed the package without optional dependencies.
IsAwsARN
: Added new validator.IsAwsRegion
: Added new validator.IsDuration
: Added new validator.
This release was unpublished due to a broken release bundle.
IsMonotonic
: Renamed toArrayMonotonic
to be consistent with the upstream nomenclature.
ArrayMonotonic
: Added an option to use a comparator instead of a projection function.FutureDate
: Added new validator.FutureDayjs
: Added new validator.IsBigInt
: Added new validator.IsMap
: Added new validator.IsSet
: Added new validator.IsTimezone
: Added new validator.MapContainsKeys
: Added new validator.MapContains
: Added new validator.MapMaxSize
: Added new validator.MapMinSize
: Added new validator.MapNotContainsKeys
: Added new validator.MapNotContains
: Added new validator.MapUniqueKeys
: Added new validator.MapUnique
: Added new validator.MaxBigInt
: Added new validator.MaxDayjs
: Added new validator.MinBigInt
: Added new validator.MinDayjs
: Added new validator.NegativeBigInt
: Added new validator.PastDate
: Added new validator.PastDayjs
: Added new validator.PositiveBigInt
: Added new validator.SetContains
: Added new validator.SetMaxSize
: Added new validator.SetMinSize
: Added new validator.SetNotContains
: Added new validator.SetUnique
: Added new validator.
- Initial release on npm.