Releases: medz/spry
Releases · medz/spry
v6.1.0
v6.0.1
v6.0.0
Migration guide: https://spry.fun/migration
What's Changed
- refactor: remove group router (The
app.group
/app.grouped
). - refactor: rename
app.stack
toapp.middleware
. - refactor: remove
useRequest()
, now useevent.request
. - refactor: remove
useHeaders()
, now useevent.headers
/event.request.headers
. - refactor: remove
getClientAddress()
, now useevent.address
. - refactor: remove
useRequestURI()
, now useevent.url
. - refactor: remove
useParams()
, now useevent.params
. - refactor: rename factory
Response.text()
toResponse.fromString()
. - refactor: rename factory
Response.json()
toResponse.fromJson()
. - refactor: remove all adapter, now is cross-platform.
v5.2.0
- Fixed incorrect overwrite of
X-Powered-By
header. - Support use single params of key using
useParam
fn. - Fixed IO routes not match.
Full Changelog: v5.1.0...v5.2.0
v5.1.0
Adapt to routingkit
v4.0.0 version.
Full Changelog: v5.0.2...v5.1.0
Spry v5.0.0
To install Spry v5.0.0 run this command:
dart pub add spry
Or update your pubspec.yaml
file:
dependencies:
spry: ^5.0.0
What's Changed
- feat: Handler supports directly returning any object.
Spry v4.1.0
To install Spry v4.1.0 run this command:
dart pub add spry:^4.1.0
Or update your pubspec.yaml
file:
dependencies:
spry: ^4.1.0
What's Changed
- feat: support web platform.
Full Changelog: spry-v4.0.0+spry_cookie-v0.0.1...spry-v4.1.0
Spry v4.0.0 & Spry cookie v0.0.1
To install Spry v4.0.0-0 & Spry cookie v0.0.1 run this command:
dart pub add spry:^4.0.0
dart pub add spry_cookie:^0.0.1
Or update your pubspec.yaml
file:
dependencies:
spry: ^4.0.0
spry_cookie: ^0.0,1
New Contributors
Full Changelog: v3.3.1...spry-v4.0.0+spry_cookie-v0.0.1
v3.3.1
Spry v3.3.0
To install Spry v3.3.0 run the following command:
dart pub add spry:3.3.0
or update your pubspec.yaml
file:
dependencies:
spry: ^3.3.0
What's Changed
- Feature: Support
request.fetch
, seewebfetch
fetch function.
fetch
Used to retrieve data from the network.
It also supports you to ignore HTTP schema and host, and directly use path to obtain data from other handlers
// Remote with fetch
app.get('github/:name', (request) {
return request.fetch('https://api.github.com/users/${request.param('name')}');
});
// Fetch profile
app.get('users/:id', (request) => ...);
app.get('profile/:id', (request) {
return request.fetch('/users/${request.param('id')}');
});