dart_pre_commit 2.1.0-nullsafety.0 copy "dart_pre_commit: ^2.1.0-nullsafety.0" to clipboard
dart_pre_commit: ^2.1.0-nullsafety.0 copied to clipboard

outdated

A small collection of pre commit hooks to format and lint dart code

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

Added #

Changed #

Deprecated #

Removed #

Fixed #

Security #

[2.1.0-nullsafety.0] - 2021-02-01 #

Added #

  • Outdated task: Checks if any packages can be updated
  • Nullsafe task: Checks if any packages can be updated to a nullsafe version

Changed #

  • Ported package to use freezed dataclasses

[2.0.0-nullsafety.1] - 2021-01-28 #

Added #

  • Basic Interface to create custom file and repository based tasks (#6)
  • Made all tasks and helper classes public (#5)
  • Added riverpod-based HooksProvider for easier use (replaces Hooks.create)

Changed #

  • Refactored Hooks API to allow custom hooks
  • Generalized HookResult to be independent of specific tasks
    • error has been removed, instead a Exceptions are thrown in case of fatal errors
    • linter, pullUp have been replaced by the more generic rejected state
  • refactor logger (#3)
    • there is a pretty and a simple logger now
    • the correct one is auto-detected based on the availability of a tty
    • provides a useful status message so other logs/exceptions can be easily associated with the task
    • debug-logging has been added to all tasks
    • log-levels can be configured to show certain log messages

Removed #

  • Hooks.create was removed, use the provider instead
  • TaskException was removed in favor of normal exceptions

Fixed #

  • pull-up-dependencies now works in subdirs (#8)
  • pull-up-dependencies now correctly handles nullsafety releases
  • fix-imports can now handle multiline imports correctly (#9)
    • this includes comments before, after or between the import and the semicolon, as well as as/show/hide statements, that fall into a new line

[2.0.0-nullsafety.0] - 2020-12-10 #

Changed #

  • Migrated package to nullsafety

[1.1.4] - 2020-12-10 #

Fixed #

  • Include pubspec.yaml into analysis step
  • Skip dart analyze, if no files are to be analyzed

[1.1.3] - 2020-12-08 #

Fixed #

  • fix-imports now works for imports with trailing comments (#2)

[1.1.2] - 2020-12-04 #

Fixed #

  • Fixed problem with repositories where the dart project folder beeing scanned is not the the git root folder

[1.1.1] - 2020-10-22 #

Fixed #

  • Fixed bug that caused a crash in --check-pull-up if dependencies declared in the pubspec.yaml are missing in pubspec.lock (#1)

[1.1.0] - 2020-10-19 #

Added #

  • Support for check if the version of dart dependencies can be pulled up to a higher version from the lockfile

[1.0.2] - 2020-10-09 #

Fixed #

  • Fixed bug where the tool tried to format deleted files

[1.0.1] - 2020-10-07 #

Fixed #

  • dart analyze now treats lint infos as errors
  • Replace legacy dart tools in README
  • Add missing await in program runner

[1.0.0] - 2020-10-07 #

Added #

  • Automatic deployment

[0.1.0] - 2020-10-02 #

  • Initial release