Skip to content

Commit

Permalink
breaking: switch from @hapi/joi back to joi
Browse files Browse the repository at this point in the history
- update dependencies
- add some tests
  • Loading branch information
Mairu committed Aug 13, 2020
1 parent e9d323a commit 6f76726
Show file tree
Hide file tree
Showing 6 changed files with 1,359 additions and 1,304 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
5.0.0 / 2020-08-13
==================

* BREAKING CHANGE: Move back to joi with versions >= 17.1.1 after @hapi/joi was deprecated
* updated dependencies

4.0.0 / 2020-02-07
==================

Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from '@hapi/joi';
import { Schema } from 'joi';

interface SwaggerSchema {
[propName: string]: any;
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const joi = require('@hapi/joi');
const joi = require('joi');
const { find, get, isEqual, isNumber, isPlainObject, isString, merge, set, uniqWith } = require('lodash');

const patterns = {
Expand Down
Loading

0 comments on commit 6f76726

Please sign in to comment.