Upgraded required SDK >= 2.18.0

This commit is contained in:
thomashii@dukefirehawk.com 2022-11-19 08:26:45 +08:00
parent 0fa22e65e4
commit d3c672823a
6 changed files with 8 additions and 6 deletions

View file

@ -21,7 +21,7 @@ jobs:
- uses: dart-lang/setup-dart@v1 - uses: dart-lang/setup-dart@v1
with: with:
sdk: "2.17.0" sdk: "2.18.0"
- id: angel3_container_upgrade - id: angel3_container_upgrade
name: angel3_container; Upgrade depedencies name: angel3_container; Upgrade depedencies
@ -87,7 +87,7 @@ jobs:
- uses: dart-lang/setup-dart@v1 - uses: dart-lang/setup-dart@v1
with: with:
sdk: "2.17.0" sdk: "2.18.0"
# Angel3 ORM # Angel3 ORM
- id: angel3_orm_upgrade - id: angel3_orm_upgrade

View file

@ -2,6 +2,7 @@
## 7.1.0 ## 7.1.0
* [Breaking] Require Dart >= 2.18
* Upgraded to `analyzer` 5.x.x * Upgraded to `analyzer` 5.x.x
* Replaced deprecated `element2` with `element` * Replaced deprecated `element2` with `element`

View file

@ -4,7 +4,7 @@ description: Code generators for Angel3 ORM. Generates query builder classes.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_generator repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_generator
environment: environment:
sdk: '>=2.17.0 <3.0.0' sdk: '>=2.18.0 <3.0.0'
dependencies: dependencies:
angel3_model: ^7.0.0 angel3_model: ^7.0.0
angel3_serialize: ^7.0.0 angel3_serialize: ^7.0.0

View file

@ -2,6 +2,7 @@
## 7.1.0 ## 7.1.0
* [Breaking] Require Dart >= 2.18
* Upgraded to `analyzer` 5.x.x * Upgraded to `analyzer` 5.x.x
* Replaced deprecated `element2` with `element` * Replaced deprecated `element2` with `element`

View file

@ -4,7 +4,7 @@ description: Angel3 model serialization generators, designed for use with Angel.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator
environment: environment:
sdk: '>=2.17.0 <3.0.0' sdk: '>=2.18.0 <3.0.0'
dependencies: dependencies:
analyzer: ^5.0.0 analyzer: ^5.0.0
angel3_model: ^7.0.0 angel3_model: ^7.0.0

View file

@ -620,8 +620,8 @@ class LibrarySerializer extends Codec<Library, Map> {
'created_at': model.createdAt?.toIso8601String(), 'created_at': model.createdAt?.toIso8601String(),
'updated_at': model.updatedAt?.toIso8601String(), 'updated_at': model.updatedAt?.toIso8601String(),
'collection': model.collection.keys.fold({}, (map, key) { 'collection': model.collection.keys.fold({}, (map, key) {
return (map as Map<dynamic, dynamic>?) return (map as Map<dynamic, dynamic>)
?..[key] = BookSerializer.toMap(model.collection[key]); ..[key] = BookSerializer.toMap(model.collection[key]);
}) })
}; };
} }