chore: Enter pre-release mode and version packages
This commit is contained in:
1 parent
3b917b469a
commit
b57ea22461
102 files changed
+1389
-207
No files matched your search
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "medusa-plugin-meilisearch",
|
||||
"version": "1.0.4",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "Meilisearch search plugin for Medusa",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -19,14 +19,14 @@
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/utils": "^0.0.1",
|
||||
"@medusajs/utils": "^0.0.2-rc.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"lodash": "^4.17.21",
|
||||
"meilisearch": "^0.31.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/medusa": "^1.7.12",
|
||||
"@medusajs/types": "^0.0.1",
|
||||
"@medusajs/medusa": "^1.8.0-rc.0",
|
||||
"@medusajs/types": "^0.0.2-rc.0",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^25.5.4",
|
||||
"typescript": "^4.9.5"
|
||||
|
||||
Reference in new issue
Block a user