Skip to content
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

Merged
merged 10 commits into from Oct 13, 2022
Merged

Conversation

octokitbot
Copy link
Collaborator

@octokitbot octokitbot commented Sep 22, 2022

BREAKING CHANGE: Type support for GHEC routes has been removed. There are no code changes.

@octokitbot octokitbot added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Sep 22, 2022
@ghost ghost added this to Inbox in JS Sep 22, 2022
@ghost ghost moved this from Inbox to Maintenance in JS Sep 22, 2022
@gr2m gr2m self-assigned this Oct 13, 2022
@ghost ghost moved this from Maintenance to In progress in JS Oct 13, 2022
@gr2m gr2m changed the title 🚧 GitHub OpenAPI specifications changed fix: remove pagination support for GHEC routes Oct 13, 2022
@gr2m gr2m changed the title fix: remove pagination support for GHEC routes fix(types): remove pagination support for GHEC routes Oct 13, 2022
Copy link
Contributor

@gr2m gr2m left a 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.

Copy link
Member

@kfcampbell kfcampbell left a 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!

@gr2m gr2m merged commit 940971c into master Oct 13, 2022
JS automation moved this from In progress to Done Oct 13, 2022
@gr2m gr2m deleted the openapi-update branch October 13, 2022 16:56
@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
No open projects
JS
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants