@mastra/fastembed 1.3.0 → 1.3.1-alpha.0

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": "@mastra/fastembed",
3
- "version": "1.3.0",
3
+ "version": "1.3.1-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "files": [
22
22
  "dist",
23
- "CHANGELOG.md",
24
23
  "LICENSE-fastembed"
25
24
  ],
26
25
  "homepage": "https://mastra.ai",
@@ -46,14 +45,14 @@
46
45
  "@vitest/ui": "4.1.10",
47
46
  "ai-v4": "npm:ai@4.3.19",
48
47
  "tsdown": "0.22.9",
49
- "typescript": "^6.0.3",
48
+ "typescript": "^7.0.2",
50
49
  "vitest": "4.1.10",
51
50
  "zod": "^4.4.3",
52
- "@internal/ai-sdk-v4": "0.0.73",
53
- "@internal/ai-v6": "0.0.73",
54
- "@internal/types-builder": "0.0.101",
55
- "@internal/lint": "0.0.126",
56
- "@internal/ai-sdk-v5": "0.0.73"
51
+ "@internal/ai-sdk-v4": "0.0.76",
52
+ "@internal/ai-sdk-v5": "0.0.76",
53
+ "@internal/ai-v6": "0.0.76",
54
+ "@internal/lint": "0.0.129",
55
+ "@internal/types-builder": "0.0.104"
57
56
  },
