Skip to content

Commit 7ccec3b

Browse files
committed
0.5.0 release.
1 parent 736ce01 commit 7ccec3b

20 files changed

+45
-32
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.5.0
2+
3+
* Added support for nested object fields.
4+
* Updated dependencies.cd
5+
16
# 0.4.0
27

38
* Requires Dart 3.0 or later.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Add `typesense` as a [dependency in your pubspec.yaml file](https://flutter.dev/
1212

1313
```@yaml
1414
dependencies:
15-
typesense: ^0.4.0
15+
typesense: ^0.5.0
1616
```
1717

1818
## Usage
@@ -84,6 +84,7 @@ Make sure to [README](example/console-simple/README.md) beforehand.
8484

8585
| Typesense Server | typesense-dart |
8686
|------------------|----------------|
87+
| \>= v0.24.0 | \>= v0.5.0 |
8788
| \>= v0.22.0 | \>= v0.3.0 |
8889
| \>= v0.21.0 | \>= v0.1.1 |
8990

analysis_options.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include: package:lints/recommended.yaml
1+
include: package:lints/core.yaml

example/console-simple/pubspec.lock

+12-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ packages:
4545
dependency: transitive
4646
description:
4747
name: http
48-
sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
48+
sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
4949
url: "https://pub.dev"
5050
source: hosted
51-
version: "1.1.0"
51+
version: "1.2.1"
5252
http_parser:
5353
dependency: transitive
5454
description:
@@ -127,6 +127,14 @@ packages:
127127
path: "../.."
128128
relative: true
129129
source: path
130-
version: "0.3.2"
130+
version: "0.5.0"
131+
web:
132+
dependency: transitive
133+
description:
134+
name: web
135+
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
136+
url: "https://pub.dev"
137+
source: hosted
138+
version: "0.5.1"
131139
sdks:
132-
dart: ">=3.0.0 <4.0.0"
140+
dart: ">=3.3.2 <4.0.0"

lib/src/exceptions/import_error.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of 'exceptions.dart';
22

33
class ImportError implements TypesenseException {
44
final String message;

lib/src/exceptions/missing_configuration.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of 'exceptions.dart';
22

33
class MissingConfiguration implements TypesenseException {
44
final String message;

lib/src/exceptions/request_exceptions/http_error.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// The request has failed because of some network layer issues like
44
/// connection timeouts, etc.

lib/src/exceptions/request_exceptions/object_already_exists.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// 409 Conflict
44
class ObjectAlreadyExists extends RequestException {

lib/src/exceptions/request_exceptions/object_not_found.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// 404 Not Found
44
class ObjectNotFound extends RequestException {

lib/src/exceptions/request_exceptions/object_unprocessable.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// 422 Unprocessable Entity
44
class ObjectUnprocessable extends RequestException {

lib/src/exceptions/request_exceptions/request_exception.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
abstract class RequestException implements TypesenseException {
44
final String message;

lib/src/exceptions/request_exceptions/request_malformed.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// 400 Bad Request
44
class RequestMalformed extends RequestException {

lib/src/exceptions/request_exceptions/request_unauthorized.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// 401 Unauthorized
44
class RequestUnauthorized extends RequestException {

lib/src/exceptions/request_exceptions/server_error.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of exceptions;
1+
part of '../exceptions.dart';
22

33
/// 5xx server errors
44
class ServerError extends RequestException {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
part of exceptions;
1+
part of 'exceptions.dart';
22

33
abstract class TypesenseException implements Exception {}

lib/src/models/field.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of models;
1+
part of 'models.dart';
22

33
class Field {
44
/// [name] of the field.

lib/src/models/node.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of models;
1+
part of 'models.dart';
22

33
class Node {
44
late final Uri uri;

lib/src/models/schema.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of models;
1+
part of 'models.dart';
22

33
abstract class BaseSchema {
44
/// [fields] used for querying, filtering and faceting.

lib/src/services/node_pool.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ class NodePool {
3333
} else if (_nodes != null) {
3434
_incrementNodeIndex(); // Keep rotating the nodes for each request.
3535

36-
for (var i = 0; i < _nodes!.length; i++, _incrementNodeIndex()) {
37-
final candidateNode = _nodes![_index]..client ??= http.Client();
36+
for (var i = 0; i < _nodes.length; i++, _incrementNodeIndex()) {
37+
final candidateNode = _nodes[_index]..client ??= http.Client();
3838

3939
if (_canUse(candidateNode)) {
4040
return candidateNode;
4141
}
4242
}
4343

4444
// None of the nodes can be used, returning the next node.
45-
return _nodes![_index];
45+
return _nodes[_index];
4646
} else if (_nearestNode != null) {
47-
return _nearestNode!;
47+
return _nearestNode;
4848
}
4949

5050
throw MissingConfiguration(

pubspec.yaml

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
name: typesense
22
description: Dart client library for accessing the HTTP API of Typesense search engine.
3-
version: 0.4.0
4-
homepage: https://typesense.org/
3+
version: 0.5.0
54
repository: https://github.com/typesense/typesense-dart
65

76
environment:
8-
sdk: ^3.0.0
7+
sdk: ^3.3.2
98

109
dependencies:
11-
http: ^1.1.0
10+
http: ^1.2.1
1211
crypto: ^3.0.3
1312

1413
dev_dependencies:
15-
test: ^1.21.4
16-
mockito: ^5.2.0
17-
lints: ^2.0.0
18-
build_runner: ^2.1.11
14+
test: ^1.25.2
15+
mockito: ^5.4.4
16+
lints: ^3.0.0
17+
build_runner: ^2.4.8

0 commit comments

Comments
 (0)