-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Unify all link types #12823
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
Merged
Merged
Unify all link types #12823
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
41bcf5f
Don't export OperationBatcher from batch link
jerelmiller 7ffe5c0
Don't export BatchableRequest from batch link
jerelmiller f6d2f28
Move BatchHandler type to BatchLink namespace
jerelmiller f34c7d8
Update type in BatchHttpLink
jerelmiller 17c819f
Use ErrorLink.ErrorHandler instead
jerelmiller 903cbf2
Update types in PersistedQueryLink
jerelmiller 74a941f
Combine options types
jerelmiller 797d340
Namespace types in RemoveTypenameFromVariablesLink
jerelmiller bd1edf1
Move DelayFunction types over to RetryLink
jerelmiller 0367fd9
Move RetryFunction type to RetryLink
jerelmiller cc353f5
Rename RetryFunction to AttemptsFunction
jerelmiller b92973c
Move delay/retry function to retryLink file
jerelmiller 19b29c8
Use namespace for type
jerelmiller daffbc6
Add changesets
jerelmiller 44badde
Don't export `OperationBatcher` from `@apollo/client/link/batch`. Thi…
jerelmiller e1117f7
Update exports snapshot
jerelmiller 8e48c3f
Update api report
jerelmiller 7c5e710
Revert "Move delay/retry function to retryLink file"
jerelmiller 7c1bcaa
Fix batch link tests with updated exports
jerelmiller 0caf3f0
Update changeset
jerelmiller 76cfacf
Merge branch 'release-4.0' into jerel/more-unify-types
jerelmiller baaf587
Use defaultValue tag
jerelmiller 1d98845
BaseOptions -> Base.Options
jerelmiller bb57dce
Clean up Prettier, Size-limit, and Api-Extractor
jerelmiller b5c3403
Fix typo
jerelmiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@apollo/client": major | ||
| --- | ||
|
|
||
| Move all 1st party link types into a namespace. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@apollo/client": major | ||
| --- | ||
|
|
||
| The `OperationBatcher` class is no longer exported from `@apollo/client/link/batch`. It is an implementation detail of `BatchLink` and should not be relied on directly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@apollo/client": patch | ||
| --- | ||
|
|
||
| Fix the type of the argument for the `sha256` function for `PersistedQueryLink` from `...any[]` to `string`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The call here is generally to drop all the old Types?
I'm for it, just gotta be really thorough with the codemod.
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.
I thought so since we've done it with others