From 6db69d0fb19b96cdbbed69ead3b46e1efcc597bd Mon Sep 17 00:00:00 2001 From: thomashii Date: Sun, 20 Feb 2022 10:00:51 +0800 Subject: [PATCH] Upgraded production --- .../framework/example/http2/body_parsing.dart | 2 +- packages/framework/example/http2/main.dart | 2 +- .../framework/example/http2/server_push.dart | 2 +- packages/production/CHANGELOG.md | 12 +++++++++++ packages/production/lib/src/runner.dart | 2 +- packages/production/pubspec.yaml | 21 +++++++++++++++---- 6 files changed, 33 insertions(+), 8 deletions(-) diff --git a/packages/framework/example/http2/body_parsing.dart b/packages/framework/example/http2/body_parsing.dart index bdb5052b..ec1b3540 100644 --- a/packages/framework/example/http2/body_parsing.dart +++ b/packages/framework/example/http2/body_parsing.dart @@ -29,7 +29,7 @@ void main() async { try { ctx.setAlpnProtocols(['h2'], true); } catch (e, st) { - app.logger!.severe( + app.logger.severe( 'Cannot set ALPN protocol on server to `h2`. The server will only serve HTTP/1.x.', e, st); diff --git a/packages/framework/example/http2/main.dart b/packages/framework/example/http2/main.dart index d0a93e36..a111c059 100644 --- a/packages/framework/example/http2/main.dart +++ b/packages/framework/example/http2/main.dart @@ -25,7 +25,7 @@ void main() async { try { ctx.setAlpnProtocols(['h2'], true); } catch (e, st) { - app.logger!.severe( + app.logger.severe( 'Cannot set ALPN protocol on server to `h2`. The server will only serve HTTP/1.x.', e, st, diff --git a/packages/framework/example/http2/server_push.dart b/packages/framework/example/http2/server_push.dart index 4123e7b6..93290ca4 100644 --- a/packages/framework/example/http2/server_push.dart +++ b/packages/framework/example/http2/server_push.dart @@ -45,7 +45,7 @@ void main() async { try { ctx.setAlpnProtocols(['h2'], true); } catch (e, st) { - app.logger!.severe( + app.logger.severe( 'Cannot set ALPN protocol on server to `h2`. The server will only serve HTTP/1.x.', e, st); diff --git a/packages/production/CHANGELOG.md b/packages/production/CHANGELOG.md index 625aa474..90751266 100644 --- a/packages/production/CHANGELOG.md +++ b/packages/production/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 6.0.0 + +* Updated to min SDK 2.15.x + +## 5.0.0 + +* No release. Skipped + +## 4.0.0 + +* No release. Skipped + ## 3.1.2 * Updated repo link diff --git a/packages/production/lib/src/runner.dart b/packages/production/lib/src/runner.dart index 8617a7e4..b9112f85 100644 --- a/packages/production/lib/src/runner.dart +++ b/packages/production/lib/src/runner.dart @@ -240,7 +240,7 @@ _ ___ | /| / / /_/ / _ /___ _ /___ await app.configure(args.configureServer); - app.logger ??= Logger(args.loggerName) + app.logger = Logger(args.loggerName) ..onRecord.listen((rec) => Runner.handleLogRecord(rec, args.options)); AngelHttp http; diff --git a/packages/production/pubspec.yaml b/packages/production/pubspec.yaml index cad19961..dcbb2313 100644 --- a/packages/production/pubspec.yaml +++ b/packages/production/pubspec.yaml @@ -1,16 +1,29 @@ name: angel3_production -version: 3.1.2 +version: 6.0.0 description: Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel3. homepage: https://angel3-framework.web.app repository: https://github.com/dukefirehawk/angel/tree/master/packages/production environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=2.15.0 <3.0.0' dependencies: - angel3_container: ^3.1.0 - angel3_framework: ^4.2.0 + angel3_container: ^6.0.0 + angel3_framework: ^6.0.0 belatuk_pub_sub: ^4.0.0 args: ^2.3.0 io: ^1.0.0 logging: ^1.0.1 dev_dependencies: lints: ^1.0.1 +dependency_overrides: + angel3_container: + path: ../container/angel_container + angel3_framework: + path: ../framework + angel3_http_exception: + path: ../http_exception + angel3_model: + path: ../model + angel3_route: + path: ../route + angel3_mock_request: + path: ../mock_request