strapi-plugin-meilisearch 0.8.0 → 0.8.2

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/README.md CHANGED
@@ -47,7 +47,7 @@ To understand Strapi and how to create an app, see [Strapi's documentation](http
47
47
 
48
48
  ## 🔧 Installation
49
49
 
50
- This package version works with the [v4 of Strapi](https://github.com/strapi/strapi/tree/v4.1.3). If you are using [Strapi v3](https://github.com/strapi/strapi/tree/v3.6.9), please refer to [this README](https://github.com/meilisearch/strapi-plugin-meilisearch/tree/v0.5.1).
50
+ This package version works with the [v4 of Strapi](https://docs.strapi.io/developer-docs/latest/getting-started/introduction.html). If you are using [Strapi v3](https://docs-v3.strapi.io/developer-docs/latest/getting-started/introduction.html), please refer to [this README](https://github.com/meilisearch/strapi-plugin-meilisearch/tree/v3_main).
51
51
 
52
52
  Inside your Strapi app, add the package:
53
53
 
@@ -530,7 +530,7 @@ If you are using [Strapi v3](https://github.com/strapi/strapi/tree/v3.6.9), plea
530
530
 
531
531
  **Supported Meilisearch versions**:
532
532
 
533
- This package only guarantees the compatibility with the [version v0.29.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.29.0).
533
+ This package only guarantees the compatibility with the [version v0.30.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0).
534
534
 
535
535
  **Node / NPM versions**:
536
536
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-meilisearch",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Synchronise and search in your Strapi content-types with Meilisearch",
5
5
  "scripts": {
6
6
  "playground:dev": "yarn --cwd ./playground && yarn --cwd ./playground dev",
@@ -25,8 +25,8 @@
25
25
  "README.md"
26
26
  ],
27
27
  "dependencies": {
28
- "@strapi/utils": "^4.4.3",
29
- "meilisearch": "^0.28.0"
28
+ "@strapi/utils": "^4.5.2",
29
+ "meilisearch": "^0.30.0"
30
30
  },
31
31
  "peerDependencies": {},
32
32
  "author": {
@@ -215,7 +215,7 @@ module.exports = ({ strapi }) => {
215
215
  if (entriesQuery.publicationState === 'preview') {
216
216
  return entries
217
217
  } else {
218
- return entries.filter(entry => !(entry.publishedAt === null))
218
+ return entries.filter(entry => !(entry?.publishedAt === null))
219
219
  }
220
220
  },
221
221
 
@@ -37,15 +37,15 @@ const sanitizeEntries = async function ({
37
37
  entries,
38
38
  })
39
39
 
40
+ // Remove nested
41
+ entries = await config.removeSensitiveFields({ entries })
42
+
40
43
  // Apply transformEntry plugin config.
41
44
  entries = await config.transformEntries({
42
45
  contentType,
43
46
  entries,
44
47
  })
45
48
 
46
- // Remove nested
47
- entries = await config.removeSensitiveFields({ entries })
48
-
49
49
  // Add content-type prefix to id
50
50
  entries = await adapter.addCollectionNamePrefix({
51
51
  contentType,