feat(core): replace esbuild with rolldown for mutator bundling #1209
Annotations
4 errors
|
pr-checks (ubuntu-latest, 22.x)
Process completed with exit code 1.
|
|
[vue-query-custom-fetch] api-generation.spec.ts > API Generation Snapshots > samples/vue-query/custom-fetch/src/gen/pets/pets.ts:
test-utils/snapshot-testing.ts#L75
Error: Snapshot `API Generation Snapshots > samples/vue-query/custom-fetch/src/gen/pets/pets.ts 1` mismatched
- Expected
+ Received
@@ -56,12 +56,10 @@
? NonReadonly<NonNullable<T[P]>>
: T[P];
}
: DistributeReadOnlyOverUnions<T>;
- type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
export type HTTPStatusCode4xx =
| 400
@@ -157,20 +155,19 @@
params?: MaybeRef<ListPetsParams>,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listPets>>, TError, TData>
>;
- request?: SecondParameter<typeof customFetch>;
},
) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
+ const { query: queryOptions } = options ?? {};
const queryKey = getListPetsQueryKey(params);
const queryFn: QueryFunction<Awaited<ReturnType<typeof listPets>>> = ({
signal,
- }) => listPets(unref(params), { signal, ...requestOptions });
+ }) => listPets(unref(params), { signal });
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
Awaited<ReturnType<typeof listPets>>,
TError,
TData
@@ -193,11 +190,10 @@
params?: MaybeRef<ListPetsParams>,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listPets>>, TError, TData>
>;
- request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryReturnType<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
} {
@@ -265,33 +261,32 @@
Awaited<ReturnType<typeof createPets>>,
TError,
{ data: CreatePetsBodyItem[] },
TContext
>;
- request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof createPets>>,
TError,
{ data: CreatePetsBodyItem[] },
TContext
> => {
const mutationKey = ['createPets'];
- const { mutation: mutationOptions, request: requestOptions } = options
+ const { mutation: mutationOptions } = options
? options.mutation &&
'mutationKey' in options.mutation &&
options.mutation.mutationKey
? options
: { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
+ : { mutation: { mutationKey } };
const mutationFn: MutationFunction<
Awaited<ReturnType<typeof createPets>>,
{ data: CreatePetsBodyItem[] }
> = (props) => {
const { data } = props ?? {};
- return createPets(data, requestOptions);
+ return createPets(data);
};
return { mutationFn, ...mutationOptions };
};
@@ -310,11 +305,10 @@
Awaited<ReturnType<typeof createPets>>,
TError,
{ data: CreatePetsBodyItem[] },
TContext
>;
- request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationReturnType<
Awaited<ReturnType<typeof createPets>>,
TError,
@@ -371,33 +365,32 @@
Awaited<ReturnType<typeof updatePets>>,
TError,
{ data: NonReadonly<Pet> },
TContext
>;
- request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof updatePets>>,
TError,
{ data: NonReadonly<Pet> },
TContext
> => {
const mutationKey = ['updatePets'];
- const { mutation: mutationOptions, request: requestOptions } = options
+ const { mutation: mutationOptions } = options
? options.mutation &&
'mutationKey' in options.mutation &&
options.mutation.mutationKey
? options
: { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
+ : { mutation: { mutationKey } };
const mutationFn: MutationFunction<
Awaited<ReturnType<typeof updatePets>>,
{ data:
|
|
pr-checks (windows-latest, 22.x)
The strategy configuration was canceled because "pr-checks.ubuntu-latest_22_x" failed
|
|
pr-checks (windows-latest, 22.x)
The operation was canceled.
|