-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated SuspenseCache export (#11229)
- Loading branch information
Showing
9 changed files
with
7 additions
and
111 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 | ||
--- | ||
|
||
Remove (already throwing) SuspenseCache export that should have been removed in 3.8. |
This file contains 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 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 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 |
---|---|---|
@@ -1,27 +1,2 @@ | ||
export type { SuspenseCacheOptions } from "./SuspenseCache.js"; | ||
export { getSuspenseCache } from "./getSuspenseCache.js"; | ||
|
||
import { SuspenseCache as RealSuspenseCache } from "./SuspenseCache.js"; | ||
|
||
// TODO: remove export with release 3.8 | ||
// replace with | ||
// export type { SuspenseCache } from './SuspenseCache.js'; | ||
/** | ||
* @deprecated | ||
* It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`. | ||
* Please remove this code from your application. | ||
* | ||
* This export will be removed with the final 3.8 release. | ||
*/ | ||
export class SuspenseCache extends RealSuspenseCache { | ||
constructor() { | ||
super(); | ||
// throwing an error here instead of using invariant - we do not want this error | ||
// message to be link-ified, but to directly show up as bold as possible | ||
throw new Error( | ||
"It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\n" + | ||
"Please remove this code from your application. \n\n" + | ||
"This export will be removed with the final 3.8 release." | ||
); | ||
} | ||
} |
This file contains 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 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