my_utility 2.0.7
my_utility: ^2.0.7 copied to clipboard
This package contains various utility classes and extension methods.
2.0.6 #
- Updated example.
2.0.4 #
-
Add SPDX short identifier to LICENSE.
-
Deprecated library lib/printers.dart and function
setPrintersColorUsage
. -
Modified library lib/io/interactive.dart:
-
Made default value for
answerReader
parameter public:_defaultAnswerReader
->defaultAnswerReader
. -
Improved docs for functions.
-
Added parameter
output
to every function, which is used by the function to write any output messages. -
Added functions
pause
andpauseSync
.
-
-
Moved function
printProgessAnimation
from deprecated library lib/printers.dart to lib/io/print.dart. Also added new parametertype
to the function. -
Migrated from linting rules strict_analysis to package lints for a better package score on pub.dev.
2.0.3 #
-
IsolatedStdIn
is now a subclass ofStream<List<int>>
, just like theStdin
class fromdart:io
. -
Improved dartdocs for package score on pub.dev.
2.0.2 #
-
Bugfix in lib/io/interactive.dart:
The functions
promptYesNo
andpromptUntilValidPick
are the asynchronous counterparts topromptYesNoSync
andpromptUntilValidPickSync
but they were not actually asynchronous by default. The problem lied in the implementation of the default function used for theanswerReader
parameter, because that implementation used the functionsharedStdIn.nextLine
which relies onstdin
to block the callingIsolate
. This behaviour is not asynchronous and therefore considered a bug.To fix this, any calls to
sharedStdIn.nextLine
have been replaced with calls toisolatedStdin.readLine
.
2.0.1 #
-
Deprecated library
lib/io/stdin.dart
. -
Added libraries
lib/io/shared_stdin.dart
(replaceslib/io/stdin.dart
) andlib/io/isolated_stdin.dart
.
2.0.0 #
-
Removed library
lib/strings.dart
. -
Removed library
lib/async/completable_future.dart
. -
Changed API in class
CliTool
:-
Removed method
writeWindowsBatchScriptSync
. -
Made method
writeWindowsBatchScript
static, changed its parameters and made it synchronous.
-
-
Changed API in class
ElixirCliTool
:-
Removed method
getMixCliToolSync
. -
Made method
getMixCliTool
static and synchronous.
-
-
Changed API in class
FlutterCliTool
:-
Removed method
getDartCliToolSync
. -
Made method
getDartCliTool
static and synchronous.
-
-
Changed API in class
FvmCliTool
:-
Removed method
getFlutterCliToolSync
. -
Made method
getFlutterCliTool
static and synchronous.
-
-
Changed API for function
MyUtilityExtensionDeepCopyIterable.addCopyFactory
, the function now expects an argument of typeDeepCopyFactory<E>
instead ofdynamic
. -
Removed superclass
Equatable
from allFFProbe*Model
classes. -
Removed dependency on package equatable, because it is not used anywhere.
-
Removed deprecated parameters for function
MyUtilityExtensionRandomNextAsciiString.nextAsciiString
. -
Removed deprecated parameter for function
MyUtilityExtensionStreamWithInitialDelay.withInitialDelay
. -
Removed deprecated parameter for function
MyUtilityExtensionFutureWithDelay.withDelay
.
1.6.5 #
-
Replaced all internal imports of package dartx with relative imports of lib/dartx.dart.
-
Added library lib/typedefs/copy_factory.dart.
-
Improved API for
MyUtilityExtensionDeepCopyIterable
.
1.6.4 #
-
Modified library lib/cli/cli_tool.dart:
-
Added field
CliTool.extraEnvironment
-
Added argument
includeExtraEnvironment
to methodsCliTool.runSync
,CliTool.runAsync
,CliTool.startProcess
,CliTool.consumeProcess
andCliTool.evaluateProcess
. -
Annotated some members of class
CliTool
withnonVirtual
.
-
-
Removed dependency on package fixnum, because it is not used anywhere.
-
Deprecated
props
getter on allFFProbe*
models, because theextends Equatable
statement will be removed inv2.0.0
.
1.6.3 #
-
Improved
MyUtilityExtensionIntToRadixStringAsUnsigned
on platform web. -
Fixed bugs in library lib/data_units.dart and added library lib/extensions/binary_prefix.dart.
-
Improved test suite.
1.6.2 #
- Put debug-only code segments in
assert(...)
statements.
1.6.1 #
-
Bugfix in
MyUtilityExtensionIntToRadixStringAsUnsigned
:The conversion did not work correctly for all numbers. Also only binary (base 2) and hexadecimal (base 16) was supported. Now this function works like
int.toRadixString
from the core library. -
Bugfix in
MyUtilityExtensionFutureWithDelay
:The delay now also applies to errors.
-
Bugfix in
MyUtilityExtensionStreamWithInitialDelay
:Previously errors thrown by the source stream have been sent into the void and the initial delay handling when the subscription was paused/resumed did also not work correctly. This has been fixed by creating a custom
StreamTransformer
. -
Now ignoring linter warnings for
parameter_assignments
.
1.6.0 #
-
Removed dependency on package random_string.
-
Added function
expectRegexMatch
to library lib/test/expect.dart. -
Modified library lib/extensions/random.dart:
-
Added extension
MyUtilityExtensionRandomNextAlphaNumericString
-
Deprecated args
asciiStart
andasciiEnd
in functionMyUtilityExtensionRandomNextAsciiString.nextAsciiString
.
-
1.5.14 #
-
Added library lib/functions/is_nullable_type.dart.
-
Added library lib/errors/argument_error_utils.dart.
-
Updated library lib/src/int_extension.dart to be platform agnostic (can now be used when compiling to JavaScript).
1.5.13 #
-
Added library lib/extensions/future.dart.
-
Added library lib/extensions/int.dart.
-
Added extension
MyUtilityExtensionStreamWithInitialDelay
to lib/extensions/stream.dart.
1.5.12 #
-
Added library lib/extensions/deep_copy.dart.
-
Added Dockerfile for building Protobuf models for Dart.
-
Updated deprecation notices to match SemVer expectations, deprecated features will now be removed in version
2.0.0
.
1.5.11 #
- Bugfix in function
yamlMapToJsonMap
: forgot to passconverters
to recursive calls ofyamlMapToJsonMap
.
1.5.10 #
-
Deprecated functions
pascalToSnake
,camelToSnake
,snakeToPascal
and library lib/string.dart. -
Modified library lib/extensions/string.dart:
Added extensions
MyUtilityExtensionStringCamelOrPascalToSnake
,MyUtilityExtensionStringDecapitalize
,MyUtilityExtensionStringSnakeToCamel
andMyUtilityExtensionStringSnakeToPascal
.
1.5.9 #
- Added getter
originalExecutable
to classCliTool
1.5.8 #
-
Added constructors
CliStreamConsumer.fromVoid
andCliStreamConsumer.fromFake
to classCliStreamConsumer
. -
Added constructor parameter
windowsCodePage
to every subclass ofCliTool
. -
Added new CLI tool libraries:
-
Renamed
MyUtilityExtensionSetFileStatePermissionCanWrite
toMyUtilityExtensionFileStatPermissionCanWrite
. -
Renamed
MyUtilityExtensionSetFileStatePermissionCanRead
toMyUtilityExtensionFileStatPermissionCanRead
. -
Renamed
MyUtilityExtensionSetFileStatePermissionCanExecute
toMyUtilityExtensionFileStatPermissionCanExecute
. -
Added extensions
MyUtilityExtensionFileStatPermissionToOctalMode
andMyUtilityExtensionFileStatPermissionOperatorPipe
forFileStatPermission
.
1.5.7 #
-
Forgot to commit library lib/extensions/stream.dart in last version.
-
Changes in lib/cli/cli_consumer.dart
-
Deprecated
NullConsumer
and replaced it withVoidConsumer
. -
Added class
FakeConsumer
.
-
-
Added library lib/errors/generic_error.dart.
-
Added library lib/cli/fvm.dart.
-
Added functions
getDartCliToolSync
andgetDartCliTool
to classFlutterCliTool
in library lib/cli/flutter.dart.
1.5.6 #
- Added library lib/extensions/stream.dart.
1.5.5 #
- Fixed type on line 108 in library lib/cli/ffmpeg.dart.
1.5.4 #
- Removed deprecated methods from
FFProbeCliTool
and added getterisMuxed
to enumMediaFormat
in library lib/cli/ffprobe.dart.
1.5.3 #
- Made constructor for class
FlutterVersion
public.
1.5.2 #
- Now exporting class
FlutterVersion
from lib/cli/flutter.dart.
1.5.1 #
- Changed dependency constraints for packages.
1.5.0 #
-
Added dependency async.
-
Added dependency io.
-
Added library math.dart.
-
Added library result.dart.
-
Deprecated library lib/async/completable_future.dart.
-
Modified library lib/extensions.dart:
Split all extensions on classes into multiple extensions so that each extension only contains one member (one method, or one getter, ...). Also prefixed every extension with
MyUtilityExtension
. -
Removed extension method
MyUtilityExtensionDirectory.subdir
-
Removed
MyUtilityExtensionStdinReadLineAsync
. Use SharedStdin.nextLine from package io instead. -
Modified extensions for class
Directory
:- Turned
getUniqueFilename
async and addedgetUniqueFilenameSync
.
- Turned
-
Modified extensions for class
FileSystemEntity
:-
Renamed
dirName
todirname
. -
Moved getter
extension
to extensions for classFile
. -
Removed method
withName
.
-
-
Modified library lib/io/interactive.dart
-
Turned
promptYesNo
async and addedpromptYesNoSync
. -
Turned
promptUntilValidPick
async and addedpromptUntilValidPickSync
.
-
1.4.4 #
- Added library lib/extensions/stdin.dart.
1.4.3 #
- Added library lib/functions/yaml_map_to_json_map.dart.
1.4.2 #
- Added parameters
environment
andincludeParentEnvironment
to methodsrunSync
,runAsync
andstartProcess
in classCliTool
in library lib/cli.dart.
1.4.1 #
- Added parameter
selectorFormatter
to functionpromptUntilValidPick
from library lib/io/interactive.dart
1.4.0 #
-
Added library lib/io/interactive.dart
-
Moved function
promptYesNo
from library lib/io/utils.dart to library lib/io/interactive.dart -
Changes to
StringMyUtilityExtension
from library lib/extensions/string.dart-
Renamed function
splitLines
tosplitLine
-
Improved function
splitLine
-
1.3.6 #
- Added constructor
JsonEnumConverter.withCache
to classJsonEnumConverter
from library lib/json_converters/json_enum_converter.dart
1.3.5 #
-
Added library lib/json_converters/semver.dart
-
Now exporting package
version
from library lib/semver.dart
1.3.4 #
-
Changes to
JsonEnumConverter
in library lib/json_converters/json_enum_converter.dart:-
Removed the getters
enumJsonMap
andjsonEnumMap
-
Added the getter
enumValues
-
Removed override of the method
toJson
-
1.3.3 #
-
Changes to
JsonEnumConverter
in library lib/json_converters/json_enum_converter.dart:- Made the class abstract and changed the member
enumJsonMap
to an abstract getter
- Made the class abstract and changed the member
1.3.2 #
-
Added library lib/json_converters/json_enum_converter.dart
-
Changes for
MapMyUtilityExtension
in library lib/extensions/map.dart:-
Added method
inverted
toMapMyUtilityExtension
-
Improved method
toPrettyString
toMapMyUtilityExtension
-
-
Added library lib/dartx.dart, which just exports the dartx package.
1.3.1 #
- Bumped minimum Dart SDK up to
>=3.1.5
, because the Flutter SDK 3.13.9 uses Dart3.1.5
.
1.3.0 #
- Updated dependencies for Flutter SDK compatability packages. Now the minimum supported Flutter SDK is 3.13.9.
1.2.2 #
-
Removed git dependency of package
dotenv
-
Added test for class
MariaDbDumpCliTool
-
Changed version constraints for dependency
xml
from6.3.0
to>=5.0.0 <=6.3.0
1.2.1 #
-
Added libraries
lib/reflection.dart
,lib/reflection/program_info.dart
,lib/errors.dart
,lib/errors/implementation_error.dart
,lib/errors/result_error.dart
andlib/errors/unreachable_code_error.dart
-
Added tests
test/async/call_once_test.dart
andtest/reflection/program_info_test.dart
1.2.0 #
-
Removed dependency
test_api
-
Constrained dependency
test
to^1.23.1
-
Removed
lib/test/bootstrap
,lib/test/fake.dart
andlib/test/scaffolding.dart
1.1.5 #
- Made member
encoder
of classFFProbeFormatTagsModel
nullable.
1.1.4 #
- Bugfix in
FFMpegCliTool.modifyAudioFile
1.1.3 #
- Bugfix in
FFMpegCliTool.modifyAudioFile
1.1.2 #
-
Modified
lib/cli/ffprobe.dart
-
Added methods
FFProbeCliTool.getModel
andMediaFormat.fromStreamModel
-
Deprecated methods
FFProbeCliTool.getStreamModels
andFFProbeCliTool.getMediaFormats
-
-
Removed dependency
archive
-
Bumped dependency
json_annotation
to^4.9.0
1.1.1 #
-
Modified lib
lib/test.dart
-
Added libs
lib/test/test.dart
,lib/test/scaffolding.dart
,lib/test/fake.dart
,lib/test/bootstrap/browser.dart
,lib/test/bootstrap/node.dart
andlib/test/bootstrap/vm.dart
-
Modified lib
lib/test/expect.dart
. Added export forpackage:test/expect.dart
-
1.1.0 #
-
Added lib
lib/async.dart
-
Moved lib
lib/call_once.dart
tolib/async/call_once.dart
-
Added lib
lib/async/completable_future.dart
-
Removed dependency
ansicolor
-
Added dependencies
test_api: ^0.4.18
,test: any
andcollection: ^1.17.1
to the normal package dependencies
1.0.2 #
-
Modified lib
lib/cli/ffmpeg.dart
- Added member
outputFilepath
to classAudioFileModificationProgressEvent
- Added member
1.0.1 #
-
Now exporting package
version
fromlib/cli/cli_tool.dart
-
Modified library
printers.dart
- Changed implementation of
setPrintersColorUsage
. This change does not affect any users.
- Changed implementation of
1.0.0 #
-
Added dependency
intl: ^0.18.0
-
Added library
call_once.dart
-
Added library
semver.dart
-
Added library
exceptions.dart
-
Modified library
json_converters.dart
:-
Added library
json_converters/duration.dart
with classesDurationNumberJsonConverter
andDurationStringJsonConverter
-
Added library
json_converters/json_list_converter.dart
with the classJsonListConverter
-
-
Added library
typedefs.dart
-
Modified library
printers.dart
- Renamed functions
setColorUsage
tosetPrintersColorUsage
- Renamed functions
-
Replaced imports of
dart:io
with packageuniversal_io
-
Modified library
extensions.dart
-
Added methods
subdir
,containsSync
,contains
,file
anddirectory
toDirectoryMyUtilityExtension
. These methods were copied from package dartx 1.2.0. -
Added methods
appendBytes
,appendString
andforEachBlock
toFileMyUtilityExtension
. These methods were copied from package dartx 1.2.0. -
Added methods and getters
name
,nameWithoutExtension
,dirName
,isWithin
,withName
andextension
toFileSystemEntityMyUtilityExtension
. These methods were copied from package dartx 1.2.0. -
Added method
toHumanReadableTimestamp
toDateTimeMyUtilityExtension
-
-
Added cli tool
FFMpegCliTool
andFFProbeCliTool
0.0.40 #
-
Added extension
RandomMyUtilityExtension
-
Added extension
DoubleMyUtilityExtension
and classDoubleWithTolerance
-
Added library
date.dart
which containes the classesMyDateUtility
andMyDateTimeRange
-
Added tests for the new functionality
0.0.39 #
- Added method
FlutterCliTool.clean
0.0.38 #
- Allowing unrecognized keys when parsing flutter version
0.0.37 #
- Added
DumpOption.skipTriggers
0.0.36 #
- Added parameter
binLinks
to methodNpmCliTool.getPackages
0.0.35 #
- Added the
port
parameter to all methods of theMariaDbCliTool
andMariaDbDumpCliTool
0.0.34 #
- Bugfix in
PowershellCliTool.runScriptAsync
method
0.0.33 #
- Changed return value of
CliTool._consumeProcess
method toint
0.0.32 #
- Bugfix in
CliTool._consumeProcess
method
0.0.31 #
- Bugfix in
PowershellCliTool.runScriptAsync
method
0.0.30 #
- Added
PowershellCliTool.runScriptAsync
method
0.0.29 #
-
Bugfix in
DartCliTool
:The constructor default initialized the executable with
io.Platform.resolvedExecutable
, which works fine as long as no script is compiled, because the value ofio.Platform.resolvedExecutable
is the dart executable if a dart script is run, but if a dart script gets compiled, then the value of the resolved executable is the path to the compiled dart script.
0.0.28 #
- Added function
printProgessAnimation
toprinters.dart
0.0.27 #
- Bugfix in
MariaDbDatabase.write
where columns that needed an enclosure in single quotes did not get one, now this is properly managed.
0.0.26 #
-
Added sublibrary
printers.dart
-
Added sublibrary
string.dart
0.0.25 #
-
Improved mariadb schemas api
-
Added
encoding: io.systemEncoding
parameter tobatchFile.writeAsStringSync
in the constructor of aCliTool
0.0.24 #
-
Added method
FlutterVersion.toJsone
-
Added extension
MapMyUtilityExtension
0.0.23 #
- Added parameter
entrypoint
to methodFlutterCliTool.build
0.0.22 #
- Bugfix in they way some cli tools retrieve their version
0.0.21 #
-
Added the suffix
CliTool
to all subclasses of theCliTool
class -
Added
PowershellCliTool
0.0.20 #
- Renamed
MariaDbTable.hasRows
toMariaDbTable.hasColumnsWithRows
and fixed a bug in the getter that caused a crash if the table has no rows.
0.0.19 #
- Bugfix in
promptYesNo
0.0.18 #
- Bugfix in
MariaDbTable.checkColumns
, the program would crash if the table had no columns
0.0.17 #
-
Bugfix in
StringMyUtilityExtension.splitLines
-
Added
produceXml
parameter to methodMariaDbCliTool.execute
-
Added
produceXml
parameter to methodMariaDbDumpCliTool.dump
-
Added dart doc to the
DumpOption
enum -
Added
MariaDbDumpCliTool.dumpAndParse
method which returns an instance of the classMariaDbDatabase
that can be used to access the data of the dump result from a dart object.
0.0.16 #
- Now properly utilizing
windowsCodePage
.
0.0.15 #
- Added property
windowsCodePage
toCliTool
, also set the default value ofwindowsCodePage
toWindowsCodePage.utf8
.
0.0.14 #
-
Added
FileStatMyUtilityExtension
-
Added
NodeCli
0.0.13 #
- Fixed
FileSystemEntityMyUtilityExtension.absolutePosixPath
for windows
0.0.12 #
- Reverted changes from
0.0.11
and addedFileSystemEntityMyUtilityExtension.absolutePosixPath
extension getter
0.0.11 #
- Added
windows
parameter toDirectoryMyUtilityExtension.resolveUri
,DirectoryMyUtilityExtension.resolveUriSync
,FileMyUtilityExtension.resolveUri
andFileMyUtilityExtension.resolveUriSync
extension methods.
0.0.10 #
- Added
host
parameter to allMariaDbCliTool
andMariaDbDumpCliTool
methods.
0.0.9 #
- Added method
execute
toMariaDbCliTool
and fixed implementation ofrunSqlScript
andrestore
.
0.0.8 #
- Changed the default encoding for all cli methods to
UTF-8
.