spry 2.4.0 spry: ^2.4.0 copied to clipboard
Spry is an HTTP middleware framework for Dart to make web applications and APIs server more enjoyable to write.
Changelog #
2.4.0 (2023-06-05) #
⚠ BREAKING CHANGES #
- Update SDK to 3.0
Features #
- Add spry websocket package (ccb083f)
- built-in static (09e5b44)
- Built-in WebSocket support (27761ed)
- embedded router (07c6d15)
- spry 2.3.0 (c6c6a64)
Bug Fixes #
- Adapter spry router >=1.1 < 2.0 (b15ad23)
- core: Fix writing closed response data. (40f6783)
- deps: Adapt to Spry 2.x (da26a4e)
- public eager and redirect (383b983)
Miscellaneous Chores #
2.3.0 (2023-04-20) #
Features #
2.2.0 (2023-03-26) #
Features #
- Built-in WebSocket support (27761ed)
Bug Fixes #
2.1.1 (2023-03-24) #
Bug Fixes #
- Response: Fix close to not allow just closing the connection (173f571)
2.1.0 (2023-03-23) #
Features #
- Session: Redesign Session (e414f9d)
Bug Fixes #
- Core: Fix redirect not sending data (d95568a)
- core: Spry write response using deprecated (5036589)
- Fix incorrect exposure of original response (7a9d910)
- Fixed custom powered By not taking effect (55ca9eb)
- Not store context self it. (3f8ba84)
- Request incorrectly exposes the original http request (32e597a)
- response: Avoid calling raw response cookies too late (a17a339)
- Response: Avoid content-type calling raw response prematurely (22b1e6f)
- Response: fix called http response to after (a2df5bf)
2.0.2 (2023-03-21) #
Bug Fixes #
- cookie: Fix cookie not written to http response (297eb71)
2.0.1 (2023-03-18) #
Bug Fixes #
2.0.0 (2023-03-17) #
⚠ BREAKING CHANGES #
-
Move spry interceptor in framework:
- import "package:spry_interceptor/spry_interceptor.dart"; + import "package:spry/interceptor.dart";
-
Move spry multer in framework, migration guide:
- import "package:spry_multer/spry_multer.dart"; + import "package:spry/multer.dart";
-
Move the
spry_json
intospry
:- import "package:spry_json/spry_json.dart"; + import "package:spry/json.dart"; ... - final json = SpryJson(...); - spry.use(json);
-
Move spry session in framework, mgration guide:
- import "package:spry_session/spry_session.dart"; + import "package:spry/session.dart";
-
Remove
package:spry_urlencoded/spry_urlencoded.dart
, moved intopackage:spry/urlencoded.dart
.
Migration guide
- import "package:spry_urlencoded/spry_urlencoded.dart"
+ import "package:spry/urlencoded.dart"
Features #
- merge
spry_urlencoded
intospry
package (d62f6f3)
Code Refactoring #
- Move json into spry (d73b978)
- Move spry interceptor in framework (b7361c7)
- Move spry multer in framework (70b2884)
- Move spry session in framework (a264f99)
1.0.0 (2023-03-17) #
⚠ BREAKING CHANGES #
- Refactor spry core impl
Bug Fixes #
Code Refactoring #
- Refactor spry core impl (724ac31)
0.5.0 (2023-03-14) #
Features #
- MiddlewareNext -> Next (80b3da7)
- spry: Add
redirect
andclose
method in response (d6cb359) - spry: Add get spry app in context extension (08fc0d5)
- spry: Export
ContextImpl
topackage:spry/impl.dart
. (ef14385) - spry: Request add
stream
andtext
method (048e989) - spry: request/response text encoding set in global (2e0eadb)
- spry: Store spry application in context. (2ecbab3)
Bug Fixes #
- spry: Fix eager close response not written to body (bff8774)
- spry: Fix no tag to close response after redirection (250483d), closes #28
- spry: Fix the
HttpException
is not exported. (5f8f90c)
0.4.0 #
Breaking changes #
package://spry/extension.dart
changed topackage://spry/extensions.dart
.- Remove
Response.send
method. - Remove
Response.isBodyReady
property. - Remove
Response
encoding parameter. - Add write a
Stream<List<int>>
to the response body methodResponse.stream
. - Add write a
String
to the response body methodResponse.text
. - Add write a
List<int>
to the response body methodResponse.raw
. - Add read the request body as a
Stream<List<int>>
methodRequest.stream()
. - Add read the request body as a
String
methodRequest.text()
. - Request/Response global encoding in
Spry
instance.
0.1.4 #
- Fix eager close response not written to body.
0.1.3 #
- Store spry application in context.
- Export
ContextImpl
topackage:spry/impl.dart
. - The
MiddlewareNext
type is changed toNext
, this will be removed in 0.2 release.
0.1.2 #
- request store in context
- response store in context
- ⚠️ SPRY_HTTP_REQUEST -> SPRY_HTTP_ORIGIN_REQUEST store origin store http request
0.1.1 #
- Add
redirect
method toResponse
. - Add
close
method toResponse
.
0.1.0 #
Publish a beta version.
0.0.12 #
Fix the HttpException
is not exported.
0.0.11 #
Exception interception to prevent accidental program interruption.
0.0.10 #
- Add
SpryException
0.0.9 #
- Revert response headers not set.
0.0.8 #
- Fix response headers not set.
0.0.7 #
- Add
context
to response. - Context store add
contains
method. - Context add map style getter and setter operations.
- Remove
response.json()
method.
0.0.6 #
- Apply
context
to request.
0.0.5 #
- Remove
spry.constants
exported inspry
library.
0.0.4 #
- Move
spryHttpRequest
tospry.constants
library. - Add moddleware extension.
0.0.3 #
- Public
HttpRequest
store key.