mulink 1.1.5 → 1.1.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.
@@ -3467,10 +3467,7 @@ ${actions}`;
3467
3467
  const parsedInputType = hasRequestBody || hasAnyParams ? schemaName.includes("\n") ? `z.infer<typeof z.object({ body: ${operationName}RequestSchema, params: ${operationName}ParamsSchema })>` : `z.infer<typeof ${schemaName}>` : "void";
3468
3468
  const ctxType = requiresAuth || hasRateLimit ? "{ user?: any; ratelimit?: { remaining: number } }" : "any";
3469
3469
  const ctxDeclaration = requiresAuth || hasRateLimit ? `ctx: ${ctxType}` : "ctx?: any";
3470
- const actionArgsType = `{
3471
- parsedInput: ${parsedInputType};
3472
- ${ctxDeclaration}
3473
- }`;
3470
+ const actionArgsType = schemaName.includes("\n") ? `{ parsedInput: z.infer<typeof z.object({ body: ${operationName}RequestSchema, params: ${operationName}ParamsSchema })>; ${ctxDeclaration} }` : `{ parsedInput: ${parsedInputType}; ${ctxDeclaration} }`;
3474
3471
  const clientName = requiresAuth || hasRateLimit ? "authActionClient" : "actionClientWithMeta";
3475
3472
  const rateLimitCode = hasRateLimit ? `
3476
3473
  ${this.commentLine("Rate limiting", 6)} const { userAgent, ip } = await getClientInfo()
@@ -3940,7 +3937,7 @@ export function ${hookName.replace("use", "useInfinite")}(${parameterTypes.lengt
3940
3937
  return `if ('${param.name}' in searchParams) queryParams.${param.name} = searchParams.${param.name}`;
3941
3938
  }
3942
3939
  }).join("\n ")}
3943
- const result = await resolveActionResult<${returnType}>(${actionName}(${actionCallParams.replace(queryParamObject, "{ query: queryParams }")}))
3940
+ const result = await resolveActionResult<${returnType}>(${actionName}(${actionCallParams.replace(queryParamObject, "...queryParams")}))
3944
3941
  return result
3945
3942
  } catch (error) {
3946
3943
  handleActionError(error)
@@ -4398,7 +4395,14 @@ export function useBridgeQuery<TData = unknown, TError = Error>(
4398
4395
  refetchOnWindowFocus: true,
4399
4396
  refetchOnReconnect: true,
4400
4397
  refetchOnMount: 'always',
4401
- placeholderData: (previousData) => previousData as TData | undefined,
4398
+ // React Query v5: placeholderData cannot be a function type
4399
+ // Use keepPreviousData pattern: return previousData if it exists and is not a function
4400
+ placeholderData: (previousData) => {
4401
+ if (previousData === undefined) return undefined
4402
+ // Type guard: ensure we don't return a function (React Query v5 requirement)
4403
+ if (typeof previousData === 'function') return undefined
4404
+ return previousData
4405
+ } as any,
4402
4406
  retry: (failureCount: number, error: TError) => {
4403
4407
  if (error instanceof Error && error.message.includes('4')) return false
4404
4408
  return failureCount < 3
@@ -9778,5 +9782,5 @@ ${errorMessages}`,
9778
9782
  };
9779
9783
 
9780
9784
  export { BridgeCore, BridgeError, BridgeLogger, ConfigurationLoader, FileSystemManager, GenerationError, LogLevel, NextJsCodeGenerator, OpenApiSchemaParser, SchemaParseError, ValidationError, VersionChecker, __name, checkAndNotifyUpdates, createBridgeVersionChecker };
9781
- //# sourceMappingURL=chunk-UMUBEOOK.js.map
9782
- //# sourceMappingURL=chunk-UMUBEOOK.js.map
9785
+ //# sourceMappingURL=chunk-OSS5TUD2.js.map
9786
+ //# sourceMappingURL=chunk-OSS5TUD2.js.map