diff --git a/.idea/workspace.xml b/.idea/workspace.xml index eca551b3..830c8524 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,10 +1,10 @@ - + - + @@ -27,33 +27,13 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - + + - + @@ -64,7 +44,7 @@ - + @@ -72,42 +52,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -120,7 +64,6 @@ - testing cache errorHan addStre @@ -150,6 +93,7 @@ = false = true Future + toId _isClosed @@ -245,7 +189,6 @@ @@ -685,14 +629,7 @@ - - - - 1498857811360 - 1498960583872 @@ -1030,7 +967,14 @@ - @@ -1066,7 +1010,7 @@ - @@ -1125,7 +1069,6 @@ @@ -1481,16 +1425,6 @@ - - - - - - - - - - @@ -1548,14 +1482,6 @@ - - - - - - - - @@ -1584,14 +1510,6 @@ - - - - - - - - @@ -1602,11 +1520,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/CHANGELOG.md b/CHANGELOG.md index 657a97fd..3595b83b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ empty string. * Removed explicit dependence on `dart:io` for `Angel`, `RequestContext`, `ResponseContext`. * Created `lib/http.dart`, which exports HTTP-specific functionality. * `AnonymousService` now takes `FutureOr`. +* `Service.toId` no longer only takes a `String`, and is generically-typed. # 1.1.0+3 * Modified `ResponseContext#isOpen` to also return `false` if streaming is being used. diff --git a/lib/src/core/service.dart b/lib/src/core/service.dart index bc710123..ea6f7f2a 100644 --- a/lib/src/core/service.dart +++ b/lib/src/core/service.dart @@ -91,7 +91,7 @@ class Service extends Routable { } /// Transforms an [id] string into one acceptable by a service. - toId(String id) { + toId(T id) { if (id == 'null' || id == null) return null; else