Skip to content

Releases: medz/spry

v6.1.0

01 Jan 07:13
Compare
Choose a tag to compare
  • perf(datr, server): pointless waiting
  • perf: avoid creating event id
  • refactor: Remove event.id

v6.0.1

30 Dec 12:50
Compare
Choose a tag to compare
  • fix: avoid http response status

v6.0.0

30 Dec 10:03
Compare
Choose a tag to compare

Migration guide: https://spry.fun/migration

What's Changed

  • refactor: remove group router (The app.group/app.grouped).
  • refactor: rename app.stack to app.middleware.
  • refactor: remove useRequest(), now use event.request.
  • refactor: remove useHeaders(), now use event.headers/event.request.headers.
  • refactor: remove getClientAddress(), now use event.address.
  • refactor: remove useRequestURI(), now use event.url.
  • refactor: remove useParams(), now use event.params.
  • refactor: rename factory Response.text() to Response.fromString().
  • refactor: rename factory Response.json() to Response.fromJson().
  • refactor: remove all adapter, now is cross-platform.

v5.2.0

08 Sep 15:51
Compare
Choose a tag to compare
  • 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

08 Sep 09:59
Compare
Choose a tag to compare

Adapt to routingkit v4.0.0 version.

Full Changelog: v5.0.2...v5.1.0

Spry v5.0.0

27 Jul 18:10
Compare
Choose a tag to compare

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

11 Jul 08:17
Compare
Choose a tag to compare

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

10 Jul 18:10
2b57121
Compare
Choose a tag to compare

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

02 May 12:13
Compare
Choose a tag to compare

To install Spry v3.3.1 run the following command:

dart pub add spry:3.3.1

or update your pubspec.yaml file:

dependencies:
  spry: ^3.3.1

What's Changed

  • fix(request): Fetch client using mook request

Spry v3.3.0

30 Apr 16:39
Compare
Choose a tag to compare

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, see webfetch 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')}');
});