@ai-sdk/provider 2.0.4 → 2.0.5

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
+ ## 2.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 594787e: fix(provider): preserve opaque file URI strings for provider serialization
8
+
3
9
  ## 2.0.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -654,6 +654,13 @@ interface LanguageModelV2FilePart {
654
654
  */
655
655
  data: LanguageModelV2DataContent;
656
656
  /**
657
+ * The original URL string before it was parsed into a `URL`.
658
+ *
659
+ * This is available when parsing would change the string and a provider
660
+ * needs to preserve an opaque non-HTTP URI exactly.
661
+ */
662
+ originalUrl?: string;
663
+ /**
657
664
  IANA media type of the file.
658
665
 
659
666
  Can support wildcards, e.g. `image/*` (in which case the provider needs to take appropriate action).
package/dist/index.d.ts CHANGED
@@ -654,6 +654,13 @@ interface LanguageModelV2FilePart {
654
654
  */
655
655
  data: LanguageModelV2DataContent;
656
656
  /**
657
+ * The original URL string before it was parsed into a `URL`.
658
+ *
659
+ * This is available when parsing would change the string and a provider
660
+ * needs to preserve an opaque non-HTTP URI exactly.
661
+ */
662
+ originalUrl?: string;
663
+ /**
657
664
  IANA media type of the file.
658
665
 
659
666
  Can support wildcards, e.g. `image/*` (in which case the provider needs to take appropriate action).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",