@ai-sdk/google 4.0.27 → 4.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "4.0.27",
3
+ "version": "4.0.29",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,14 +36,14 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "4.0.4",
39
- "@ai-sdk/provider-utils": "5.0.14"
39
+ "@ai-sdk/provider-utils": "5.0.16"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "22.19.19",
43
43
  "tsup": "^8.5.1",
44
44
  "typescript": "5.8.3",
45
45
  "zod": "3.25.76",
46
- "@ai-sdk/test-server": "2.0.0",
46
+ "@ai-sdk/test-server": "2.0.1",
47
47
  "@vercel/ai-tsconfig": "0.0.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -5,7 +5,7 @@ import type {
5
5
  Experimental_RealtimeModelV4ServerEvent as RealtimeModelV4ServerEvent,
6
6
  Experimental_RealtimeModelV4SessionConfig as RealtimeModelV4SessionConfig,
7
7
  } from '@ai-sdk/provider';
8
- import { safeParseJSON } from '@ai-sdk/provider-utils';
8
+ import { isRecord, safeParseJSON } from '@ai-sdk/provider-utils';
9
9
  import { convertJSONSchemaToOpenAPISchema } from '../convert-json-schema-to-openapi-schema';
10
10
  import { getModelPath } from '../get-model-path';
11
11
  import type { GoogleRealtimeModelOptions } from './google-realtime-model-options';
@@ -46,10 +46,6 @@ type GoogleRealtimeWireEvent = {
46
46
  };
47
47
  };
48
48
 
49
- function isRecord(value: unknown): value is Record<string, unknown> {
50
- return value != null && typeof value === 'object' && !Array.isArray(value);
51
- }
52
-
53
49
  /**
54
50
  * Stateful event mapper for Google's Gemini Live API.
55
51
  *