Skip to content
Permalink
Browse files

feat: upgrade joi@14 to @hapi/joi@15

BREAKING CHANGE: ^^^
  • Loading branch information...
kirillgroshkov committed Apr 30, 2019
1 parent 9ad7b5a commit 68a58021faf04d365fa74745d7bba2968c9d6bdf
@@ -2,26 +2,25 @@
"name": "@naturalcycles/nodejs-lib",
"version": "4.2.0",
"dependencies": {
"@types/joi": "^14.0.0"
"@types/hapi__joi": "^15.0.1"
},
"peerDependencies": {
"@naturalcycles/js-lib": ">=4",
"joi": "^14.0.4"
"@hapi/joi": "^15.0.0",
"@naturalcycles/js-lib": ">=4"
},
"devDependencies": {
"@hapi/joi": "^15.0.1",
"@naturalcycles/js-lib": "^4.0.0",
"@naturalcycles/semantic-release": "^1.0.0",
"@naturalcycles/shared-module": "^5.11.0",
"@types/jest": "^24.0.6",
"@types/node": "^11.13.4",
"jest": "^24.1.0",
"jest-junit": "^6.2.1",
"joi": "^14.0.4",
"lru-cache": "^5.1.1",
"luxon": "^1.4.3",
"prettier": "^1.14.3",
"ts-jest": "^24.0.0",
"ts-node": "^8.0.2",
"tslint": "^5.11.0",
"typescript": "^3.0.0"
},
@@ -1,5 +1,5 @@
import { Extension, State, StringSchema, ValidationOptions } from 'joi'
import * as JoiLib from 'joi'
import { Extension, State, StringSchema, ValidationOptions } from '@hapi/joi'
import * as JoiLib from '@hapi/joi'
import { DateTime } from 'luxon'
import { LUXON_ISO_DATE_FORMAT } from '../../util/time.util'

@@ -1,4 +1,4 @@
import { SchemaMap } from 'joi'
import { SchemaMap } from '@hapi/joi'
import { Joi } from './joi.extensions'

// Should all booleans be optional as a convention? So undefined will be just treated as false?
@@ -1,5 +1,5 @@
import { ValidationErrorItem } from '@hapi/joi'
import { AppError, ErrorData } from '@naturalcycles/js-lib'
import { ValidationErrorItem } from 'joi'

/**
* Example of ValidationErrorItem:
@@ -6,8 +6,8 @@
* "Converts" mean e.g trims all strings from leading/trailing spaces.
*/

import { SchemaLike, ValidationError, ValidationOptions } from '@hapi/joi'
import { isObject } from '@naturalcycles/js-lib'
import { SchemaLike, ValidationError, ValidationOptions } from 'joi'
import { Joi } from './joi.extensions'
import { JoiValidationError } from './joi.validation.error'

0 comments on commit 68a5802

Please sign in to comment.
You can’t perform that action at this time.