@ai-sdk/provider-utils 3.0.0-canary.13 → 3.0.0-canary.14

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,16 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 3.0.0-canary.14
4
+
5
+ ### Major Changes
6
+
7
+ - 957b739: chore (provider-utils): rename TestServerCall.requestBody to requestBodyJson
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [9bd5ab5]
12
+ - @ai-sdk/provider@2.0.0-canary.13
13
+
3
14
  ## 3.0.0-canary.13
4
15
 
5
16
  ### Patch Changes
@@ -58,7 +58,7 @@ type UrlHandlers<URLS extends {
58
58
  declare class TestServerCall {
59
59
  private request;
60
60
  constructor(request: Request);
61
- get requestBody(): Promise<any>;
61
+ get requestBodyJson(): Promise<any>;
62
62
  get requestBodyMultipart(): Promise<Record<string, any>> | null;
63
63
  get requestCredentials(): RequestCredentials;
64
64
  get requestHeaders(): Record<string, string>;
@@ -58,7 +58,7 @@ type UrlHandlers<URLS extends {
58
58
  declare class TestServerCall {
59
59
  private request;
60
60
  constructor(request: Request);
61
- get requestBody(): Promise<any>;
61
+ get requestBodyJson(): Promise<any>;
62
62
  get requestBodyMultipart(): Promise<Record<string, any>> | null;
63
63
  get requestCredentials(): RequestCredentials;
64
64
  get requestHeaders(): Record<string, string>;
@@ -18505,8 +18505,7 @@ var TestServerCall = class {
18505
18505
  constructor(request) {
18506
18506
  this.request = request;
18507
18507
  }
18508
- // TODO: rename to requestBodyJson
18509
- get requestBody() {
18508
+ get requestBodyJson() {
18510
18509
  return this.request.text().then(JSON.parse);
18511
18510
  }
18512
18511
  get requestBodyMultipart() {