Skip to content

Releases: shimataro/value-schema

node-adjuster 0.12.0 released

18 Jul 20:04
771943a
Compare
Choose a tag to compare
Pre-release

Added

  • adjuster.STRING_PATTERN, regular expressions for adjuster.string().pattern()
  • adjuster.number().integer()

Fixed

  • adjuster.number().adjust(true) throws an error; should return 1

node-adjuster 0.11.0 released

15 Jul 23:19
d26880d
Compare
Choose a tag to compare
Pre-release

Added

  • adjuster.number().acceptSpecialFormats()
  • adjuster.numberArray().eachAcceptSpecialFormats()

Changed

  • rename method; allowEmptyString() to acceptEmptyString()
  • rename method; allowNull() to acceptNull()
  • rename method; eachAllowEmptyString() to eachAcceptEmptyString()
  • rename method; eachAllowNull() to eachAcceptNull()

node-adjuster 0.10.1 released

09 Jul 13:45
11fcdab
Compare
Choose a tag to compare
Pre-release

Others

  • follow valid-jsdoc option for ESLint #126
  • follow wrap-regex option for ESLint #127

node-adjuster 0.10.0 released

23 Jun 09:02
Compare
Choose a tag to compare
Pre-release

Release Note

Changed

  • adjuster.number() limits input value to Number.MIN_SAFE_INTEGER or more and Number.MAX_SAFE_INTEGER or less

Others

  • support Microsoft Windows officially

node-adjuster 0.9.0 released

16 Jun 04:43
Compare
Choose a tag to compare
Pre-release

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, receives null 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

03 Jun 07:44
Compare
Choose a tag to compare
Pre-release

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 in adjuster.adjust(), otherwise null
  • error handler for adjuster.adjust() needs only 1 parameters err; key is in err.key
  • rename .in() to .only()

Others

  • use changelog
  • reference in README

node-adjuster 0.7.0 released

19 May 16:21
Compare
Choose a tag to compare
Pre-release

Release Note

New Functions

  • adjuster.numericString().joinArray()

Others

node-adjuster 0.6.0 released

16 May 16:08
Compare
Choose a tag to compare
Pre-release

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

12 May 02:05
Compare
Choose a tag to compare
Pre-release

Release Note

Bugfixes

none

New Functions

  • adjuster.numberArray()
  • adjuster.stringArray()

Removed Functions

none

Change Specifications

  • rename adjuster.adjustData() to adjuster.adjust()
  • throw first error when both onError and onErrorAll are null in adjuster.adjust()

Improvement

none

Others

node-adjuster 0.4.0 released

06 May 01:20
Compare
Choose a tag to compare
Pre-release

Release Note

Bugfixes

none

New Functions

  • add adjuster.ipv4() (#21)
  • add adjuster.ipv6() (#22)

Removed Functions

none

Change Specifications

  • update IPv4 pattern for Email (#19)
  • update IPv6 pattern for Email (#20)

Improvement

none

Others

  • fix examples in README (#28)