-
Notifications
You must be signed in to change notification settings - Fork 403
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
Remove extend-expect typings #182
Conversation
BREAKING CHANGE: moving typings to @types/testing-library__jest-dom
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.
Let me check if I understand it all:
- We merge this into
next
- We then merge
next
intomaster
as a breaking change, which will prompt the release of v5.0.0 (context for anyone reading this:next
also includes right now Add jest extensions on main module #175 that's part of this process). - We make a new PR that introduces the DT dev dependendency, and ship it as v5.0.1
The only question remaining then is: v5.0.0 will be a kinda broken release, right? It won't support TS and people using jest-dom with TS, if they happen to get jest-dom in the window of time when v5.0.0 is the latest version, right?
Yeah, that’s right. Not ideal. Instead of deleting the typings in this PR I could just have them apply to the index file instead of extend-expect. Then v5 would ship with typings. And 5.0.1 would swap the internal ones for the DT ones. Thoughts on that? |
Actually, I'm backtracking that idea. Removing the typings is the correct change because that's ultimately our goal. Adding the dependency to There will be a bit of a gap where the typings are not available, but if we communicate that in the changelog, hopefully people will understand... |
Fair enough. I merged this and created #183 that would trigger the actual v5.0.0 release. |
🎉 This PR is included in version 5.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
EDIT: --old-- This just bit me. Can you guys update the documentation on the new setup process? @gnapse @jgoz Right now I don't see any types definitions using the current documentation, I had to search the commit log
|
@JasonMore v5.0.1 is out now, with types support back. Sorry for the inconvenience. And let us know of any remaining or new issues with this update. |
What:
BREAKING CHANGE: moving typings to
@types/testing-library__jest-dom
(see DefinitelyTyped/DefinitelyTyped#37792)Why:
#123.
How:
@types/testing-library__jest-dom
to this projectChecklist:
After this PR, I think we can release version 5.0. Then the type definitions in the DefinitelyTyped PR will match the latest release. After that is merged, we can add the dependency and ship 5.0.1, finally closing the related issue.