@mastra/vectorize 1.1.4-alpha.0 → 1.1.4

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.
@@ -3,7 +3,7 @@ name: mastra-vectorize
3
3
  description: Documentation for @mastra/vectorize. Use when working with @mastra/vectorize APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/vectorize"
6
- version: "1.1.4-alpha.0"
6
+ version: "1.1.4"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.4-alpha.0",
2
+ "version": "1.1.4",
3
3
  "package": "@mastra/vectorize",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -8,6 +8,8 @@ The CloudflareVector class provides vector search using [Cloudflare Vectorize](h
8
8
 
9
9
  ## Constructor options
10
10
 
11
+ **id** (`string`): Unique identifier for this vector store instance.
12
+
11
13
  **accountId** (`string`): Cloudflare account ID
12
14
 
13
15
  **apiToken** (`string`): Cloudflare API token with Vectorize permissions
@@ -58,7 +60,7 @@ Returns:
58
60
  interface IndexStats {
59
61
  dimension: number
60
62
  count: number
61
- metric: 'cosine' | 'euclidean' | 'dotproduct'
63
+ metric?: 'cosine' | 'euclidean' | 'dotproduct'
62
64
  }
63
65
  ```
64
66
 
@@ -126,7 +128,7 @@ Query results are returned in this format:
126
128
  interface QueryResult {
127
129
  id: string
128
130
  score: number
129
- metadata: Record<string, any>
131
+ metadata?: Record<string, any>
130
132
  vector?: number[]
131
133
  }
132
134
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/vectorize",
3
- "version": "1.1.4-alpha.0",
3
+ "version": "1.1.4",
4
4
  "description": "Cloudflare Vectorize store provider for Mastra",
5
5
  "type": "module",
6
6
  "files": [
@@ -34,9 +34,9 @@
34
34
  "tsx": "^4.23.15",
35
35
  "typescript": "^7.0.2",
36
36
  "vitest": "4.1.12",
37
- "@internal/lint": "0.0.145",
38
- "@internal/types-builder": "0.0.120",
39
- "@mastra/core": "1.80.0-alpha.4"
37
+ "@internal/lint": "0.0.146",
38
+ "@internal/types-builder": "0.0.121",
39
+ "@mastra/core": "1.80.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@mastra/core": ">=1.0.0-0 <2.0.0-0"