58
57
  "engines": {
59
58
  "node": ">=22.13.0"
package/CHANGELOG.md DELETED
@@ -1,259 +0,0 @@
1
- # @mastra/fastembed
2
-
3
- ## 1.3.0
4
-
5
- ### Minor Changes
6
-
7
- - Added multilingual embedding support to FastEmbed. The multilingual E5 Large model is now available as two role-specific embedding models: use `multilingualE5LargePassage` for text you index and `multilingualE5LargeQuery` for search text. Both produce 1024-dimensional vectors, so your vector index must be created with matching dimensions. ([#22276](https://github.com/mastra-ai/mastra/pull/22276))
8
-
9
- ```typescript
10
- import { Memory } from '@mastra/memory';
11
- import { fastembed } from '@mastra/fastembed';
12
-
13
- const memory = new Memory({
14
- embedder: fastembed.multilingualE5LargePassage,
15
- });
16
- ```
17
-
18
- ## 1.3.0-alpha.0
19
-
20
- ### Minor Changes
21
-
22
- - Added multilingual embedding support to FastEmbed. The multilingual E5 Large model is now available as two role-specific embedding models: use `multilingualE5LargePassage` for text you index and `multilingualE5LargeQuery` for search text. Both produce 1024-dimensional vectors, so your vector index must be created with matching dimensions. ([#22276](https://github.com/mastra-ai/mastra/pull/22276))
23
-
24
- ```typescript
25
- import { Memory } from '@mastra/memory';
26
- import { fastembed } from '@mastra/fastembed';
27
-
28
- const memory = new Memory({
29
- embedder: fastembed.multilingualE5LargePassage,
30
- });
31
- ```
32
-
33
- ## 1.2.0
34
-
35
- ### Minor Changes
36
-
37
- - Random bump ([#18178](https://github.com/mastra-ai/mastra/pull/18178))
38
-
39
- ## 1.2.0-alpha.0
40
-
41
- ### Minor Changes
42
-
43
- - Random bump ([#18178](https://github.com/mastra-ai/mastra/pull/18178))
44
-
45
- ## 1.1.3
46
-
47
- ### Patch Changes
48
-
49
- - Security remediation for the 2026-06-17 "easy-day-js" supply-chain incident. Patch bump to publish clean versions and move the `latest` dist-tag forward, superseding the compromised versions that declared the malicious `easy-day-js` dependency. ([#18056](https://github.com/mastra-ai/mastra/pull/18056))
50
-
51
- ## 1.1.3-alpha.0
52
-
53
- ### Patch Changes
54
-
55
- - Security remediation for the 2026-06-17 "easy-day-js" supply-chain incident. Patch bump to publish clean versions and move the `latest` dist-tag forward, superseding the compromised versions that declared the malicious `easy-day-js` dependency. ([#18056](https://github.com/mastra-ai/mastra/pull/18056))
56
-
57
- ## 1.1.2
58
-
59
- ### Patch Changes
60
-
61
- - Fixed FastEmbed so repeated embedding calls reuse loaded models instead of loading a new model each time. ([#17303](https://github.com/mastra-ai/mastra/pull/17303))
62
-
63
- ## 1.1.2-alpha.0
64
-
65
- ### Patch Changes
66
-
67
- - Fixed FastEmbed so repeated embedding calls reuse loaded models instead of loading a new model each time. ([#17303](https://github.com/mastra-ai/mastra/pull/17303))
68
-
69
- ## 1.1.1
70
-
71
- ### Patch Changes
72
-
73
- - Removed zod as a required peer dependency. Internal schemas now use plain JSON Schema objects instead of zod runtime. ([#16726](https://github.com/mastra-ai/mastra/pull/16726))
74
-
75
- ## 1.1.1-alpha.0
76
-
77
- ### Patch Changes
78
-
79
- - Removed zod as a required peer dependency. Internal schemas now use plain JSON Schema objects instead of zod runtime. ([#16726](https://github.com/mastra-ai/mastra/pull/16726))
80
-
81
- ## 1.1.0
82
-
83
- ### Minor Changes
84
-
85
- - Replace the abandoned `fastembed` npm dependency with a maintained, vendored implementation. The public API and all embedding models remain unchanged — no migration needed. ([#16772](https://github.com/mastra-ai/mastra/pull/16772))
86
-
87
- ## 1.1.0-alpha.0
88
-
89
- ### Minor Changes
90
-
91
- - Replace the abandoned `fastembed` npm dependency with a maintained, vendored implementation. The public API and all embedding models remain unchanged — no migration needed. ([#16772](https://github.com/mastra-ai/mastra/pull/16772))
92
-
93
- ## 1.0.1
94
-
95
- ### Patch Changes
96
-
97
- - dependencies updates: ([#10195](https://github.com/mastra-ai/mastra/pull/10195))
98
- - Updated dependency [`fastembed@^2.1.0` ↗︎](https://www.npmjs.com/package/fastembed/v/2.1.0) (from `^1.14.4`, in `dependencies`)
99
-
100
- - Add `warmup()` export to pre-download fastembed models without creating ONNX sessions. This prevents concurrent download race conditions when multiple consumers call `FlagEmbedding.init()` in parallel, which could corrupt the model archive and cause `Z_BUF_ERROR`. ([#13752](https://github.com/mastra-ai/mastra/pull/13752))
101
-
102
- ## 1.0.1-alpha.0
103
-
104
- ### Patch Changes
105
-
106
- - dependencies updates: ([#10195](https://github.com/mastra-ai/mastra/pull/10195))
107
- - Updated dependency [`fastembed@^2.1.0` ↗︎](https://www.npmjs.com/package/fastembed/v/2.1.0) (from `^1.14.4`, in `dependencies`)
108
-
109
- - Add `warmup()` export to pre-download fastembed models without creating ONNX sessions. This prevents concurrent download race conditions when multiple consumers call `FlagEmbedding.init()` in parallel, which could corrupt the model archive and cause `Z_BUF_ERROR`. ([#13752](https://github.com/mastra-ai/mastra/pull/13752))
110
-
111
- ## 1.0.0
112
-
113
- ### Major Changes
114
-
115
- - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
116
-
117
- - Upgraded to AI SDK v5 (specification version v2) for compatibility with @mastra/core. Default exports now use v2 specification. Legacy v1 exports available for backwards compatibility via `fastembed.smallLegacy` and `fastembed.baseLegacy`. ([#9349](https://github.com/mastra-ai/mastra/pull/9349))
118
-
119
- - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
120
-
121
- ### Patch Changes
122
-
123
- - Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
124
-
125
- Mastra packages now include embedded documentation in the published npm package under `dist/docs/`. This enables coding agents and AI assistants to understand and use the framework by reading documentation directly from `node_modules`.
126
-
127
- Each package includes:
128
- - **SKILL.md** - Entry point explaining the package's purpose and capabilities
129
- - **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
130
- - **Topic folders** - Conceptual documentation organized by feature area
131
-
132
- Documentation is driven by the `packages` frontmatter field in MDX files, which maps docs to their corresponding packages. CI validation ensures all docs include this field.
133
-
134
- - Embed AI types to fix peerdeps mismatches ([`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808))
135
-
136
- - Added support for AI SDK v6 embedding models (specification version v3) in memory and vector modules. Fixed TypeScript error where `ModelRouterEmbeddingModel` was trying to implement a union type instead of `EmbeddingModelV2` directly. ([#11362](https://github.com/mastra-ai/mastra/pull/11362))
137
-
138
- ## 1.0.0-beta.3
139
-
140
- ### Patch Changes
141
-
142
- - Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
143
-
144
- Mastra packages now include embedded documentation in the published npm package under `dist/docs/`. This enables coding agents and AI assistants to understand and use the framework by reading documentation directly from `node_modules`.
145
-
146
- Each package includes:
147
- - **SKILL.md** - Entry point explaining the package's purpose and capabilities
148
- - **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
149
- - **Topic folders** - Conceptual documentation organized by feature area
150
-
151
- Documentation is driven by the `packages` frontmatter field in MDX files, which maps docs to their corresponding packages. CI validation ensures all docs include this field.
152
-
153
- ## 1.0.0-beta.2
154
-
155
- ### Patch Changes
156
-
157
- - Added support for AI SDK v6 embedding models (specification version v3) in memory and vector modules. Fixed TypeScript error where `ModelRouterEmbeddingModel` was trying to implement a union type instead of `EmbeddingModelV2` directly. ([#11362](https://github.com/mastra-ai/mastra/pull/11362))
158
-
159
- ## 1.0.0-beta.1
160
-
161
- ### Patch Changes
162
-
163
- - Embed AI types to fix peerdeps mismatches ([`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808))
164
-
165
- ## 1.0.0-beta.0
166
-
167
- ### Major Changes
168
-
169
- - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
170
-
171
- - Upgraded to AI SDK v5 (specification version v2) for compatibility with @mastra/core. Default exports now use v2 specification. Legacy v1 exports available for backwards compatibility via `fastembed.smallLegacy` and `fastembed.baseLegacy`. ([#9349](https://github.com/mastra-ai/mastra/pull/9349))
172
-
173
- - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
174
-
175
- ## 0.10.5
176
-
177
- ### Patch Changes
178
-
179
- - de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
180
-
181
- ## 0.10.5-alpha.0
182
-
183
- ### Patch Changes
184
-
185
- - [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
186
-
187
- ## 0.10.4
188
-
189
- ### Patch Changes
190
-
191
- - [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
192
-
193
- ## 0.10.3
194
-
195
- ### Patch Changes
196
-
197
- - [#6919](https://github.com/mastra-ai/mastra/pull/6919) [`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
198
- - Updated dependency [`ai@^4.3.19` ↗︎](https://www.npmjs.com/package/ai/v/4.3.19) (from `^4.3.16`, in `dependencies`)
199
-
200
- ## 0.10.3-alpha.0
201
-
202
- ### Patch Changes
203
-
204
- - [#6919](https://github.com/mastra-ai/mastra/pull/6919) [`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
205
- - Updated dependency [`ai@^4.3.19` ↗︎](https://www.npmjs.com/package/ai/v/4.3.19) (from `^4.3.16`, in `dependencies`)
206
-
207
- ## 0.10.2
208
-
209
- ### Patch Changes
210
-
211
- - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
212
-
213
- ## 0.10.2-alpha.0
214
-
215
- ### Patch Changes
216
-
217
- - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
218
-
219
- ## 0.10.1
220
-
221
- ### Patch Changes
222
-
223
- - f64b3f7: dependencies updates:
224
- - Updated dependency [`ai@^4.3.16` ↗︎](https://www.npmjs.com/package/ai/v/4.3.16) (from `^3.4.33`, in `dependencies`)
225
-
226
- ## 0.10.1-alpha.0
227
-
228
- ### Patch Changes
229
-
230
- - f64b3f7: dependencies updates:
231
- - Updated dependency [`ai@^4.3.16` ↗︎](https://www.npmjs.com/package/ai/v/4.3.16) (from `^3.4.33`, in `dependencies`)
232
-
233
- ## 0.0.3
234
-
235
- ### Patch Changes
236
-
237
- - 48b8c2c: dependencies updates:
238
- - Updated dependency [`ai@^3.4.33` ↗︎](https://www.npmjs.com/package/ai/v/3.4.33) (from `^3.0.0`, in `dependencies`)
239
-
240
- ## 0.0.3-alpha.0
241
-
242
- ### Patch Changes
243
-
244
- - 48b8c2c: dependencies updates:
245
- - Updated dependency [`ai@^3.4.33` ↗︎](https://www.npmjs.com/package/ai/v/3.4.33) (from `^3.0.0`, in `dependencies`)
246
-
247
- ## 0.0.2
248
-
249
- ### Patch Changes
250
-
251
- - 3a5f1e1: Created a new @mastra/fastembed package based on the default embedder in @mastra/core as the default embedder will be removed in a breaking change (May 20th)
252
- Added a warning to use the new @mastra/fastembed package instead of the default embedder
253
-
254
- ## 0.0.2-alpha.0
255
-
256
- ### Patch Changes
257
-
258
- - 3a5f1e1: Created a new @mastra/fastembed package based on the default embedder in @mastra/core as the default embedder will be removed in a breaking change (May 20th)
259
- Added a warning to use the new @mastra/fastembed package instead of the default embedder