@ai-sdk/provider 4.0.17 → 4.0.18

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-sdk/provider
2
2
 
3
+ ## 4.0.18
4
+
5
+ ### Patch Changes
6
+
7
+ - ffb0e76: fix(provider): preserve opaque file URI strings for provider serialization
8
+
3
9
  ## 4.0.17
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -52,6 +52,13 @@ interface SharedV4FileDataData {
52
52
  interface SharedV4FileDataUrl {
53
53
  type: 'url';
54
54
  url: URL;
55
+ /**
56
+ * The original URL string before it was parsed into a `URL`.
57
+ *
58
+ * This is available when parsing would change the string and a provider
59
+ * needs to preserve an opaque non-HTTP URI exactly.
60
+ */
61
+ originalUrl?: string;
55
62
  }
56
63
  /**
57
64
  * File data variant containing a provider reference (`{ [provider]: id }`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -15,6 +15,14 @@ export interface SharedV4FileDataData {
15
15
  export interface SharedV4FileDataUrl {
16
16
  type: 'url';
17
17
  url: URL;
18
+
19
+ /**
20
+ * The original URL string before it was parsed into a `URL`.
21
+ *
22
+ * This is available when parsing would change the string and a provider
23
+ * needs to preserve an opaque non-HTTP URI exactly.
24
+ */
25
+ originalUrl?: string;
18
26
  }
19
27
 
20
28
  /**