{"record":{"id":"26413f5e02975ff9","repo":"ruvnet/ruflo","slug":"deprecated-oldapi-is-deprecated-since-map","errorCode":null,"errorMessage":"[DEPRECATED] '${oldAPI}' is deprecated since ${mapping.since}. Use '${mapping.replacement}' instead.","messagePattern":"\\[DEPRECATED\\] '(.+?)' is deprecated since (.+?)\\. Use '(.+?)' instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/integration/src/sdk-bridge.ts","lineNumber":201,"sourceCode":"    oldAPI: string,\n    args: unknown[]\n  ): { newAPI: string; args: unknown[] } | null {\n    const mapping = DEPRECATED_API_MAP[oldAPI];\n    if (!mapping) {\n      return null;\n    }\n\n    // Emit deprecation warning (once per API)\n    if (!this.deprecationWarnings.has(oldAPI)) {\n      this.deprecationWarnings.add(oldAPI);\n      const message = `'${oldAPI}' is deprecated since ${mapping.since}. ` +\n        `Use '${mapping.replacement}' instead.`;\n\n      switch (this.config.fallbackBehavior) {\n        case 'error':\n          throw new Error(message);\n        case 'warn':\n          console.warn(`[DEPRECATED] ${message}`);\n          this.emit('deprecation-warning', { oldAPI, mapping });\n          break;\n        case 'silent':\n          // Log but don't warn\n          break;\n      }\n    }\n\n    const newArgs = mapping.transformer ? mapping.transformer(args) : args;\n    return { newAPI: mapping.replacement, args: newArgs };\n  }\n\n  /**\n   * Wrap an API call with compatibility handling\n   */\n  async wrapAPICall<T>(\n    apiName: string,\n    apiCall: () => Promise<T>,","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/integration/src/sdk-bridge.ts#L183-L219","documentation":"Deprecation notice in translateDeprecatedAPI (warn mode): a caller invoked an old API mapped in DEPRECATED_API_MAP; the call is transparently translated to the replacement (args rewritten) and the warning is emitted once per API.","triggerScenarios":"Thrown at v3/@claude-flow/integration/src/sdk-bridge.ts:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Migrate calls from the deprecated API to the named replacement before the deprecated API is removed."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}