pub_mediator 1.0.1

  • README.md
  • Installing
  • Versions
  • 52

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

Alternatively, your editor might support pub 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

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 14, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
36 / 100
Health:
Code health derived from static analysis. [more]
64 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
76 / 100
Overall score:
Weighted score of the above. [more]
52

Platforms

Detected platforms: other

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

Suggestions

  • Fix lib/src/diagnose.dart.

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

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

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • 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.3.0
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.2
pubspec ^0.0.14 0.0.15
Transitive dependencies
analyzer 0.29.5 0.31.1
async 2.0.3 2.0.4
barback 0.15.2+14
charcode 1.1.1
collection 1.14.5
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.2+2
http_parser 3.1.1
isolate 0.2.3 1.1.0
logging 0.11.3+1
matcher 0.12.1+4
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.28.0
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.1
utf 0.9.0+4
vector_math 1.4.7 2.0.5
watcher 0.9.7+7
yaml 2.1.13
yamlicious 0.0.5
Dev dependencies
test ^0.12.0