Skip to content

Commit 7c7f081

Browse files
bors[bot]meili-botbidoubiwa
authored
Merge #297
297: Changes related to the next Meilisearch release (v0.28.0) r=brunoocasali a=meili-bot Related to this issue: meilisearch/integration-guides#205 This PR: - gathers the changes related to the next Meilisearch release (v0.28.0) so that this package is ready when the official release is out. - should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases). - might eventually contain test failures until the Meilisearch v0.28.0 is out. ⚠️ This PR should NOT be merged until the next release of Meilisearch (v0.28.0) is out. _This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/master/guides/pre-release-week.md) purpose._ Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Charlotte Vermandel <charlottevermandel@gmail.com> Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
2 parents 216638f + d59b8e6 commit 7c7f081

19 files changed

+2547
-855
lines changed

.code-samples.meilisearch.yaml

Lines changed: 132 additions & 81 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "meilisearch-sdk"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
authors = ["Mubelotix <mubelotix@gmail.com>"]
55
edition = "2018"
66
description = "Rust wrapper for the Meilisearch API. Meilisearch is a powerful, fast, open-source, easy to use and deploy search engine."
@@ -24,6 +24,7 @@ yaup = "0.2.0"
2424
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2525
futures = "0.3"
2626
isahc = { version = "1.0", features = ["http2", "text-decoding"], default_features = false }
27+
uuid = { version = "1.1.2", features = ["v4"] }
2728

2829
[target.'cfg(target_arch = "wasm32")'.dependencies]
2930
js-sys = "0.3.47"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5050

5151
```toml
5252
[dependencies]
53-
meilisearch-sdk = "0.17.0"
53+
meilisearch-sdk = "0.18.0"
5454
```
5555

5656
The following optional dependencies may also be useful:
@@ -224,7 +224,7 @@ Json output:
224224
],
225225
"offset": 0,
226226
"limit": 20,
227-
"nbHits": 1,
227+
"estimatedTotalHits": 1,
228228
"processingTimeMs": 0,
229229
"query": "wonder"
230230
}
@@ -242,7 +242,7 @@ WARNING: `meilisearch-sdk` will panic if no Window is available (ex: Web extensi
242242

243243
## 🤖 Compatibility with Meilisearch
244244

245-
This package only guarantees the compatibility with the [version v0.27.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0).
245+
This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).
246246

247247
## ⚙️ Development Workflow and Contributing
248248

README.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5050

5151
```toml
5252
[dependencies]
53-
meilisearch-sdk = "0.17.0"
53+
meilisearch-sdk = "0.18.0"
5454
```
5555

5656
The following optional dependencies may also be useful:
@@ -97,7 +97,7 @@ WARNING: `meilisearch-sdk` will panic if no Window is available (ex: Web extensi
9797

9898
## 🤖 Compatibility with Meilisearch
9999

100-
This package only guarantees the compatibility with the [version v0.27.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0).
100+
This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).
101101

102102
## ⚙️ Development Workflow and Contributing
103103

meilisearch-test-macro/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn test_get_tasks() -> Result<(), Error> {
2525

2626
let tasks = index.get_tasks().await?;
2727
// The only task is the creation of the index
28-
assert_eq!(status.len(), 1);
28+
assert_eq!(status.results.len(), 1);
2929

3030
index.delete()
3131
.await?
@@ -52,7 +52,7 @@ With this macro, all these problems are solved. See a rewrite of this test:
5252
async fn test_get_tasks(index: Index, client: Client) -> Result<(), Error> {
5353
let tasks = index.get_tasks().await?;
5454
// The only task is the creation of the index
55-
assert_eq!(status.len(), 1);
55+
assert_eq!(status.results.len(), 1);
5656
}
5757
```
5858

0 commit comments

Comments
 (0)