Skip to content

Conversation

@jsonbailey
Copy link
Contributor

@jsonbailey jsonbailey commented Oct 30, 2025

fix: Deprecated toVercelAISDK, trackVercelAISDKStreamTextMetrics, use @launchdarkly/server-sdk-ai-vercel package


Note

Add streaming metrics tracking API and deprecate Vercel mapping APIs/types in favor of @launchdarkly/server-sdk-ai-vercel.

  • AI Metrics Tracking:
    • Add trackStreamMetricsOf() to LDAIConfigTracker and implement in LDAIConfigTrackerImpl, with background metrics extraction via _trackStreamMetricsInBackground() for streaming operations (duration, success/error, token usage).
  • Deprecations/Migrations:
    • Mark toVercelAISDK() in LDAIConfig and LDAIConfigMapper as deprecated in favor of VercelProvider.toVercelAISDK() from @launchdarkly/server-sdk-ai-vercel.
    • Deprecate trackVercelAISDKStreamTextMetrics() in LDAIConfigTracker in favor of trackStreamMetricsOf() with VercelProvider.createStreamMetricsExtractor().
    • Deprecate VercelAISDKProvider, VercelAISDKMapOptions, and VercelAISDKConfig types, pointing to the @launchdarkly/server-sdk-ai-vercel package.

Written by Cursor Bugbot for commit ff14518. This will update automatically on new commits. Configure here.

fix:  Deprecated toVercelAISDK, trackVercelAISDKStreamTextMetrics
fix: Moved types VercelAISDKProvider, VercelAISDKMapOptions, and VercelAISDKConfig to `@launchdarkly/server-sdk-ai-vercel` package
@jsonbailey jsonbailey requested a review from a team as a code owner October 30, 2025 23:26
@github-actions
Copy link
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 169118 bytes
Compressed size limit: 200000
Uncompressed size: 789399 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 24988 bytes
Compressed size limit: 26000
Uncompressed size: 122411 bytes

cursor[bot]

This comment was marked as outdated.

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 21721 bytes
Compressed size limit: 25000
Uncompressed size: 74698 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 17636 bytes
Compressed size limit: 20000
Uncompressed size: 90259 bytes

@jsonbailey jsonbailey merged commit e18979e into main Nov 4, 2025
33 checks passed
@jsonbailey jsonbailey deleted the jb/sdk-1532/deprecate-tovercelaisdk branch November 4, 2025 19:00
@github-actions github-actions bot mentioned this pull request Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants