p-hatan/ mirror

pub repository

mirror.p-hatan.ir

package_resolver

1.0.8

First-class package resolution strategy classes.

This package is discontinued upstream.

Download archive

Readme

A package that defines a common class, PackageResolver, for defining how to resolve package: URIs. This class may be based on the current isolate's package resolution strategy, but it may also be explicitly defined by the user—for example, you could create a resolver that represents the strategy used to compile a .dart.js file.

The Dart VM provides two mutually exclusive means of resolving package: URIs: a package spec and a package root.

  • A package spec usually comes in the form of a .packages file on the filesystem. It defines an individual root URL for each package name, so that package:$name/$path resolves to $root/$path.

  • A package root is a single URL that acts as the base for all package: URIs, so that package:$name/$path resolves to $base/$name/$path.

This normalizes access to these resolution schemes, and makes it easy for code to resolve package URIs no matter where the resolution information comes from.

Changelog

1.0.8

  • Fix issue on Dart 2.0.0.

1.0.7

  • Use conditional imports to avoid dart:isolate imports on the web.

1.0.6

  • Support package:http version 0.12.x.

1.0.5

  • Use conditional imports to avoid dart:io imports on the web.

1.0.4

  • Set max SDK version to <3.0.0, and adjust other dependencies.

1.0.3

  • Update SDK version.
  • Stop using deprecated UTF8 constant.

1.0.2

  • Don't crash on URIs without path components.

1.0.1

  • Internal changes only.

1.0.0

  • Initial version.

Installing

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

description: First-class package resolution strategy classes.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/package_resolver

environment:
  sdk: '>=2.0.0 <3.0.0'

dependencies:
  collection: ^1.9.0
  http: ">0.11.0 <0.13.0"
  package_config: '>=0.1.0 <2.0.0'
  path: ^1.0.0

dev_dependencies:
  shelf: ^0.7.0
  test: ^1.2.0
  stack_trace: ^1.9.2

Version history

VersionPublishedArchiveSHA-256
1.0.02016-07-21T19:43:33.307ZDownload766816f6a0b0acf0c6bab1aae3fe61d61eb9e64d4e1020d52787c959ac50f6bf
1.0.12016-08-08T23:24:14.405ZDownload77181d5163e171276018f66e1589b70c90b26ca17952cd1e040f88e14a347303
1.0.22016-08-24T19:38:40.272ZDownload2f138d188b960ec061e59233c9688be185081a7b422ea039c070639b19675f5e
1.0.32018-05-25T15:55:42.271466ZDownloadbe595f8da6eb314924f3b77a15c8be5e7c87157084839f2dbf418ad6d9e16a08
1.0.42018-07-20T21:41:46.462766ZDownload724e1e68b46e23b9e9c3d514e27bc37893ba5a71fe5fab66b17e31f37a597488
1.0.52018-09-18T17:06:59.418196ZDownload5d817745caeb7704a68a0e6a568313e079280afbfebec63734612ed02541dfbd
1.0.62018-09-18T17:34:21.999467ZDownload0139de04565e583877c5319f6b97a217c3a8a6fb33c4f8e8ac503c458b23ee10
1.0.72019-02-22T18:30:54.368086ZDownloadfe278c6c97ea388852946ee355bc69229e106738c14b5641ffab39e484338b7f
1.0.82019-02-25T17:50:08.830730ZDownloadfdb75bff70dfb1c17e771b0240f76319d10e779127bf15308c3b57626b59fc8e
1.0.92019-02-25T18:51:37.596649ZDownload78a08b3a8d36269dd14a611ea3d5cb47c609c754689c635081c2c044e62a9b7a
1.0.102019-02-25T19:26:20.792106ZDownload71d9ac662d9ee09ec9c4cb439bd8db8aff959d6398fff1afa0e0a570eb3f0f04

Dependencies

collection "^1.9.0"

http "\u003e0.11.0 \u003c0.13.0"

package_config "\u003e=0.1.0 \u003c2.0.0"

path "^1.0.0"