ai 7.0.0-beta.95 → 7.0.0-beta.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.0-beta.97
4
+
5
+ ### Patch Changes
6
+
7
+ - 208d045: fix(ai): skip global telemetry registration when local integration defined
8
+
9
+ ## 7.0.0-beta.96
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [0457e45]
14
+ - @ai-sdk/gateway@4.0.0-beta.53
15
+
3
16
  ## 7.0.0-beta.95
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -2969,8 +2969,8 @@ type TelemetrySettings = {
2969
2969
  /**
2970
2970
  * Per-call telemetry integrations that receive lifecycle events during generation.
2971
2971
  *
2972
- * These integrations run after any globally registered integrations
2973
- * (see `registerTelemetryIntegration`).
2972
+ * When provided, these integrations will take precedence over the globally registered
2973
+ * integrations for this call.
2974
2974
  */
2975
2975
  integrations?: TelemetryIntegration | TelemetryIntegration[];
2976
2976
  };
package/dist/index.js CHANGED
@@ -1380,7 +1380,7 @@ import {
1380
1380
  } from "@ai-sdk/provider-utils";
1381
1381
 
1382
1382
  // src/version.ts
1383
- var VERSION = true ? "7.0.0-beta.95" : "0.0.0-test";
1383
+ var VERSION = true ? "7.0.0-beta.97" : "0.0.0-test";
1384
1384
 
1385
1385
  // src/util/download/download.ts
1386
1386
  var download = async ({
@@ -2468,10 +2468,7 @@ function getGlobalTelemetryIntegrations() {
2468
2468
  function createUnifiedTelemetry({
2469
2469
  integrations: localIntegrations
2470
2470
  }) {
2471
- const integrations = [
2472
- ...getGlobalTelemetryIntegrations(),
2473
- ...asArray(localIntegrations)
2474
- ];
2471
+ const integrations = localIntegrations != null ? asArray(localIntegrations) : getGlobalTelemetryIntegrations();
2475
2472
  const mergeTelemetryCallback = (key) => mergeCallbacks(
2476
2473
  ...integrations.map((integration) => {
2477
2474
  var _a21;