-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BREAKING CHANGE: Move Joi to peerDependencies #570
Conversation
Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
Upgrading Joi is fine internally, but I am more worried about externally, i.e. people using the exported Joi object provided by Frisby for convenince in their own tests. Were there any braking changes from Joi 13 to 17? The version alone implies there likely are. I don't want people to upgrade Frisby and then wind up with tons of broken tests just because Joi change something. |
Yes, Joi v17 has major changes absolutely. I was also wondering what to do about that. We can't upgrade Joi without breaking changes. Otherwise, frisby should not export Joi. const frisby = require('frisby');
// const Joi = frisby.Joi;
const Joi = require('joi'); |
This is what SEMVer is for. We need to:
|
Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
"devDependencies": { | ||
"eslint": "^7.32.0", | ||
"jest": "^27.3.1", | ||
"joi": "^17.4.2", | ||
"nock": "^13.1.4" | ||
}, | ||
"peerDependencies": { | ||
"joi": "^17.4.2" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
joi in devDepencencies is needed for npm@6 and lower.
@vlucas I got it. Anyway updated this PR. |
Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @koooge
Upgrade Joi v13 to v17.
fix #568