From f0c629ceb897c85383685e3852aed494e4087dc9 Mon Sep 17 00:00:00 2001 From: thomashii Date: Wed, 1 Dec 2021 15:10:58 +0800 Subject: [PATCH] Updated README --- README.md | 13 +++---------- packages/framework/CHANGELOG.md | 4 ++++ .../framework/lib/src/core/response_context.dart | 2 +- packages/framework/pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 21096309..a3d4a64e 100644 --- a/README.md +++ b/README.md @@ -37,16 +37,9 @@ Branch: `master` * Dart version : 2.12.x and above. * Publish : Yes. Refer to packages with `angel3_` prefix on [pub.dev](https://pub.dev/publishers/dukefirehawk.com/packages). -* NNBD Support : Yes -* Status : Release -* Notes : Use this for PR - -Branch: `angel3` - -* Dart version : 2.12.x and above. -* NNBD Support : Yes -* Status : Development -* Notes : This branch is under active development. Features maybe broken from time to time. +* Null Safety : Yes +* Status : Production +* Notes : Use this branch for all PR submission For more details, checkout [Project Status](https://github.com/dukefirehawk/angel/wiki/Project-Status) diff --git a/packages/framework/CHANGELOG.md b/packages/framework/CHANGELOG.md index 33cc0c4d..ebedface 100644 --- a/packages/framework/CHANGELOG.md +++ b/packages/framework/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 4.2.3 + +* Fixed `res.json()` throwing bad state exception + ## 4.2.2 * Added `Date` to response header diff --git a/packages/framework/lib/src/core/response_context.dart b/packages/framework/lib/src/core/response_context.dart index a62f0ed7..2fb2aa0c 100644 --- a/packages/framework/lib/src/core/response_context.dart +++ b/packages/framework/lib/src/core/response_context.dart @@ -170,7 +170,7 @@ abstract class ResponseContext /// Serializes JSON to the response. Future json(value) => - this.serialize(value, contentType: MediaType('application', 'json')); + serialize(value, contentType: MediaType('application', 'json')); /// Returns a JSONP response. /// diff --git a/packages/framework/pubspec.yaml b/packages/framework/pubspec.yaml index bfd8739b..9b3e1588 100644 --- a/packages/framework/pubspec.yaml +++ b/packages/framework/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_framework -version: 4.2.2 +version: 4.2.3 description: A high-powered HTTP server extensible framework with dependency injection, routing and much more. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/framework