mulink 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/lib/{chunk-7Y66DW7M.js → chunk-GHDF3TJA.js} +7 -10
- package/dist/lib/chunk-GHDF3TJA.js.map +1 -0
- package/dist/lib/{chunk-OOY4PCDK.cjs → chunk-PZXEJ43S.cjs} +7 -10
- package/dist/lib/chunk-PZXEJ43S.cjs.map +1 -0
- package/dist/lib/cli.cjs +16 -16
- package/dist/lib/cli.js +1 -1
- package/dist/lib/client.cjs +18 -18
- package/dist/lib/client.js +2 -2
- package/dist/lib/index.cjs +15 -15
- package/dist/lib/index.js +1 -1
- package/package.json +1 -1
- package/dist/lib/chunk-7Y66DW7M.js.map +0 -1
- package/dist/lib/chunk-OOY4PCDK.cjs.map +0 -1
|
@@ -3862,7 +3862,6 @@ export function ${hookName}(${parameterTypes.length > 0 ? `${parameterTypes.join
|
|
|
3862
3862
|
refetchOnReconnect: true, // Refetch when network reconnects
|
|
3863
3863
|
refetchOnMount: 'always', // Always refetch on mount for fresh data
|
|
3864
3864
|
refetchInterval: options?.refetchInterval, // Optional polling interval
|
|
3865
|
-
initialDataUpdatedAt: initialData ? Date.now() : undefined,
|
|
3866
3865
|
// React Query v5: placeholderData replaces keepPreviousData
|
|
3867
3866
|
placeholderData: (previousData: ${returnType} | undefined) => previousData,
|
|
3868
3867
|
retry: (failureCount: number, error: Error) => {
|
|
@@ -3906,7 +3905,6 @@ export function ${hookName.replace("use", "useInfinite")}(${parameterTypes.lengt
|
|
|
3906
3905
|
refetchOnWindowFocus: true,
|
|
3907
3906
|
refetchOnReconnect: true,
|
|
3908
3907
|
refetchOnMount: 'always',
|
|
3909
|
-
initialDataUpdatedAt: initialData ? Date.now() : undefined,
|
|
3910
3908
|
placeholderData: (previousData: ${returnType} | undefined) => previousData,
|
|
3911
3909
|
retry: 3,
|
|
3912
3910
|
initialData: initialData as ${returnType} | undefined,
|
|
@@ -3958,7 +3956,6 @@ export function ${hookName}(${parameterTypes.length > 0 ? `${parameterTypes.join
|
|
|
3958
3956
|
refetchOnReconnect: true, // Refetch when network reconnects
|
|
3959
3957
|
refetchOnMount: 'always', // Always refetch on mount for fresh data
|
|
3960
3958
|
refetchInterval: options?.refetchInterval, // Optional polling interval
|
|
3961
|
-
initialDataUpdatedAt: initialData ? Date.now() : undefined,
|
|
3962
3959
|
// React Query v5: placeholderData replaces keepPreviousData
|
|
3963
3960
|
placeholderData: (previousData: ${returnType} | undefined) => previousData,
|
|
3964
3961
|
retry: (failureCount: number, error: Error) => {
|
|
@@ -4026,7 +4023,7 @@ export function ${hookName.replace("use", "useSuspense")}(${parameterTypes.lengt
|
|
|
4026
4023
|
export function ${hookName}(options?: {
|
|
4027
4024
|
onSuccess?: (data: ${outputType}, variables: ${inputType}) => void
|
|
4028
4025
|
onError?: (error: Error, variables: ${inputType}) => void
|
|
4029
|
-
optimisticUpdate?: (variables: ${inputType}) =>
|
|
4026
|
+
optimisticUpdate?: (variables: ${inputType}) => unknown
|
|
4030
4027
|
showToast?: boolean
|
|
4031
4028
|
}) {
|
|
4032
4029
|
const queryClient = useQueryClient()
|
|
@@ -4269,11 +4266,11 @@ ${invalidationCode}
|
|
|
4269
4266
|
}
|
|
4270
4267
|
getTypeFromZodSchema(schema) {
|
|
4271
4268
|
if (!schema || typeof schema !== "object") {
|
|
4272
|
-
return "
|
|
4269
|
+
return "unknown";
|
|
4273
4270
|
}
|
|
4274
4271
|
const def = schema._def;
|
|
4275
4272
|
if (!def) {
|
|
4276
|
-
return "
|
|
4273
|
+
return "unknown";
|
|
4277
4274
|
}
|
|
4278
4275
|
switch (def.typeName) {
|
|
4279
4276
|
case "ZodString":
|
|
@@ -4287,7 +4284,7 @@ ${invalidationCode}
|
|
|
4287
4284
|
case "ZodOptional":
|
|
4288
4285
|
return this.getTypeFromZodSchema(def.innerType);
|
|
4289
4286
|
default:
|
|
4290
|
-
return "
|
|
4287
|
+
return "unknown";
|
|
4291
4288
|
}
|
|
4292
4289
|
}
|
|
4293
4290
|
groupEndpointsByTag(endpoints) {
|
|
@@ -4349,7 +4346,7 @@ export function useBridgeQuery<TData = unknown, TError = Error>(
|
|
|
4349
4346
|
export function useBridgeInfiniteQuery<TData = unknown, TError = Error>(
|
|
4350
4347
|
queryKey: QueryKey,
|
|
4351
4348
|
queryFn: QueryFunction<TData, QueryKey>,
|
|
4352
|
-
options?: Partial<UseInfiniteQueryOptions<TData, TError,
|
|
4349
|
+
options?: Partial<UseInfiniteQueryOptions<TData, TError, TData, QueryKey>>
|
|
4353
4350
|
) {
|
|
4354
4351
|
return useInfiniteQuery<TData, TError>({
|
|
4355
4352
|
queryKey,
|
|
@@ -9619,5 +9616,5 @@ exports.VersionChecker = VersionChecker;
|
|
|
9619
9616
|
exports.__name = __name;
|
|
9620
9617
|
exports.checkAndNotifyUpdates = checkAndNotifyUpdates;
|
|
9621
9618
|
exports.createBridgeVersionChecker = createBridgeVersionChecker;
|
|
9622
|
-
//# sourceMappingURL=chunk-
|
|
9623
|
-
//# sourceMappingURL=chunk-
|
|
9619
|
+
//# sourceMappingURL=chunk-PZXEJ43S.cjs.map
|
|
9620
|
+
//# sourceMappingURL=chunk-PZXEJ43S.cjs.map
|