PackageTrack
Sign in Get early access

dart_pre_commit

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

6.1.4 10.0K downloads/mo #2951 most downloaded on pub.dev Skycoder42/dart_pre_commit

What this package is like to depend on

Last release 9 days ago

14 Aug 2026

Ships fairly regularly

a new release about every 2 months

Nearly every release is documented

notes for 42 of 44 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

50 releases · first in 2020

7 releases in the last 12 months

see the full history below

Release timeline

50 releases · Oct 2020 to Aug 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 50
  1. 6.1.4 14 Aug 2026
    Release notes

    Changelog

    6.1.4 - 2026-08-14

    Changed

    • Updated min sdk version to ^3.13.0
    • Updated dependencies

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.13.0
    • Updated dependencies
    Open source →
  2. 6.1.3 25 May 2026
    Release notes

    Changelog

    6.1.3 - 2026-05-25

    Changed

    • Updated min sdk version to ^3.12.0
    • Updated dependencies

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.12.0
    • Updated dependencies
    Open source →
  3. 6.1.2 22 Apr 2026
    Release notes

    Changelog

    6.1.2 - 2026-04-22

    Changed

    • Updated min sdk version to ^3.11.0
    • Updated dependencies

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.11.0
    • Updated dependencies
    Open source →
  4. 6.1.1 19 Feb 2026
    Release notes

    Changelog

    6.1.1 - 2026-02-19

    Changed

    • Updated min sdk version to ^3.11.0
    • Updated dependencies

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.11.0
    • Updated dependencies
    Open source →
  5. 6.1.1+1 19 Feb 2026
    Release notes

    Changelog

    6.1.1+1 - 2026-02-19

    Fixed

    • Widen analyzer version constraints

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Fixed

    • Widen analyzer version constraints
    Open source →
  6. 6.1.0 22 Nov 2025
    Release notes

    Changelog

    6.1.0 - 2025-11-22

    Changed

    • Updated min sdk version to ^3.10.0
    • Updated dependencies

    Removed

    • Removed support for custom_lint
      • custom linter rules can now be provider via the new analyzer plugin system

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.10.0
    • Updated dependencies

    Removed

    • Removed support for custom_lint
      • custom linter rules can now be provider via the new analyzer plugin system
    Open source →
  7. 6.0.0 09 Sep 2025
    Release notes

    Changelog

    6.0.0 - 2025-09-09

    Changed

    • Refactored project to use injectable/get_it instead of riverpod
    • Close of APIs to only expose minimal required interfaces for a custom integration

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Refactored project to use injectable/get_it instead of riverpod
    • Close of APIs to only expose minimal required interfaces for a custom integration
    Open source →
  8. 5.4.8 15 Aug 2025
    Release notes

    Changelog

    5.4.8 - 2025-08-15

    Changed

    • Updated min sdk version to ^3.9.0
    • Updated dependencies

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.9.0
    • Updated dependencies
    Open source →
  9. 5.4.7 30 Jul 2025
    Release notes

    Changelog

    5.4.7 - 2025-07-30

    Changed

    • Updated min sdk version to ^3.8.0
    • Updated dependencies

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated min sdk version to ^3.8.0
    • Updated dependencies
    Open source →
  10. 5.4.6 23 Jul 2025
    Release notes

    Changelog

    5.4.6 - 2025-07-23

    Changed

    • Updated dependencies
    • Updated min dart sdk to 3.8.0

    The package and it's documentation are available at pub.dev.

    Open source →
    Release notes

    Changed

    • Updated dependencies
    • Updated min dart sdk to 3.8.0
    Open source →
  11. 5.4.5 18 Apr 2025
    Release notes

    Fixed

    • Fixed incompatibility with osv-scanner Version 2.0
      • To keep using v1, add legacy: true to the scanner config
    Open source →
  12. 5.4.4 14 Mar 2025
    Release notes

    Changed

    • Updated dependencies
    Open source →
  13. 5.4.3 17 Feb 2025
    Release notes

    Changed

    • Updated dependencies
    • Updated min dart sdk to 3.7.0
    Open source →
  14. 5.4.2 30 Dec 2024
    Release notes

    Fixed

    • Make osv-scanner compatible with dart workspaces
    Open source →
  15. 5.4.1 29 Dec 2024
    Release notes

    Changed

    • Updated dependencies
    • Updated min dart sdk to 3.6.0

    Fixed

    • Make pull-up-dependencies compatible with dart workspaces
    Open source →
  16. 5.4.0 13 Sep 2024
    Release notes

    Added

    • Added global configuration option exclude (#4)
      • Allows to exclude files from analysis using regular expressions
    • Added ignore-unstaged-files to analyze and custom-lint tasks (#31)
      • Allows to specify whether unstaged files should cause the tool to fail
      • Can be combined with the global exclude to fully exclude files

    Changed

    • Updated dependencies
    • Updated min dart sdk to 3.5.0
    Open source →
  17. 5.3.1 19 Aug 2024
    Release notes

    Changed

    • Updated dependencies
    Open source →
  18. 5.3.0 11 Mar 2024
    Release notes

    Changed

    • Updated dependencies
    • Updated min dart sdk to 3.3.0

    Fixed

    • analyze task now honors error-level setting and will only fail if the analyzer fails as well (#30)
      • It will still log info/warning messages

    Removed

    • Removed the scan-mode option of the analyze task (#30)
      • It will now always scan the whole repository for issues
    Open source →
  19. 5.2.1 17 Aug 2023
    Release notes

    Changed

    • Update dependencies
      • Major update of analyzer to 6.*
      • Major update of mocktail to 1.*
    Open source →
  20. 5.2.0 14 Jun 2023
    Release notes

    Added

    • Make osv-scanner task configurable
      • Allows to specify a configuration file
      • Allows to scan the whole repository instead of just the lockfile

    Changed

    • Update dependencies

    Fixed

    • Added documentation for custom-lint and osv-scanner tasks
    • Only run custom-lint task if installed as dev dependency
    Open source →
  21. 5.2.0+1 28 Jun 2023
    Release notes

    Changed

    • Updated dependencies
    Open source →
  22. 5.1.0 12 May 2023
    Release notes

    Changed

    • Update minimal dart SDK to 3.0.0
    Open source →
  23. 5.1.0+1 17 May 2023
    Release notes

    Changed

    • Update dependencies
    Open source →
  24. 5.0.0 09 May 2023
    Release notes

    Added

    • Add support for running custom_lint as pre commit hook via custom-lint task

    Removed

    • Removed TestImportTask and LibExportTask - superseded by custom-lint
    Open source →
  25. 4.1.0 22 Feb 2023
    Release notes

    Added

    • osv-scanner Task to automatically check for dependencies with security issues
      • Runs automatically, if the osv-scanner binary can be found
      • Scans the pubspec.lock to check if any of the dependencies has a know vulnerability
    Open source →
  26. 4.0.0 21 Oct 2022
    Release notes

    Selected Changes

    • Improved configuration of all tasks
      • Task are now all configured via the pubspec.yaml
      • Remove most of the task-related command line arguments
      • Analysis level and scope can now be configured for the analyze task
      • line length can now be configured for the format task
      • Separate allow-lists for the outdated and pull up tasks
    • Refactor lib export task to reliably handle staged files and to not run on projects not published to pub.dev
    • Revamp public API
      • made task implementations private
      • split library into multiple parts
      • Provide DartPreCommit.run for a simple entrypoint to invoke the hooks from code
    • Hooks do not run anymore if no files for the given directory have been staged
    Open source →
  27. 3.0.2 19 Jul 2022
    Release notes

    Changed

    • Update dependencies
    Open source →
  28. 3.0.2+1 15 Oct 2022

    Nothing published for this version

  29. 3.0.1 20 May 2022
    Release notes

    Changed

    • Update min dart SDK to 2.17.0, update dependencies
    Open source →
  30. 3.0.0 04 Mar 2022
    Release notes

    Added

    • FlutterCompatTask: Checks if a dart project can be added to a newly created flutter project. Useful to ensure that no package versions are required that are then what flutter currently supports
    • TestImportTask: Checks if any test files import library exports instead of sources
    • LibExportTask: Checks if all src files that contain package public definitions are exported somewhere in lib

    Changed

    • Use dart_test_tools for CI/CD, code analysis and testing
    • Enable all checks by default
    • Add support for a configuration part in the pubspec.yaml
      • For now, dependencies can be whitelisted for the outdated/pull-up tasks
    • Updated dependencies

    Removed

    • fix imports task
    • library imports task
    • nullsafety task
    Open source →
  31. 2.3.3 06 Dec 2021
    Release notes

    Changed

    • Dependency updates
    Open source →
  32. 2.3.2 01 Jul 2021
    Release notes

    Fixed

    • The analyze task was not working anymore, as the output format of dart analyze has changed. The task was now adjusted to handle the new format only
    Open source →
  33. 2.3.1 07 May 2021
    Release notes

    Fixed

    • The library-imports can now be properly ignored by adding // dart_pre_commit:ignore-library-import before the line where the import happens
    Open source →
  34. 2.3.0 30 Apr 2021
    Release notes

    Added

    • New Task library-imports (#12)
      • Scans the source files (files under lib/src) and test files
      • If any import in these files references a dart file that is a top level library, the task rejects
      • Top-Level libraries are dart files under lib, except those placed in lib/src

    Changed

    • Change Mocking framework to mocktail
    Open source →
  35. 2.2.0 29 Apr 2021
    Release notes

    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)
    • Outdated task: Checks if any packages can be updated (#7)
    • Nullsafe task: Checks if any packages can be updated to a nullsafe version (#7)
    • --[no-]ansi CLI option to explicitly enable/disable rich logging (#10)

    Changed

    • Migrated package to nullsafety
    • 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
    • Ported package to use freezed dataclasses
    • Improved status icons
    • Added refresh parameter to logger interface
    • Updated dependencies

    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

    Removed

    • Hooks.create was removed, use the provider instead
    • TaskException was removed in favor of normal exceptions
    Open source →
  36. 2.2.0-nullsafety.2 08 Mar 2021 pre-release

    Nothing published for this version

  37. 2.2.0-nullsafety.1 16 Feb 2021 pre-release

    Nothing published for this version

  38. 2.2.0-nullsafety.0 03 Feb 2021 pre-release

    Nothing published for this version

  39. 2.1.0-nullsafety.0 01 Feb 2021 pre-release

    Nothing published for this version

  40. 2.0.0-nullsafety.1 28 Jan 2021 pre-release

    Nothing published for this version

  41. 2.0.0-nullsafety.0 14 Jan 2021 pre-release

    Nothing published for this version

  42. 1.1.4 10 Dec 2020
    Release notes

    Fixed

    • Include pubspec.yaml into analysis step
    • Skip dart analyze, if no files are to be analyzed
    Open source →
  43. 1.1.3 08 Dec 2020
    Release notes

    Fixed

    • fix-imports now works for imports with trailing comments (#2)
    Open source →
  44. 1.1.2 04 Dec 2020
    Release notes

    Fixed

    • Fixed problem with repositories where the dart project folder beeing scanned is not the the git root folder
    Open source →
  45. 1.1.1 22 Oct 2020
    Release notes

    Fixed

    • Fixed bug that caused a crash in --check-pull-up if dependencies declared in the pubspec.yaml are missing in pubspec.lock (#1)
    Open source →
  46. 1.1.0 19 Oct 2020
    Release notes

    Added

    • Support for check if the version of dart dependencies can be pulled up to a higher version from the lockfile
    Open source →
  47. 1.0.2 09 Oct 2020
    Release notes

    Fixed

    • Fixed bug where the tool tried to format deleted files
    Open source →
  48. 1.0.1 07 Oct 2020
    Release notes

    Fixed

    • dart analyze now treats lint infos as errors
    • Replace legacy dart tools in README
    • Add missing await in program runner
    Open source →
  49. 1.0.0 07 Oct 2020
    Release notes

    Added

    • Initial release
    • Automatic deployment
    Open source →
  50. 0.1.0 06 Oct 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive