From 963ffa017f44804d97c3c1add8092d137dcff422 Mon Sep 17 00:00:00 2001 From: Vedant Madane <6527493+VedantMadane@users.noreply.github.com> Date: Tue, 25 Aug 2026 05:51:14 +0530 Subject: [PATCH] fix: Runtime warning for deprecated createResilientFetch - createResilientFetch: runtime deprecation warning wrapping createSmoothFetch Fixes #25 Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com> --- packages/smooth-api-ts/src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/smooth-api-ts/src/index.ts b/packages/smooth-api-ts/src/index.ts index e77d47c..7de8f94 100644 --- a/packages/smooth-api-ts/src/index.ts +++ b/packages/smooth-api-ts/src/index.ts @@ -155,4 +155,11 @@ export function createSmoothFetch(globalConfig: SmoothFetchConfig) { } /** @deprecated use createSmoothFetch instead */ -export const createResilientFetch = createSmoothFetch; +export const createResilientFetch = (...args: Parameters) => { + if (typeof console !== "undefined" && console.warn) { + console.warn( + "[smoothAPI] createResilientFetch is deprecated; use createSmoothFetch instead.", + ); + } + return createSmoothFetch(...args); +};