Skip to content

Commit db4331c

Browse files
committed
v1.1.3
- `EntityHandler.resolveValueByType`: - Avoid `dev_compiler` bug dart-lang/sdk#48631 when generating JS code.
1 parent dfcfed4 commit db4331c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.3
2+
3+
- `EntityHandler.resolveValueByType`:
4+
- Avoid `dev_compiler` bug https://github.com/dart-lang/sdk/issues/48631 when generating JS code.
5+
16
## 1.1.2
27

38
- Added `ConditionIdIN`: to allow optimized selection of multiple IDs with one query.

lib/src/bones_api_base.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ typedef APILogger = void Function(APIRoot apiRoot, String type, String? message,
2525

2626
class BonesAPI {
2727
// ignore: constant_identifier_names
28-
static const String VERSION = '1.1.2';
28+
static const String VERSION = '1.1.3';
2929

3030
static bool _boot = false;
3131

lib/src/bones_api_entity.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ abstract class EntityHandler<O> with FieldsFromMap {
285285
var entityAsync = entityProvider.getEntityByID(value, type: type.type);
286286

287287
if (entityAsync != null) {
288-
return entityAsync.resolveMapped((entity) {
289-
if (entity != null) return entity as T;
288+
return entityAsync.resolveMapped<T?>((entity) {
289+
if (entity != null) return entity as T?;
290290
return _resolveValueByEntityHandler<T>(value, type, entityProvider);
291291
});
292292
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: bones_api
22
description: Bones_API - A Powerful API backend framework for Dart. Comes with a built-in HTTP Server, routes handler, entity handler, SQL translator, and DB adapters.
3-
version: 1.1.2
3+
version: 1.1.3
44
homepage: https://github.com/Colossus-Services/bones_api
55

66
environment:

0 commit comments

Comments
 (0)