dependency_validator 4.1.1 copy "dependency_validator: ^4.1.1" to clipboard
dependency_validator: ^4.1.1 copied to clipboard

Checks for missing, under-promoted, over-promoted, and unused dependencies.

4.1.1 #

  • Update the output of parse failures to include the path to the file which failed to parse

4.1.0 #

  • Update specified analyzer range to support v6.0.0+. This supports dependency_validator running on dart 3 better

4.0.0 #

  • Breaking Change: Added "non-dev packages that are only used within bin/" check to cover this edge case. This is enabled by default, and will break the execution of dependency_validator if it occurs within the codebase. Resolution is to either ignore the dependency, or demote the dependency to a dev_dep
  • Fixed bug where uris declared within comments and strings would register as dependency "usages"

3.2.2 #

  • Raise dependency minimums to ensure all dependencies are null-safe.

3.2.0 #

  • Feature: Added option allow_pins for disabling/enabling checks for pins. Pins not allowed by default.

3.1.2 #

  • Return non-zero exit code from executable when incorrect args are used

3.1.0 #

  • Deprecate static configuration in pubspec.yaml (because pub publish warns about unrecognized keys) and instead read it from a dart_dependency_validator.yaml file when possible.

3.0.0 #

  • Breaking: removed the public package:dependency_validator/dependency_validator.dart entrypoint. It was only intended for this package to provide an executable and the Dart APIs don't need to be public.
  • Null safety.

2.0.1 #

  • Fix a path issue on Windows.

2.0.0 #

  • Breaking Change: Excluded paths and ignored packages must now be configured statically in your project's pubspec.yaml instead of via command-line arguments. See the README for more information.

  • Detect packages with one or more executables and consider them to be used. In other words, you no longer need to ignore packages that are only used for their executable(s).

  • Detect packages that provide one or more builders that are configured to be auto-applied by the dart build system and consider them to be used. In other words, you no longer need to ignore packages that are only used for their builder(s).

1.5.0 #

  • Scan .less files for Dart package imports.

1.4.2 #

  • Detect package usage in analysis_options.yaml files.

1.4.1 #

  • Add dart_dev to common binaries list so that it is automatically ignored.

1.4.0 #

  • Improvement: Add coverage and build_vm_compilers to the list of commonly used binary packages that are ignored by default. #50

  • Raised minimum Dart SDK version to 2.2.0 (no longer supports Dart 1). #50

1.3.0 #

  • Improvement: Ignore commonly used binary packages by default. This can be disabled via --no-ignore-common-binaries. Run pub run dependency_validator -h to see which packages will be ignored by this flag. #47

1.2.4 #

  • Bug Fix: Ignoring a package via --ignore or -i will now also work as expected for the "over-promoted" failure. #44

1.2.2 #

  • Bug Fix: Ignoring a package via --ignore or -i will now also work as expected for the "pinned dependency" failure. #39

1.2.1 #

  • Dart 2 compatible. #35

1.2.0 #

  • Feature: Pinning a dependency (i.e. preventing patch or minor versions from being consumed) now causes validator to fail. You can opt-out of this feature with --no-fatal-pins. #27

  • Feature: Added a --help flag that outputs usage information. #28

  • Improvement: Package imports in .scss files are now detected. #26

1.1.2 #

  • Initial Dart 2/DDC compatibility changes. #23

1.1.1 #

  • Bug Fix: Fix detection of packages whose names contain numbers. #17

1.1.0 #

  • Feature: Added flags to control the types of validations that this tool enforces. They all default to true, but can be opted out of like so:

    • --no-fatal-missing

    • --no-fatal-under-promoted

    • --no-fatal-over-promoted

    • --no-fatal-unused

      #14

  • Feature: Added --exclude-dir to allow excluding an entire directory from the dependency validator checks. #15

1.0.1 #

  • Bug Fix: Packages ignored via the --ignore option will no longer be reported at all (previously they were only being ignored in the "unused" list). #10 #12

1.0.0 #

  • Initial version!