PackageTrack
Sign in Get early access

shelf_packages_handler

A shelf handler for serving a `packages/` directory.

3.0.2 8.3M downloads/mo #63 most downloaded on pub.dev dart-lang/shelf

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Ships fairly regularly

a new release about every 11 months

Nearly every release is documented

notes for 9 of 10 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

10 releases · first in 2016

0 releases in the last 12 months

see the full history below

Release timeline

10 releases · Jul 2016 to May 2023
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 10
  1. 3.0.2 03 May 2023
    Release notes
    • Added package topics to the pubspec file.
    • Require Dart 2.17.
    Open source →
  2. 3.0.1 16 Jun 2022
    Release notes
    • Require Dart 2.14.
    • Update the pubspec repository field.
    Open source →
  3. 3.0.0 24 Feb 2021
    Release notes
    • BREAKING:: Change the signature of the webSocketHandler method's
      onConnection callback. Previously this took an untyped function with either
      one or two parameters. This now requires a ConnectionCallback; a typedef
      taking two parameters. See also #457.
    • Add a API usage example.
    • Require Dart ^3.5.0.

    Note that most clients seeing analysis issues from the above breaking change can
    fix it by adding a second parameter to their callback. So, they would change
    this:

    webSocketHandler((webSocket) {
      webSocket.stream.listen((message) {
        webSocket.sink.add('echo $message');
      });
    });

    to this:

    webSocketHandler((webSocket, _) {
      webSocket.stream.listen((message) {
        webSocket.sink.add('echo $message');
      });
    });
    Open source →
    Release notes
    • Migrate to null safety.
    Open source →
  4. 2.0.1 29 Jan 2021
    Release notes
    • Require Dart ^3.3.0.
    Open source →
    Release notes
    • Allow the latest (null-safe) version of pkg:shelf.
    Open source →
  5. 2.0.0 12 Feb 2020
    Release notes

    Breaking changes

    • Dropped the dependency on package_resolver.
      • All PackageResolver apis now take a Map<String, Uri> of package name to the base uri for resolving package: uris for that package.
      • Named arguments have been renamed from resolver to packageMap.
    Open source →
  6. 1.0.4 18 Jul 2018
    Release notes
    • Set max SDK version to <3.0.0, and adjust other dependencies.
    Open source →
  7. 1.0.3 21 Sep 2017
    Release notes
    • Require Dart SDK 1.22.0
    • Support package:async v2
    Open source →
  8. 1.0.2 30 Aug 2017
    Release notes
    • Fix Strong mode errors with package:shelf v0.7.x
    Open source →
  9. 1.0.1 25 Aug 2017
    Release notes
    • Allow dependencies on package:shelf v0.7.x
    Open source →
  10. 1.0.0 21 Jul 2016

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive