·
11 commits
to refs/heads/main
since this release
This release adds new features related to Meilisearch 1.14.
⚠️ Breaking changes
Important
The Meilisearch class now accepts a requestInit
parameter instead of requestConfig
. Parameters of requestInit
are the same, except it no longer accepts signal
.
const client = new Meilisearch({
host: 'https://edge.meilisearch.com',
apiKey: 'your meilisearch API key',
// `requestConfig` is removed, use `requestInit` instead
requestInit: {
headers: {
"A-Http-Header": "The Value",
},
},
});
Migration guide: tasks promises now have a "waitTask" method
// Replace this
const task = client.createIndex("test");
await client.waitForTask(task.taskUid);
// By this
await client.createIndex("test").waitTask();
Important
TaskClient
is no longer exported, use it through the Meilisearch classtasks
property (e.g.client.tasks
) or Index class (e.g.client.index('index').tasks
)Batch
,EnqueuedTask
, andTask
are no longer classes (the types are still exported)- Date properties on
Batch
,EnqueuedTask
, andTask
are now string. They can be converted to date using i.e.new Date(string)
- Renamed
MeiliSearchTimeOutError
toMeiliSearchRequestTimeOutError
🚀 Enhancements
- Adds new features related to Meilisearch 1.14 (#1914) @Strift
- Add embedding metrics (#1888) @consoleLogIt
- Add documents database metrics to indexStats type (#1889) @consoleLogIt
- Add usedDatabaseSize field to stats type (#1890) @consoleLogIt
- Implement the experimental feature for remote federated search requests. (#1891) @consoleLogIt
- Improve
TaskClient
,BatchClient
and associated types (#1825) @flevi29
🐛 Bug Fixes
- Refactor
HttpRequests
(#1741) @flevi29 - Remove custom TypeScript ESLint rules and adapt code, fix
HttpRequests
issue where timeout errors sometimes weren't properly thrown (#1749) @Barabasbalazs - Improve
TaskClient
,BatchClient
and associated types (#1825) @flevi29
⚙️ Maintenance/misc
- Update Vitest, ESLint and plugins, adapt code (#1900) @flevi29
- Remove hint about bad Meilisearch version (#1848) @flevi29
- Update Vite and Vitest (#1847) @flevi29
- Improve
HttpRequests
(#1741) @flevi29 - Add
husky
and configurelint-staged
(#1861) @flevi29 - Fix
package.json
"repository"
field (#1865) @flevi29 - Remove BORS, enable merge queues in actions (#1896) @flevi29
- Remove custom TypeScript ESLint rules and adapt code, fix
HttpRequests
issue where timeout errors sometimes weren't properly thrown (#1749) @Barabasbalazs - Improve
TaskClient
,BatchClient
and associated types (#1825) @flevi29
Thanks again to @Barabasbalazs, @Strift, @consoleLogIt, and @flevi29! 🎉