Releases: shimataro/value-schema
Releases · shimataro/value-schema
node-adjuster 0.12.0 released
Added
adjuster.STRING_PATTERN
, regular expressions foradjuster.string().pattern()
adjuster.number().integer()
Fixed
adjuster.number().adjust(true)
throws an error; should return1
node-adjuster 0.11.0 released
Added
adjuster.number().acceptSpecialFormats()
adjuster.numberArray().eachAcceptSpecialFormats()
Changed
- rename method;
allowEmptyString()
toacceptEmptyString()
- rename method;
allowNull()
toacceptNull()
- rename method;
eachAllowEmptyString()
toeachAcceptEmptyString()
- rename method;
eachAllowNull()
toeachAcceptNull()
node-adjuster 0.10.1 released
node-adjuster 0.10.0 released
Release Note
Changed
adjuster.number()
limits input value toNumber.MIN_SAFE_INTEGER
or more andNumber.MAX_SAFE_INTEGER
or less
Others
- support Microsoft Windows officially
node-adjuster 0.9.0 released
Release Note
Added
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()
Changed
- 3rd parameter of
adjuster.adjust()
,onError
, receivesnull
argument after all adjustment has finished and errors has occurred - remove 4th parameter of
adjuster.adjust()
,onErrorAll
Fixed
- description about error handler in README.md
node-adjuster 0.8.0 released
Release Note
Added
adjuster.email().trim()
adjuster.ipv4().trim()
adjuster.ipv6().trim()
adjuster.string().trim()
adjuster.stringArray().eachTrim()
Changed
AdjusterError.prototype.key
indicates a key name that caused error; only filled inadjuster.adjust()
, otherwisenull
- error handler for
adjuster.adjust()
needs only 1 parameterserr
;key
is inerr.key
- rename
.in()
to.only()
Others
- use changelog
- reference in README
node-adjuster 0.7.0 released
Release Note
New Functions
adjuster.numericString().joinArray()
Others
- support complement of IntelliJ IDEA
node-adjuster 0.6.0 released
Release Note
New Functions
adjuster.numericString()
Change Specifications
adjuster.allowEmpty()
=>adjuster.allowEmptyString()
adjuster.CAUSE.EMAIL
=>adjuster.CAUSE.PATTERN
adjuster.CAUSE.IPV4
=>adjuster.CAUSE.PATTERN
adjuster.CAUSE.IPV6
=>adjuster.CAUSE.PATTERN
node-adjuster 0.5.0 released
Release Note
Bugfixes
none
New Functions
adjuster.numberArray()
adjuster.stringArray()
Removed Functions
none
Change Specifications
- rename
adjuster.adjustData()
toadjuster.adjust()
- throw first error when both
onError
andonErrorAll
are null inadjuster.adjust()
Improvement
none
Others
- introduce Travis CI
- support Visual Studio Code officially
- introduce Jest
- remove gulp.js