Upgraded required SDK >= 2.18.0
This commit is contained in:
parent
0fa22e65e4
commit
d3c672823a
6 changed files with 8 additions and 6 deletions
4
.github/workflows/dart.yml
vendored
4
.github/workflows/dart.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
|||
|
||||
- uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
sdk: "2.17.0"
|
||||
sdk: "2.18.0"
|
||||
|
||||
- id: angel3_container_upgrade
|
||||
name: angel3_container; Upgrade depedencies
|
||||
|
@ -87,7 +87,7 @@ jobs:
|
|||
|
||||
- uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
sdk: "2.17.0"
|
||||
sdk: "2.18.0"
|
||||
|
||||
# Angel3 ORM
|
||||
- id: angel3_orm_upgrade
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
## 7.1.0
|
||||
|
||||
* [Breaking] Require Dart >= 2.18
|
||||
* Upgraded to `analyzer` 5.x.x
|
||||
* Replaced deprecated `element2` with `element`
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ description: Code generators for Angel3 ORM. Generates query builder classes.
|
|||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_generator
|
||||
environment:
|
||||
sdk: '>=2.17.0 <3.0.0'
|
||||
sdk: '>=2.18.0 <3.0.0'
|
||||
dependencies:
|
||||
angel3_model: ^7.0.0
|
||||
angel3_serialize: ^7.0.0
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
## 7.1.0
|
||||
|
||||
* [Breaking] Require Dart >= 2.18
|
||||
* Upgraded to `analyzer` 5.x.x
|
||||
* Replaced deprecated `element2` with `element`
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ description: Angel3 model serialization generators, designed for use with Angel.
|
|||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator
|
||||
environment:
|
||||
sdk: '>=2.17.0 <3.0.0'
|
||||
sdk: '>=2.18.0 <3.0.0'
|
||||
dependencies:
|
||||
analyzer: ^5.0.0
|
||||
angel3_model: ^7.0.0
|
||||
|
|
|
@ -620,8 +620,8 @@ class LibrarySerializer extends Codec<Library, Map> {
|
|||
'created_at': model.createdAt?.toIso8601String(),
|
||||
'updated_at': model.updatedAt?.toIso8601String(),
|
||||
'collection': model.collection.keys.fold({}, (map, key) {
|
||||
return (map as Map<dynamic, dynamic>?)
|
||||
?..[key] = BookSerializer.toMap(model.collection[key]);
|
||||
return (map as Map<dynamic, dynamic>)
|
||||
..[key] = BookSerializer.toMap(model.collection[key]);
|
||||
})
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue