Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.41 KB

CHANGELOG.md

File metadata and controls

63 lines (41 loc) · 1.41 KB

Changelog

5.0.0

  • BREAKING CHANGE: Require joi >=17.2.0 instead of deprecated @hapi/joi.
  • BREAKING CHANGE: Require Node 12+

4.1.1

  • Fix an issue where the types weren't provided at install time.

4.1.0

  • Provide types for TypeScript.

4.0.0

  • BREAKING CHANGE: Require @hapi/joi ^16.0.0.

  • BREAKING CHANGE: module now exports an object.

    If you have existing code like

    const semver = require('joi-extension-semver')
    const Joi = require('@hapi/joi').extend(semver)

    update it to

    const { semver } = require('joi-extension-semver')
    const Joi = require('@hapi/joi').extend(semver)
  • BREAKING CHANGE: semverRange is now a seperate type from semver.

    If you have existing code that calls .validRange() like

    const semver = require('joi-extension-semver')
    const Joi = require('@hapi/joi').extend(semver)
    Joi.attempt('>=1.2.3', Joi.semver().validRange())

    update it to

    const { semverRange } = require('joi-extension-semver')
    const Joi = require('@hapi/joi').extend(semverRange)
    Joi.attempt('>=1.2.3', Joi.semverRange().valid())

3.0.0

  • BREAKING CHANGE: Require @hapi/joi instead of deprecated joi.
  • BREAKING CHANGE: Require Node 8+.
  • Update semver dependency.