Changelog
[0.11.0] - 2018-07-16
adjuster.number().acceptSpecialFormats()
adjuster.numberArray().eachAcceptSpecialFormats()
allowEmptyString()
to acceptEmptyString()
allowNull()
to acceptNull()
eachAllowEmptyString()
to eachAcceptEmptyString()
eachAllowNull()
to eachAcceptNull()
Changelog
[0.10.1] - 2018-07-09
valid-jsdoc
option for ESLintwrap-regex
option for ESLintChangelog
[0.10.0] - 2018-06-23
adjuster.number()
limits input value to Number.MIN_SAFE_INTEGER
or more and Number.MAX_SAFE_INTEGER
or lessChangelog
[0.9.0] - 2018-06-16
adjuster.number().allowNull()
adjuster.numberArray().allowNull()
adjuster.numberArray().eachAllowNull()
adjuster.string().allowNull()
adjuster.stringArray().allowNull()
adjuster.stringArray().eachAllowNull()
adjuster.numericString().allowNull()
adjuster.ipv4().allowNull()
adjuster.ipv6().allowNull()
adjuster.email().allowNull()
adjuster.adjust()
, onError
, receives null
argument after all adjustment has finished and errors has occurredadjuster.adjust()
, onErrorAll
Changelog
[0.8.0] - 2018-06-03
adjuster.email().trim()
adjuster.ipv4().trim()
adjuster.ipv6().trim()
adjuster.string().trim()
adjuster.stringArray().eachTrim()
AdjusterError.prototype.key
indicates a key name that caused error; only filled in adjuster.adjust()
, otherwise null
adjuster.adjust()
needs only 1 parameters err
; key
is in err.key
.in()
to .only()
Changelog
[0.7.0] - 2018-05-20
adjuster.numericString().joinArray()
Changelog
[0.6.0] - 2018-05-17
adjuster.numericString()
allowEmpty()
=> allowEmptyString()
adjuster.CAUSE.EMAIL
=> adjuster.CAUSE.PATTERN
adjuster.CAUSE.IPV4
=> adjuster.CAUSE.PATTERN
adjuster.CAUSE.IPV6
=> adjuster.CAUSE.PATTERN
Changelog
[0.5.0] - 2018-05-12
adjuster.numberArray()
adjuster.stringArray()
adjuster.adjustData()
to adjuster.adjust()
onError
and onErrorAll
are null in adjuster.adjust()
Changelog
[0.4.0] - 2018-05-06
adjuster.ipv4()
adjuster.ipv6()
adjuster.email()