- BREAKING CHANGE: Require joi >=17.2.0 instead of deprecated @hapi/joi.
- BREAKING CHANGE: Require Node 12+
- Fix an issue where the types weren't provided at install time.
- Provide types for TypeScript.
-
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 fromsemver
.If you have existing code that calls
.validRange()
likeconst 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())