p-hatan/ mirror

pub repository

mirror.p-hatan.ir

shelf_packages_handler

3.0.0

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

Download archive

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.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 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.

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:async v2

1.0.2

  • Fix Strong mode errors with package:shelf v0.7.x

1.0.1

  • Allow dependencies on package:shelf v0.7.x

0.0.1

  • Initial version

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add shelf_packages_handler
pubspec.yaml
name: shelf_packages_handler
version: 3.0.0

description: A shelf handler for serving a `packages/` directory.
repository: https://github.com/dart-lang/shelf_packages_handler

environment:
  sdk: '>=2.12.0-0 <3.0.0'

dependencies:
  path: ^1.8.0
  shelf: ^1.0.0
  shelf_static: ^1.0.0

dev_dependencies:
  pedantic: ^1.10.0
  test: ^1.16.0

Version history

VersionPublishedArchiveSHA-256
1.0.02016-07-21T23:08:47.654ZDownloadd2856eac40844d5889aac8cf78d94461ebef3867fa892ebf1f9ccd55dc301732
1.0.12017-08-25T02:28:29.886569ZDownload648f8d0c09b4cfec0366fdf5c8830ad7f0d30cf547b50599c44d5a09e4da314a
1.0.22017-08-30T20:47:43.541596ZDownload1234ddeb08f0991ce48f35fcb4d986924ea6ab964ffd0b3b59993ef39c0bd01c
1.0.32017-09-21T22:40:12.130346ZDownload0387b668733679c42c55ad72151d1aa6d3b35fe8e6bccfa9368ba9f93bf0e37e
1.0.42018-07-18T18:58:58.538485ZDownloaddb7978b848d2300664610002a03e351ef8c8c5fbc0f3230fe9223e06237ba260
2.0.02020-02-12T22:05:35.451069ZDownloadcafe5a04a661287b8053e8ff6066261e6562eadb88e7d9fe85da8d7ae94e5728
2.0.12021-01-29T03:51:29.140256ZDownload0947da47a2d858bcf2cdf87986098808488b9c509562f55d9748abffc5cd024e
3.0.02021-02-24T18:21:27.604779ZDownloade0b44ebddec91e70a713e13adf93c1b2100821303b86a18e1ef1d082bd8bd9b8
3.0.12022-06-16T16:32:13.123664ZDownloadaef74dc9195746a384843102142ab65b6a4735bb3beea791e63527b88cc83306
3.0.22023-05-03T19:25:48.042237ZDownload89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e

Dependencies

path "^1.8.0"

shelf "^1.0.0"

shelf_static "^1.0.0"