chore(release): v1.8.0
This commit is contained in:
1 parent
1044a328b2
commit
66c59d54ff
217 files changed
+1553
-1372
No files matched your search
@@ -1,5 +1,85 @@
|
||||
# Change Log
|
||||
|
||||
## 2.0.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
|
||||
|
||||
- [#3685](https://github.com/medusajs/medusa/pull/3685) [`8ddb3952c`](https://github.com/medusajs/medusa/commit/8ddb3952c045e6c05c8d0f6922f0d4ba30cf3bd4) Thanks [@olivermrbl](https://github.com/olivermrbl)! - chore: Fix RC package versions
|
||||
|
||||
- [#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 [[`8ddb3952c`](https://github.com/medusajs/medusa/commit/8ddb3952c045e6c05c8d0f6922f0d4ba30cf3bd4), [`a0c919a8d`](https://github.com/medusajs/medusa/commit/a0c919a8d01ca5edf62336de48e9a112e3822f38), [`74bc4b16a`](https://github.com/medusajs/medusa/commit/74bc4b16a07f78668003ca930bf2a0d928897ceb), [`4e9d257d3`](https://github.com/medusajs/medusa/commit/4e9d257d3bf76703ef5be8ca054cc9f0f7339def)]:
|
||||
- @medusajs/utils@1.8.0
|
||||
|
||||
## 2.0.0-rc.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "medusa-plugin-meilisearch",
|
||||
"version": "2.0.0-rc.2",
|
||||
"version": "2.0.0",
|
||||
"description": "Meilisearch search plugin for Medusa",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -19,14 +19,14 @@
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/utils": "0.0.2-rc.2",
|
||||
"@medusajs/utils": "1.8.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"lodash": "^4.17.21",
|
||||
"meilisearch": "^0.31.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/medusa": "1.8.0-rc.8",
|
||||
"@medusajs/types": "0.0.2-rc.1",
|
||||
"@medusajs/medusa": "1.8.0",
|
||||
"@medusajs/types": "1.8.0",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^25.5.4",
|
||||
"typescript": "^4.9.5"
|
||||
|
||||
Reference in new issue
Block a user