@mastra/fastembed 1.3.0-alpha.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-alpha.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.72",
53
- "@internal/ai-sdk-v5": "0.0.72",
54
- "@internal/ai-v6": "0.0.72",
55
- "@internal/lint": "0.0.125",
56
- "@internal/types-builder": "0.0.100"
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,244 +0,0 @@
1
- # @mastra/fastembed
2
-
3
- ## 1.3.0-alpha.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.2.0
19
-
20
- ### Minor Changes
21
-
22
- - Random bump ([#18178](https://github.com/mastra-ai/mastra/pull/18178))
23
-
24
- ## 1.2.0-alpha.0
25
-
26
- ### Minor Changes
27
-
28
- - Random bump ([#18178](https://github.com/mastra-ai/mastra/pull/18178))
29
-
30
- ## 1.1.3
31
-
32
- ### Patch Changes
33
-
34
- - 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))
35
-
36
- ## 1.1.3-alpha.0
37
-
38
- ### Patch Changes
39
-
40
- - 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))
41
-
42
- ## 1.1.2
43
-
44
- ### Patch Changes
45
-
46
- - 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))
47
-
48
- ## 1.1.2-alpha.0
49
-
50
- ### Patch Changes
51
-
52
- - 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))
53
-
54
- ## 1.1.1
55
-
56
- ### Patch Changes
57
-
58
- - 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))
59
-
60
- ## 1.1.1-alpha.0
61
-
62
- ### Patch Changes
63
-
64
- - 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))
65
-
66
- ## 1.1.0
67
-
68
- ### Minor Changes
69
-
70
- - 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))
71
-
72
- ## 1.1.0-alpha.0
73
-
74
- ### Minor Changes
75
-
76
- - 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))
77
-
78
- ## 1.0.1
79
-
80
- ### Patch Changes
81
-
82
- - dependencies updates: ([#10195](https://github.com/mastra-ai/mastra/pull/10195))
83
- - Updated dependency [`fastembed@^2.1.0` ↗︎](https://www.npmjs.com/package/fastembed/v/2.1.0) (from `^1.14.4`, in `dependencies`)
84
-
85
- - 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))
86
-
87
- ## 1.0.1-alpha.0
88
-
89
- ### Patch Changes
90
-
91
- - dependencies updates: ([#10195](https://github.com/mastra-ai/mastra/pull/10195))
92
- - Updated dependency [`fastembed@^2.1.0` ↗︎](https://www.npmjs.com/package/fastembed/v/2.1.0) (from `^1.14.4`, in `dependencies`)
93
-
94
- - 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))
95
-
96
- ## 1.0.0
97
-
98
- ### Major Changes
99
-
100
- - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
101
-
102
- - 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))
103
-
104
- - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
105
-
106
- ### Patch Changes
107
-
108
- - Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
109
-
110
- 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`.
111
-
112
- Each package includes:
113
- - **SKILL.md** - Entry point explaining the package's purpose and capabilities
114
- - **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
115
- - **Topic folders** - Conceptual documentation organized by feature area
116
-
117
- 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.
118
-
119
- - Embed AI types to fix peerdeps mismatches ([`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808))
120
-
121
- - 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))
122
-
123
- ## 1.0.0-beta.3
124
-
125
- ### Patch Changes
126
-
127
- - Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
128
-
129
- 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`.
130
-
131
- Each package includes:
132
- - **SKILL.md** - Entry point explaining the package's purpose and capabilities
133
- - **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
134
- - **Topic folders** - Conceptual documentation organized by feature area
135
-
136
- 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.
137
-
138
- ## 1.0.0-beta.2
139
-
140
- ### Patch Changes
141
-
142
- - 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))
143
-
144
- ## 1.0.0-beta.1
145
-
146
- ### Patch Changes
147
-
148
- - Embed AI types to fix peerdeps mismatches ([`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808))
149
-
150
- ## 1.0.0-beta.0
151
-
152
- ### Major Changes
153
-
154
- - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
155
-
156
- - 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))
157
-
158
- - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
159
-
160
- ## 0.10.5
161
-
162
- ### Patch Changes
163
-
164
- - de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
165
-
166
- ## 0.10.5-alpha.0
167
-
168
- ### Patch Changes
169
-
170
- - [#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`.
171
-
172
- ## 0.10.4
173
-
174
- ### Patch Changes
175
-
176
- - [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
177
-
178
- ## 0.10.3
179
-
180
- ### Patch Changes
181
-
182
- - [#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:
183
- - Updated dependency [`ai@^4.3.19` ↗︎](https://www.npmjs.com/package/ai/v/4.3.19) (from `^4.3.16`, in `dependencies`)
184
-
185
- ## 0.10.3-alpha.0
186
-
187
- ### Patch Changes
188
-
189
- - [#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:
190
- - Updated dependency [`ai@^4.3.19` ↗︎](https://www.npmjs.com/package/ai/v/4.3.19) (from `^4.3.16`, in `dependencies`)
191
-
192
- ## 0.10.2
193
-
194
- ### Patch Changes
195
-
196
- - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
197
-
198
- ## 0.10.2-alpha.0
199
-
200
- ### Patch Changes
201
-
202
- - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
203
-
204
- ## 0.10.1
205
-
206
- ### Patch Changes
207
-
208
- - f64b3f7: dependencies updates:
209
- - Updated dependency [`ai@^4.3.16` ↗︎](https://www.npmjs.com/package/ai/v/4.3.16) (from `^3.4.33`, in `dependencies`)
210
-
211
- ## 0.10.1-alpha.0
212
-
213
- ### Patch Changes
214
-
215
- - f64b3f7: dependencies updates:
216
- - Updated dependency [`ai@^4.3.16` ↗︎](https://www.npmjs.com/package/ai/v/4.3.16) (from `^3.4.33`, in `dependencies`)
217
-
218
- ## 0.0.3
219
-
220
- ### Patch Changes
221
-
222
- - 48b8c2c: dependencies updates:
223
- - Updated dependency [`ai@^3.4.33` ↗︎](https://www.npmjs.com/package/ai/v/3.4.33) (from `^3.0.0`, in `dependencies`)
224
-
225
- ## 0.0.3-alpha.0
226
-
227
- ### Patch Changes
228
-
229
- - 48b8c2c: dependencies updates:
230
- - Updated dependency [`ai@^3.4.33` ↗︎](https://www.npmjs.com/package/ai/v/3.4.33) (from `^3.0.0`, in `dependencies`)
231
-
232
- ## 0.0.2
233
-
234
- ### Patch Changes
235
-
236
- - 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)
237
- Added a warning to use the new @mastra/fastembed package instead of the default embedder
238
-
239
- ## 0.0.2-alpha.0
240
-
241
- ### Patch Changes
242
-
243
- - 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)
244
- Added a warning to use the new @mastra/fastembed package instead of the default embedder