{"version":3,"file":"deprecation-pRVzMYBK.cjs","sources":["../src/utils/deprecation.ts"],"sourcesContent":["/**\n * Centralized deprecation warning utility\n *\n * Provides once-per-process deprecation warnings with a clean API.\n * Replaces per-module static boolean flags with a central registry.\n *\n * @module utils/deprecation\n * @since v3.8.0\n */\n\n/** Set of method keys that have already emitted a deprecation warning this process. */\nconst _warned = new Set<string>();\n\n/**\n * Emit a deprecation warning for a method, at most once per process.\n *\n * @param methodKey - Unique identifier for the deprecated method (e.g. 'products.getCardsList:legacy-withphoto-zero')\n * @param message - The warning message to display\n *\n * @example\n * ```typescript\n * warnOnce(\n *   'products.getCardsList:legacy-withphoto-zero',\n *   '[DEPRECATED] withPhoto: 0 semantics changed. Use WITH_PHOTO_FILTER.NO_PHOTO for \"no photo only\".'\n * );\n * ```\n */\nexport function warnOnce(methodKey: string, message: string): void {\n  if (_warned.has(methodKey)) return;\n  _warned.add(methodKey);\n  // eslint-disable-next-line no-console -- Intentional deprecation warning\n  console.warn(message);\n}\n\n/**\n * Reset all deprecation warning flags. **Test helper only.**\n *\n * Call in `beforeEach` to ensure deprecation warnings fire again in each test.\n *\n * @example\n * ```typescript\n * import { resetDeprecationWarnings } from 'daytona-wildberries-typescript-sdk';\n *\n * beforeEach(() => {\n *   resetDeprecationWarnings();\n * });\n * ```\n */\nexport function resetDeprecationWarnings(): void {\n  _warned.clear();\n}\n"],"names":["_warned","warnOnce","methodKey","message","resetDeprecationWarnings"],"mappings":"aAWA,MAAMA,MAAc,IAgBb,SAASC,EAASC,EAAmBC,EAAuB,CAC7DH,EAAQ,IAAIE,CAAS,IACzBF,EAAQ,IAAIE,CAAS,EAErB,QAAQ,KAAKC,CAAO,EACtB,CAgBO,SAASC,GAAiC,CAC/CJ,EAAQ,MAAA,CACV"}