my_utility 2.0.7 copy "my_utility: ^2.0.7" to clipboard
my_utility: ^2.0.7 copied to clipboard

This package contains various utility classes and extension methods.

2.0.7 #

2.0.6 #

  • Updated example.

2.0.5 #

  • Updated LICENSE so that it is detectable by pana.

  • Updated example code.

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 and pauseSync.

  • Moved function printProgessAnimation from deprecated library lib/printers.dart to lib/io/print.dart. Also added new parameter type 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 of Stream<List<int>>, just like the Stdin class from dart:io.

  • Improved dartdocs for package score on pub.dev.

2.0.2 #

  • Bugfix in lib/io/interactive.dart:

    The functions promptYesNo and promptUntilValidPick are the asynchronous counterparts to promptYesNoSync and promptUntilValidPickSync but they were not actually asynchronous by default. The problem lied in the implementation of the default function used for the answerReader parameter, because that implementation used the function sharedStdIn.nextLine which relies on stdin to block the calling Isolate. This behaviour is not asynchronous and therefore considered a bug.

    To fix this, any calls to sharedStdIn.nextLine have been replaced with calls to isolatedStdin.readLine.

2.0.1 #

  • Deprecated library lib/io/stdin.dart.

  • Added libraries lib/io/shared_stdin.dart (replaces lib/io/stdin.dart) and lib/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 type DeepCopyFactory<E> instead of dynamic.

  • Removed superclass Equatable from all FFProbe*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 #

1.6.4 #

  • Modified library lib/cli/cli_tool.dart:

    • Added field CliTool.extraEnvironment

    • Added argument includeExtraEnvironment to methods CliTool.runSync, CliTool.runAsync, CliTool.startProcess, CliTool.consumeProcess and CliTool.evaluateProcess.

    • Annotated some members of class CliTool with nonVirtual.

  • Removed dependency on package fixnum, because it is not used anywhere.

  • Deprecated props getter on all FFProbe* models, because the extends Equatable statement will be removed in v2.0.0.

1.6.3 #

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 and asciiEnd in function MyUtilityExtensionRandomNextAsciiString.nextAsciiString.

1.5.14 #

1.5.13 #

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 pass converters to recursive calls of yamlMapToJsonMap.

1.5.10 #

  • Deprecated functions pascalToSnake, camelToSnake, snakeToPascal and library lib/string.dart.

  • Modified library lib/extensions/string.dart:

    Added extensions MyUtilityExtensionStringCamelOrPascalToSnake, MyUtilityExtensionStringDecapitalize, MyUtilityExtensionStringSnakeToCamel and MyUtilityExtensionStringSnakeToPascal.

1.5.9 #

  • Added getter originalExecutable to class CliTool

1.5.8 #

  • Added constructors CliStreamConsumer.fromVoid and CliStreamConsumer.fromFake to class CliStreamConsumer.

  • Added constructor parameter windowsCodePage to every subclass of CliTool.

  • Added new CLI tool libraries:

  • Renamed MyUtilityExtensionSetFileStatePermissionCanWrite to MyUtilityExtensionFileStatPermissionCanWrite.

  • Renamed MyUtilityExtensionSetFileStatePermissionCanRead to MyUtilityExtensionFileStatPermissionCanRead.

  • Renamed MyUtilityExtensionSetFileStatePermissionCanExecute to MyUtilityExtensionFileStatPermissionCanExecute.

  • Added extensions MyUtilityExtensionFileStatPermissionToOctalMode and MyUtilityExtensionFileStatPermissionOperatorPipe for FileStatPermission.

1.5.7 #

1.5.6 #

1.5.5 #

1.5.4 #

  • Removed deprecated methods from FFProbeCliTool and added getter isMuxed to enum MediaFormat in library lib/cli/ffprobe.dart.

1.5.3 #

  • Made constructor for class FlutterVersion public.

1.5.2 #

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 added getUniqueFilenameSync.
  • Modified extensions for class FileSystemEntity:

    • Renamed dirName to dirname.

    • Moved getter extension to extensions for class File.

    • Removed method withName.

  • Modified library lib/io/interactive.dart

    • Turned promptYesNo async and added promptYesNoSync.

    • Turned promptUntilValidPick async and added promptUntilValidPickSync.

1.4.4 #

1.4.3 #

1.4.2 #

  • Added parameters environment and includeParentEnvironment to methods runSync, runAsync and startProcess in class CliTool in library lib/cli.dart.

1.4.1 #

1.4.0 #

1.3.6 #

1.3.5 #

1.3.4 #

1.3.3 #

