pub repository
mirror.p-hatan.irshelf_packages_handler
3.0.1A shelf handler for serving a `packages/` directory.
Readme
A package that provides a shelf handler for serving a packages/ directory.
It's intended to be usable as the first handler in a Cascade, where
any requests that include /packages/ are served package assets, and all other
requests cascade to additional handlers.
Changelog
3.0.1
- Require Dart
2.14. - Update the pubspec
repositoryfield.
3.0.0
- Migrate to null safety.
2.0.1
- Allow the latest (null-safe) version of
pkg:shelf.
2.0.0
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
1.0.4
- Set max SDK version to
<3.0.0, and adjust other dependencies.
1.0.3
- Require Dart SDK 1.22.0
- Support
package:asyncv2
1.0.2
- Fix Strong mode errors with
package:shelfv0.7.x
1.0.1
- Allow dependencies on
package:shelfv0.7.x
0.0.1
- Initial version
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add shelf_packages_handlerpubspec.yaml
name: shelf_packages_handler
version: 3.0.1
description: A shelf handler for serving a `packages/` directory.
repository: https://github.com/dart-lang/shelf/tree/master/pkgs/shelf_packages_handler
environment:
sdk: '>=2.14.0 <3.0.0'
dependencies:
path: ^1.8.0
shelf: ^1.0.0
shelf_static: ^1.0.0
dev_dependencies:
lints: ^1.0.0
test: ^1.16.0
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | 2016-07-21T23:08:47.654Z | Download | d2856eac40844d5889aac8cf78d94461ebef3867fa892ebf1f9ccd55dc301732 |
| 1.0.1 | 2017-08-25T02:28:29.886569Z | Download | 648f8d0c09b4cfec0366fdf5c8830ad7f0d30cf547b50599c44d5a09e4da314a |
| 1.0.2 | 2017-08-30T20:47:43.541596Z | Download | 1234ddeb08f0991ce48f35fcb4d986924ea6ab964ffd0b3b59993ef39c0bd01c |
| 1.0.3 | 2017-09-21T22:40:12.130346Z | Download | 0387b668733679c42c55ad72151d1aa6d3b35fe8e6bccfa9368ba9f93bf0e37e |
| 1.0.4 | 2018-07-18T18:58:58.538485Z | Download | db7978b848d2300664610002a03e351ef8c8c5fbc0f3230fe9223e06237ba260 |
| 2.0.0 | 2020-02-12T22:05:35.451069Z | Download | cafe5a04a661287b8053e8ff6066261e6562eadb88e7d9fe85da8d7ae94e5728 |
| 2.0.1 | 2021-01-29T03:51:29.140256Z | Download | 0947da47a2d858bcf2cdf87986098808488b9c509562f55d9748abffc5cd024e |
| 3.0.0 | 2021-02-24T18:21:27.604779Z | Download | e0b44ebddec91e70a713e13adf93c1b2100821303b86a18e1ef1d082bd8bd9b8 |
| 3.0.1 | 2022-06-16T16:32:13.123664Z | Download | aef74dc9195746a384843102142ab65b6a4735bb3beea791e63527b88cc83306 |
| 3.0.2 | 2023-05-03T19:25:48.042237Z | Download | 89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e |
Dependencies
path "^1.8.0"
shelf "^1.0.0"
shelf_static "^1.0.0"