chore: bump version (#3706)

This commit is contained in:
Alex Yang
2023-08-11 15:36:10 -04:00
committed by GitHub
parent 844e73ca29
commit 91619b87db
35 changed files with 2319 additions and 2355 deletions

View File

@@ -194,6 +194,7 @@ const timer = createTimers(abortController.signal);
const sharedGlobalThis = Object.assign(Object.create(null), timer, {
Object: globalThis.Object,
fetch: pluginFetch,
ReadableStream: globalThis.ReadableStream,
Symbol: globalThis.Symbol,
Error: globalThis.Error,
TypeError: globalThis.TypeError,

View File

@@ -62,7 +62,7 @@ describe('GraphQL wrapper for SWR', () => {
const el = await renderer.findByText('number: 1');
expect(el).toMatchInlineSnapshot(`
<div>
number:
number:${' '}
1
</div>
`);
@@ -107,14 +107,7 @@ describe('GraphQL wrapper for SWR', () => {
return (
<div>
<button
onClick={() =>
// @ts-expect-error forgive the fake variables
trigger()
}
>
click
</button>
<button onClick={() => trigger()}>click</button>
</div>
);
};

View File

@@ -79,6 +79,7 @@ export function useMutation<Mutation extends GraphQLQuery>(
): SWRMutationResponse<
QueryResponse<Mutation>,
GraphQLError | GraphQLError[],
string,
QueryVariables<Mutation>
>;
export function useMutation<Mutation extends GraphQLQuery>(
@@ -87,6 +88,7 @@ export function useMutation<Mutation extends GraphQLQuery>(
SWRMutationConfiguration<
QueryResponse<Mutation>,
GraphQLError | GraphQLError[],
string,
QueryVariables<Mutation>
>,
'fetcher'
@@ -94,6 +96,7 @@ export function useMutation<Mutation extends GraphQLQuery>(
): SWRMutationResponse<
QueryResponse<Mutation>,
GraphQLError | GraphQLError[],
string,
QueryVariables<Mutation>
>;
export function useMutation(