1.3.2 #

1.3.1 #

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 from 6.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 and lib/errors/unreachable_code_error.dart

  • Added tests test/async/call_once_test.dart and test/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 and lib/test/scaffolding.dart

1.1.5 #

  • Made member encoder of class FFProbeFormatTagsModel 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 and MediaFormat.fromStreamModel

    • Deprecated methods FFProbeCliTool.getStreamModels and FFProbeCliTool.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 and lib/test/bootstrap/vm.dart

    • Modified lib lib/test/expect.dart. Added export for package:test/expect.dart

1.1.0 #

  • Added lib lib/async.dart

  • Moved lib lib/call_once.dart to lib/async/call_once.dart

  • Added lib lib/async/completable_future.dart

  • Removed dependency ansicolor

  • Added dependencies test_api: ^0.4.18, test: any and collection: ^1.17.1 to the normal package dependencies

1.0.2 #

  • Modified lib lib/cli/ffmpeg.dart

    • Added member outputFilepath to class AudioFileModificationProgressEvent

1.0.1 #

  • Now exporting package version from lib/cli/cli_tool.dart

  • Modified library printers.dart

    • Changed implementation of setPrintersColorUsage. This change does not affect any users.

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 classes DurationNumberJsonConverter and DurationStringJsonConverter

    • Added library json_converters/json_list_converter.dart with the class JsonListConverter

  • Added library typedefs.dart

  • Modified library printers.dart

    • Renamed functions setColorUsage to setPrintersColorUsage
  • Replaced imports of dart:io with package universal_io

  • Modified library extensions.dart

    • Added methods subdir, containsSync, contains, file and directory to DirectoryMyUtilityExtension. These methods were copied from package dartx 1.2.0.

    • Added methods appendBytes, appendString and forEachBlock to FileMyUtilityExtension. These methods were copied from package dartx 1.2.0.

    • Added methods and getters name, nameWithoutExtension, dirName, isWithin, withName and extension to FileSystemEntityMyUtilityExtension. These methods were copied from package dartx 1.2.0.

    • Added method toHumanReadableTimestamp to DateTimeMyUtilityExtension

  • Added cli tool FFMpegCliTool and FFProbeCliTool

0.0.40 #

  • Added extension RandomMyUtilityExtension

  • Added extension DoubleMyUtilityExtension and class DoubleWithTolerance

  • Added library date.dart which containes the classes MyDateUtility and MyDateTimeRange

  • 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 method NpmCliTool.getPackages

0.0.35 #

  • Added the port parameter to all methods of the MariaDbCliTool and MariaDbDumpCliTool

0.0.34 #

  • Bugfix in PowershellCliTool.runScriptAsync method

0.0.33 #

  • Changed return value of CliTool._consumeProcess method to int

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 of io.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 to printers.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 to batchFile.writeAsStringSync in the constructor of a CliTool

0.0.24 #

  • Added method FlutterVersion.toJsone

  • Added extension MapMyUtilityExtension

0.0.23 #

  • Added parameter entrypoint to method FlutterCliTool.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 the CliTool class

  • Added PowershellCliTool

0.0.20 #

  • Renamed MariaDbTable.hasRows to MariaDbTable.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 method MariaDbCliTool.execute

  • Added produceXml parameter to method MariaDbDumpCliTool.dump

  • Added dart doc to the DumpOption enum

  • Added MariaDbDumpCliTool.dumpAndParse method which returns an instance of the class MariaDbDatabase 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 to CliTool, also set the default value of windowsCodePage to WindowsCodePage.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 added FileSystemEntityMyUtilityExtension.absolutePosixPath extension getter

0.0.11 #

  • Added windows parameter to DirectoryMyUtilityExtension.resolveUri, DirectoryMyUtilityExtension.resolveUriSync, FileMyUtilityExtension.resolveUri and FileMyUtilityExtension.resolveUriSync extension methods.

0.0.10 #

  • Added host parameter to all MariaDbCliTool and MariaDbDumpCliTool methods.

0.0.9 #

  • Added method execute to MariaDbCliTool and fixed implementation of runSqlScript and restore.

0.0.8 #

  • Changed the default encoding for all cli methods to UTF-8.
1
likes
160
points
564
downloads

Publisher

unverified uploader

Weekly Downloads

This package contains various utility classes and extension methods.

Repository (GitLab)
View/report issues

Documentation

API reference

License

LGPL-2.1 (license)

Dependencies

ansi_colorizer, async, collection, dartx, intl, io, json_annotation, meta, path, test, universal_io, version, xml, yaml

More

Packages that depend on my_utility