-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix(types): remove pagination support for GHEC routes #464
Conversation
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.
so the @octokit/plugin-paginate-rest
plugin actually supports GHEC routes up until now.
Technically we will have a breaking change, but it's types only, it does not affect code in production, as pagination works by checking response headers and body
I would recommend to elease a breaking version of @octokit/plugin-paginate-rest
anyway, but then bump the version of this plugin in octokit
and @octokit/rest
in a fix release only. That will prevent some of the cryptic TypeScript errors that folks have seen in the past, where they needed to nuke the node_modules
folder and their lock file to resolve.
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.
@gr2m's reasoning makes sense to me!
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: Type support for GHEC routes has been removed. There are no code changes.