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 2023Releases
latest 10-
3.0.203 May 2023 -
3.0.116 Jun 2022 -
3.0.024 Feb 2021Release notes
Open source →- BREAKING:: Change the signature of the
webSocketHandlermethod's
onConnectioncallback. Previously this took an untyped function with either
one or two parameters. This now requires aConnectionCallback; 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'); }); });
- BREAKING:: Change the signature of the
-
2.0.129 Jan 2021 -
2.0.012 Feb 2020Release notes
Open source →Breaking changes
- Dropped the dependency on
package_resolver.- All
PackageResolverapis now take aMap<String, Uri>of package name to the base uri for resolvingpackage:uris for that package. - Named arguments have been renamed from
resolvertopackageMap.
- All
- Dropped the dependency on
-
1.0.418 Jul 2018 -
1.0.321 Sep 2017 -
1.0.230 Aug 2017 -
1.0.125 Aug 2017 -
1.0.021 Jul 2016Nothing published for this version