pub repository
mirror.p-hatan.irpackage_resolver
1.0.4First-class package resolution strategy classes.
This package is discontinued upstream.
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
.packagesfile on the filesystem. It defines an individual root URL for each package name, so thatpackage:$name/$pathresolves to$root/$path. -
A package root is a single URL that acts as the base for all
package:URIs, so thatpackage:$name/$pathresolves 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.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_resolverpubspec.yaml
name: package_resolver
version: 1.0.4
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-dev.37.0 <3.0.0'
dependencies:
collection: ^1.9.0
http: ^0.11.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
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | 2016-07-21T19:43:33.307Z | Download | 766816f6a0b0acf0c6bab1aae3fe61d61eb9e64d4e1020d52787c959ac50f6bf |
| 1.0.1 | 2016-08-08T23:24:14.405Z | Download | 77181d5163e171276018f66e1589b70c90b26ca17952cd1e040f88e14a347303 |
| 1.0.2 | 2016-08-24T19:38:40.272Z | Download | 2f138d188b960ec061e59233c9688be185081a7b422ea039c070639b19675f5e |
| 1.0.3 | 2018-05-25T15:55:42.271466Z | Download | be595f8da6eb314924f3b77a15c8be5e7c87157084839f2dbf418ad6d9e16a08 |
| 1.0.4 | 2018-07-20T21:41:46.462766Z | Download | 724e1e68b46e23b9e9c3d514e27bc37893ba5a71fe5fab66b17e31f37a597488 |
| 1.0.5 | 2018-09-18T17:06:59.418196Z | Download | 5d817745caeb7704a68a0e6a568313e079280afbfebec63734612ed02541dfbd |
| 1.0.6 | 2018-09-18T17:34:21.999467Z | Download | 0139de04565e583877c5319f6b97a217c3a8a6fb33c4f8e8ac503c458b23ee10 |
| 1.0.7 | 2019-02-22T18:30:54.368086Z | Download | fe278c6c97ea388852946ee355bc69229e106738c14b5641ffab39e484338b7f |
| 1.0.8 | 2019-02-25T17:50:08.830730Z | Download | fdb75bff70dfb1c17e771b0240f76319d10e779127bf15308c3b57626b59fc8e |
| 1.0.9 | 2019-02-25T18:51:37.596649Z | Download | 78a08b3a8d36269dd14a611ea3d5cb47c609c754689c635081c2c044e62a9b7a |
| 1.0.10 | 2019-02-25T19:26:20.792106Z | Download | 71d9ac662d9ee09ec9c4cb439bd8db8aff959d6398fff1afa0e0a570eb3f0f04 |
Dependencies
collection "^1.9.0"
http "^0.11.0"
package_config "\u003e=0.1.0 \u003c2.0.0"
path "^1.0.0"