pub_mediator 1.0.1

  • README.md
  • Installing
  • Versions
  • 72

pub_mediator

Pub build status

Diagnoses version conflicts between dependencies in Dart packages.

About

Without mediator, it is rather cumbersome to resolve dependency conflicts within Dart projects. You would receive a relatively cryptic error message that doesn't tell you much in the way of resolving conflicts:

Package jaguar_serializer has no versions that match >=0.3.0 <0.4.0 derived from:
- gitter 0.1.1 depends on version ^0.3.0

mediator provides you with details about where the mismatches are:

✗ Found 1 dependency conflict:
Found 2 mismatching dependencies on package:crypto:
  * foo requires  <1.0.0
  * angel_auth requires  ^2.0.0

mediator also tracks nested dependencies. Dependency mismatches don't always happen at the top level, but often within the dependencies of other dependencies.

✗ Found 1 dependency conflict:
Found 2 mismatching dependencies on package:crypto:
  * foo requires  <1.0.0
  * bar->baz->quux requires  ^2.0.0

Installation and Usage

pub global activate pub_mediator

Run the following in your project root:

mediator

# Enable verbose output
mediator -v

# Print help
mediator -h

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  pub_mediator: "^1.0.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:pub_mediator/pub_mediator.dart';
        
Version Uploaded Documentation Archive
1.0.1 Sep 2, 2017 Go to the documentation of pub_mediator 1.0.1 Download pub_mediator 1.0.1 archive
1.0.0 Jul 13, 2017 Go to the documentation of pub_mediator 1.0.0 Download pub_mediator 1.0.0 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
75 / 100
Health:
Code health derived from static analysis. [more]
63 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
79 / 100
Overall score:
Weighted score of the above. [more]
72
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:pub_mediator/pub_mediator.dart with components: io.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 2 errors 2 hints.

    Strong-mode analysis of lib/src/diagnose.dart failed with the following error:

    line: 51 col: 22
    The argument type 'List' can't be assigned to the parameter type 'Iterable<Future>'.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use pub_mediator.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0
args ^0.13.4 0.13.7 1.4.2
cli_util ^0.1.1 0.1.2+1
console ^2.0.0 2.2.4
http ^0.11.3 0.11.3+16
pub_client ^1.0.0 1.0.8
pub_semver ^1.0.0 1.3.7
pubspec ^0.0.14 0.0.15
Transitive dependencies
analyzer 0.29.5 0.31.1
async 2.0.6
barback 0.15.2+15
charcode 1.1.1
collection 1.14.9
concepts 0.2.0
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
dartson 0.2.7
either 0.1.8
glob 1.1.5
html 0.13.3
http_parser 3.1.1
isolate 0.2.3 2.0.0
logging 0.11.3+1
matcher 0.12.2
meta 1.1.2
option 1.2.0
package_config 1.0.3
path 1.3.9 1.5.1
plugin 0.2.0+2
pool 1.3.4
quiver 0.21.4 0.29.0+1
quiver_iterables 1.0.1
source_maps 0.10.4
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
stuff 0.0.7
typed_data 1.1.5
uri 0.11.2
utf 0.9.0+4
vector_math 1.4.7 2.0.6
watcher 0.9.7+7
yaml 2.1.13
yamlicious 0.0.5
Dev dependencies
test ^0.12.0