feat: remove previews
Followup to https://github.com/octokit/endpoint.js/pull/382#issuecomment-1370197900 See also https://github.com/octokit/endpoint.js/pull/388 https://github.com/octokit/plugin-paginate-rest.js/pull/486 Requires https://github.com/octokit/types.ts/pull/491
Behavior
Before the change?
- Previews were documented
After the change?
- Previews are no longer documented
Other information
Additional info
Pull request checklist
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
- [ ] Added the appropriate label for the given change
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
- [x] Yes (Please add the
Type: Breaking changelabel) - [ ] No
If Yes, what's the impact:
- Removal of previews
Pull request type
Please add the corresponding label for change this PR introduces:
- Bugfix:
Type: Bug - Feature/model/API additions:
Type: Feature - Updates to docs or samples:
Type: Documentation - Dependencies/code cleanup:
Type: Maintenance
Previews still exist for the GraphQL endpoint, this as-is won't work
Previews still exist for the GraphQL endpoint, this as-is won't work
What do you suggest we should do @wolfy1339 ?
For the types, we can probably do a ternary expression based on the endpoint, to only have previews for GraphQL as it is only one endpoint (/graphql)
For the code itself a simple if statement can work
How does that sound?
For the types, we can probably do a ternary expression based on the endpoint, to only have previews for GraphQL as it is only one endpoint (
/graphql)For the code itself a simple if statement can work
How does that sound?
Sounds good to me.
Since the underlying packages have been updated to no longer support previews for the REST API, this shouldn't be a breaking change.
I will come back to this once things calm down with the major version bumps
if you could add a test to https://github.com/octokit/core.js/blob/main/test/graphql.test.ts with a preview that'd be :100: