chore: Enter pre-release mode and version packages
This commit is contained in:
@@ -1,5 +1,83 @@
|
||||
# Change Log
|
||||
|
||||
## 2.0.0-rc.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#3377](https://github.com/medusajs/medusa/pull/3377) [`7e17e0ddc`](https://github.com/medusajs/medusa/commit/7e17e0ddc2e6b2891e9ee1420b04a541899d2a9d) Thanks [@olivermrbl](https://github.com/olivermrbl)! - feat(medusa-plugin-meilisearch): Update + improve Meilisearch plugin
|
||||
|
||||
**What**
|
||||
|
||||
- Bumps `meilisearch` dep to latest major
|
||||
- Migrates plugin to TypeScript
|
||||
- Changes the way indexes are configured in `medusa-config.js`:
|
||||
|
||||
**Before**
|
||||
|
||||
```
|
||||
{
|
||||
resolve: `medusa-plugin-meilisearch`,
|
||||
options: {
|
||||
config: { host: "...", apiKey: "..." },
|
||||
settings: {
|
||||
products: {
|
||||
searchableAttributes: ["title"],
|
||||
displayedAttributes: ["title"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
**After**
|
||||
|
||||
```
|
||||
{
|
||||
resolve: `medusa-plugin-meilisearch`,
|
||||
options: {
|
||||
config: { host: "...", apiKey: "..." },
|
||||
settings: {
|
||||
products: {
|
||||
**indexSettings**: {
|
||||
searchableAttributes: ["title"],
|
||||
displayedAttributes: ["title"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
This is done to allow for additional configuration of indexes, that are not necessarily passed on query-time.
|
||||
|
||||
We introduce two new settings:
|
||||
|
||||
```
|
||||
settings: {
|
||||
products: {
|
||||
indexSettings: {
|
||||
searchableAttributes: ["title"],
|
||||
displayedAttributes: ["title"],,
|
||||
},
|
||||
primaryKey: "id"
|
||||
transformer: (document) => ({ id: "yo" })
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
Meilisearch changed their primary key inference in the major release. Now we must be explicit when multiple properties end with `id`. Read more in their [docs](https://docs.meilisearch.com/learn/core_concepts/primary_key.html#primary-field).
|
||||
|
||||
The transformer allows developers to specify how their documents are stored in Meilisearch. It is configurable for each index.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#3510](https://github.com/medusajs/medusa/pull/3510) [`74bc4b16a`](https://github.com/medusajs/medusa/commit/74bc4b16a07f78668003ca930bf2a0d928897ceb) Thanks [@olivermrbl](https://github.com/olivermrbl)! - feat(medusa-plugin-algolia): Revamp Algolia search plugin
|
||||
|
||||
- [#3531](https://github.com/medusajs/medusa/pull/3531) [`4e9d257d3`](https://github.com/medusajs/medusa/commit/4e9d257d3bf76703ef5be8ca054cc9f0f7339def) Thanks [@carlos-r-l-rodrigues](https://github.com/carlos-r-l-rodrigues)! - Remove dependency on @medusajs/medusa from Inventory and Stock-Location Modules
|
||||
|
||||
- Updated dependencies [[`74bc4b16a`](https://github.com/medusajs/medusa/commit/74bc4b16a07f78668003ca930bf2a0d928897ceb), [`4e9d257d3`](https://github.com/medusajs/medusa/commit/4e9d257d3bf76703ef5be8ca054cc9f0f7339def)]:
|
||||
- @medusajs/utils@0.0.2-rc.0
|
||||
|
||||
## 1.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
Reference in New Issue
Block a user