Skip to content

v0.0.13

Latest
Compare
Choose a tag to compare
@laurence-myers laurence-myers released this 31 May 07:41
· 219 commits to master since this release

Features

  • #14, #30: decorators are now type safe. This means you will be prevented from applying a string constraint decorator on a number property, at compile time. (This replaces the previous runtime checking.)
  • #27: Add decorator @Error() for Joi.any().error(). I've also added an alias, @CustomerError(), to avoid conflicts with the built-in Error class.

Tech

  • package.json: change the yarn engine entry to set the minimum supported version to 1.0.0, for consuming applications/projects that are forced to use older versions of yarn.
  • #18, #26: Migrate tests from Mocha to Jest. (Thanks @codeandcats!)
  • #34: add .yarnrc, enforcing tsdv-joi use of yarn (save exact versions, don't accidentally modify the lockfile when running yarn install)