Bump to 2.0.0-rc.2
This commit is contained in:
parent
1ee93ab42f
commit
1ba5ffd167
4 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
# 2.0.0-rc.2
|
||||
* Fixes Pub analyzer lints (see `angel_route@3.0.6`)
|
||||
|
||||
# 2.0.0-rc.1
|
||||
* Fix logic error that allowed content to be written to streaming responses after `close` was closed.
|
||||
|
||||
|
|
|
@ -95,7 +95,8 @@ class Routable extends Router<RequestHandler> {
|
|||
@override
|
||||
Route<RequestHandler> addRoute(
|
||||
String method, String path, RequestHandler handler,
|
||||
{Iterable<RequestHandler> middleware = const []}) {
|
||||
{Iterable<RequestHandler> middleware}) {
|
||||
middleware ??= [];
|
||||
final handlers = <RequestHandler>[];
|
||||
// Merge @Middleware declaration, if any
|
||||
Middleware middlewareDeclaration =
|
||||
|
|
|
@ -150,7 +150,8 @@ class Angel extends Routable {
|
|||
@override
|
||||
Route<RequestHandler> addRoute(
|
||||
String method, String path, RequestHandler handler,
|
||||
{Iterable<RequestHandler> middleware = const []}) {
|
||||
{Iterable<RequestHandler> middleware}) {
|
||||
middleware ??= [];
|
||||
if (_flattened != null) {
|
||||
logger?.warning(
|
||||
'WARNING: You added a route ($method $path) to the router, after it had been optimized.');
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_framework
|
||||
version: 2.0.0-rc.1
|
||||
version: 2.0.0-rc.2
|
||||
description: A high-powered HTTP server with dependency injection, routing and much more.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/angel_framework
|
||||
|
|
Loading…
Reference in a new issue