From f6f9ee55a61c1c5a18d3c3b1a029114b2f023faa Mon Sep 17 00:00:00 2001 From: Acemir Sousa Mendes Date: Wed, 22 Oct 2025 08:34:24 +0100 Subject: [PATCH] chore: add `@deprecated` notice to variableMatcher `variableMatcher` was removed from `Mocklink.MockedResponse` on Apollo 4.0 --- src/testing/core/mocking/mockLink.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/testing/core/mocking/mockLink.ts b/src/testing/core/mocking/mockLink.ts index 892437f75ec..0cd73a6c2d1 100644 --- a/src/testing/core/mocking/mockLink.ts +++ b/src/testing/core/mocking/mockLink.ts @@ -49,6 +49,10 @@ export interface MockedResponse< | ResultFunction>, TVariables>; error?: Error; delay?: number; + /** + * @deprecated `variableMatcher` will be removed in Apollo Client 4.0. Please use the + * `request.variables` option with a callback function instead to get the same behavior. + */ variableMatcher?: VariableMatcher; /** * @deprecated `newData` will be removed in Apollo Client 4.0. Please use the