Browse Source

documentation changes for 1.2.2

Luke 7 năm trước cách đây
mục cha
commit
06633c8a6b
2 tập tin đã thay đổi với 24 bổ sung16 xóa
  1. 23 0
      CHANGELOG.md
  2. 1 16
      README.md

+ 23 - 0
CHANGELOG.md

@@ -0,0 +1,23 @@
+# 1.2.2
+- **BREAKING**: Parameters now return an array of results even if they have a single value.
+- Support for parameter arrays. e.g: `/some/route?color=red&color=green&color=blue`.
+- Results can now be passed via `Navigator.pop` via use of a `Future`.
+- A few bug fixes
+
+# 1.1.0
+
+**BREAKING**: In order to support function handlers you will need to change all of your route 
+handler definitions to use the new `Handler` class. The `RouteHandler` definition has now been 
+removed.
+
+Swapping out the handlers should be as simple as changing:
+
+```dart
+RouteHandler usersHandler = (Map<String, String> params) {}
+```
+
+to
+
+```dart
+var usersHandler = new Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {});
+```

+ 1 - 16
README.md

@@ -18,22 +18,7 @@ The brightest, hippest, coolest router for Flutter.
 
 ## Version compatability
 
-In general we try not to introduce breaking changes but version 1.1 did introduce a
-breaking change in order to support function handlers. As such, you will need to
-change all of your route handler definitions to use the new `Handler` class. The
-`RouteHandler` definition has now been removed.
-
-Swapping out the handlers should be as simple as changing:
-
-```dart
-RouteHandler usersHandler = (Map<String, String> params) {}
-```
-
-to
-
-```dart
-var usersHandler = new Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {});
-```
+See CHANGELOG for all breaking (and non-breaking) changes.
 
 ## Getting started