Skip to content

Commit

Permalink
Merge #272
Browse files Browse the repository at this point in the history
272: Update version for the next release (v0.10.0) r=brunoocasali a=meili-bot

Check CHANGELOG in the Files Changed for the full list of changes in this version.


_This PR is auto-generated._

The automated script updates the version of meilisearch-dart to a new version: "v0.10.0"


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
  • Loading branch information
bors[bot] and meili-bot authored Mar 22, 2023
2 parents f661da5 + 7e51114 commit f763b22
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
[comment]: <> (All notable changes to this project will be documented in this file.)

# 0.10.0
### Changes:

- Add `pagination` settings methods `Future<Pagination> getPagination()`, `Future<Task> resetPagination()`, `Future<Task> updatePagination(Pagination pagination)` on `Index` instances.
- Add `faceting` settings methods `Future<Faceting> getFaceting()`, `Future<Task> resetFaceting()`, `Future<Task> updateFaceting(Faceting faceting)` on `Index` instances.
- Add `typo tolerance` settings methods `Future<TypoTolerance> getTypoTolerance()`, `Future<Task> resetTypoTolerance()`, `Future<Task> updateTypoTolerance(TypoTolerance typoTolerance)` on `Index` instances.
- Add filter-builder style:
- Added `filterExpression` parameter to the `search` method, which takes a `MeiliOperatorExpressionBase`, you can only use the new parameter or the regular `filter` parameter, but not both. If both are provided, `filter` parameter will take priority.
- Added new facade class `Meili` which contains static methods to help create filter expressions.
- Added extension method `toMeiliAttribute()` to String, which is equivalent to `Meili.attr`.
- Added extension method `toMeiliValue()` to `String`,`num`,`DateTime`,`bool`, which are equivalent to `Meili.value`.

- `example:`
This query `await index.search('prince', filterExpression: Meili.eq(Meili.attribute('tag'), Meili.value("Tale")));` is the same as `await index.search('prince', filter: "tag = Tale")`.

- Add `Future<List<Task>> addDocumentsInBatches(List<Map<String, Object?>> documents, { int batchSize = 1000, String? primaryKey })` to `Index` instances.
- Add `Future<List<Task>> updateDocumentsInBatches(List<Map<String, Object?>> documents, { int batchSize = 1000, String? primaryKey })` to `Index` instances.
- Add support to create documents from ndJson and CSV formats directly from `Index` with `addDocumentsNdjson`, `addDocumentsCsv`, `updateDocumentsNdjson`, and `updateDocumentsCsv` methods.
- Add support for `Dio` adapter customization with `MeiliSearchClient.withCustomDio(url, apiKey: "secret", interceptors: [interceptor])` (e.g: you can use this to inject custom code, support to HTTP/2 and more)

Special thanks to [@ahmednfwela](https://github.com/ahmednfwela) :tada:

# 0.9.1
- [web] Fix a bug that affected the web platform regarding the override of `User-Agent`. Now the header used to send the client name information is the `X-Meilisearch-Client` one.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You can install the **meilisearch** package by adding a few lines into `pubspec.

```yaml
dependencies:
meilisearch: ^0.9.1
meilisearch: ^0.10.0
```
Then open your terminal and update dart packages.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.9.1"
version: "0.10.0"
path:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
meilisearch: "0.9.1"
meilisearch: "0.10.0"

dependency_overrides:
meilisearch:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Version {
static const String current = '0.9.1';
static const String current = '0.10.0';

static String get qualifiedVersion {
return "Meilisearch Dart (v$current)";
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: meilisearch
description: Meilisearch Dart is the Meilisearch API client for Dart and Flutter developers.
version: 0.9.1
version: 0.10.0
homepage: https://meilisearch.com
repository: https://github.com/meilisearch/meilisearch-dart
issue_tracker: https://github.com/meilisearch/meilisearch-dart/issues
Expand Down

0 comments on commit f763b22

Please sign in to comment.