From eac6f151e19ac70d7ae33a49386cc70f5049de5a Mon Sep 17 00:00:00 2001 From: oppahansi Date: Sat, 23 Dec 2023 09:03:58 +0100 Subject: [PATCH] chore: updated readme, changelog, version bump for pub.dev --- CHANGELOG.md | 5 +++++ README.md | 6 +++++- lib/src/constants.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4792558..5f1a3f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.0.4 + +- Added dry run support +- Added support for library directives + ## 1.0.3 - Moved all files in src folder to hide them from importing. diff --git a/README.md b/README.md index 9c9a67c..294407f 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Users can customize the import sorting behavior using various flags and options. ### Before ```dart +library better_imports; import 'dart:io'; import 'package:better_imports/lib.dart'; import 'cfg_test.dart'; @@ -48,6 +49,8 @@ void main() { ### After (default config) ```dart +library better_imports; + // Dart Imports import 'dart:io'; @@ -122,7 +125,8 @@ Name Abbr Description --silent -s Disables results output in console. --relative Converts all project package imports to relative project imports. --no-comments Removes comments from import types / sections. ---trace Prints all logging messages to console. Default is false. +--trace Prints extended logs to console. +--dry-run Prints the results of the run without writing it to the file. ``` diff --git a/lib/src/constants.dart b/lib/src/constants.dart index cdb0bea..9168edd 100644 --- a/lib/src/constants.dart +++ b/lib/src/constants.dart @@ -82,7 +82,7 @@ class Constants { --relative Converts all project package imports to relative project imports. --no-comments Removes comments from import types / sections. --trace Prints extended logs to console. - --dry-run Prints the result of the sort without writing it to the file. + --dry-run Prints the results of the run without writing it to the file. OPTIONS diff --git a/pubspec.yaml b/pubspec.yaml index 62d503b..a8a8e0b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: better_imports description: A better imports sorter for your .dart files. -version: 1.0.3 +version: 1.0.4 repository: https://github.com/oppahansi/better_imports executables: