Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/smooth-api-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,11 @@ export function createSmoothFetch<T>(globalConfig: SmoothFetchConfig<T>) {
}

/** @deprecated use createSmoothFetch instead */
export const createResilientFetch = createSmoothFetch;
export const createResilientFetch = (...args: Parameters<typeof createSmoothFetch>) => {
if (typeof console !== "undefined" && console.warn) {
console.warn(
"[smoothAPI] createResilientFetch is deprecated; use createSmoothFetch instead.",
);
}
return createSmoothFetch(...args);
};
Loading