ai 7.0.10 → 7.0.11

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,11 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 0a87626: fix(ai): replace dynamic import() with loadBuiltinModule for diagnostics_channel to fix React Native/Hermes builds
8
+
3
9
  ## 7.0.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1089,7 +1089,7 @@ import {
1089
1089
  } from "@ai-sdk/provider-utils";
1090
1090
 
1091
1091
  // src/version.ts
1092
- var VERSION = true ? "7.0.10" : "0.0.0-test";
1092
+ var VERSION = true ? "7.0.11" : "0.0.0-test";
1093
1093
 
1094
1094
  // src/util/download/download.ts
1095
1095
  var download = async ({
@@ -4011,10 +4011,9 @@ async function loadDiagnosticsChannel() {
4011
4011
  return void 0;
4012
4012
  }
4013
4013
  if (diagnosticsChannelPromise == null) {
4014
- diagnosticsChannelPromise = import(
4015
- /* webpackIgnore: true */
4016
- "diagnostics_channel"
4017
- ).catch(() => void 0);
4014
+ diagnosticsChannelPromise = Promise.resolve(
4015
+ loadBuiltinModule("node:diagnostics_channel")
4016
+ );
4018
4017
  }
4019
4018
  return diagnosticsChannelPromise;
4020
4019
  }