Skip to content

Commit 1e02553

Browse files
committed
chore: add deprecation notice to variableMatcher
`variableMatcher` was removed from `Mocklink.MockedResponse` on Apollo 4.0
1 parent cdcd7ed commit 1e02553

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/testing/core/mocking/mockLink.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export interface MockedResponse<
4949
| ResultFunction<FetchResult<Unmasked<TData>>, TVariables>;
5050
error?: Error;
5151
delay?: number;
52+
/**
53+
* @deprecated `variableMatcher` will be removed in Apollo Client 4.0. Please use the
54+
* `request.variables` option with a callback function instead to get the same behavior.
55+
*/
5256
variableMatcher?: VariableMatcher<TVariables>;
5357
/**
5458
* @deprecated `newData` will be removed in Apollo Client 4.0. Please use the

0 commit comments

Comments
 (0)