Skip to content

Commit 82bd88f

Browse files
chore: prepare for release (2.0.1)
1 parent 55fcdb0 commit 82bd88f

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/serinus/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.0.1
4+
5+
- ci: add pana to serinus workflow
6+
- fix: gentle close the web socket connections when application shuts down
7+
- feat: add `bodyAsList<T>()` to parse lists of elements
8+
39
## 2.0.0
410

511
- feat: add ComposedModule to allow for better composition of modules.

packages/serinus/lib/src/contexts/request_context.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ class RequestContext<TBody> extends BaseContext {
153153
throw BadRequestException('The element is not of the expected type');
154154
}
155155
return List<T>.from(
156-
(body as List).map(
157-
(e) => _converter.convert(_typeOf<T>(), e) as T,
158-
),
156+
(body as List).map((e) => _converter.convert(_typeOf<T>(), e) as T),
159157
);
160158
}
161159

packages/serinus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Serinus is a framework written in Dart
44
documentation: https://serinus.app
55
homepage: https://serinus.app
66
repository: https://github.com/francescovallone/serinus
7-
version: 2.0.0
7+
version: 2.0.1
88
funding:
99
- https://github.com/sponsors/francescovallone
1010
topics:

packages/serinus/test/http/typed_body_test.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,7 @@ void main() {
118118
final request = _buildRequest();
119119
final context = RequestContext<dynamic>.withBody(
120120
request,
121-
[
122-
'data',
123-
'info',
124-
'serinus',
125-
],
121+
['data', 'info', 'serinus'],
126122
<Type, Provider>{},
127123
<Type, Object>{},
128124
);

0 commit comments

Comments
 (0)