bot 0.23.0
bot: ^0.23.0 copied to clipboard
A collection of (mostly) general libraries to make working with Dart more productive.
Changelog - Dart Bag of Tricks #
0.23.0 - 2013-07-24 (SDK 0.6.9.2 r25388) #
- Latest SDK
- BREAKING Moved
bot_testinto its own package.
0.22.2 - 2013-07-18 (SDK 0.6.5.0 r25017) #
- Updated SDK to 0.6.5
- Moved from
pathostopathand moved to a dev dependency
0.22.1 - 2013-07-11 (SDK 0.6.3.3 r24898) #
- Fixes for 0.6 SDK rev.
- Error constructors
- Warnings on
hashCodewith==
0.22.0 - 2013-06-20 (SDK 0.5.20.3 r24216) #
- Changes Since v0.21.0
- Fixes for latest SDK
0.21.0 - 2013-06-04 (SDK 0.5.13.1 r23552) #
bot #
- BREAKING
EventHandleno longer extendsStreamController- Should not affect most usage, though.
0.20.1 - 2013-04-29 (SDK 0.5.1.0 r22072) #
- Just some tiny nits.
0.20.0 - 2013-04-17 (SDK 0.4.7+3 r21604) #
0.16.3+1 - 2013-04-09 (SDK 0.4.5+1 r21094) #
-
Tiny cleanup. Moved to latest SDK rev.
0.16.2 - 2013-04-03 (SDK 0.4.4+4 r20810) #
bot #
SequencelearneditemsEqualStringLineReaderlearnedbool get eofandString peekNextLine()
0.16.1 - 2013-03-25 (SDK 0.4.3+1 r20444) #
- Changes Since v0.16.0
- Tiny tweaks to support changes in Canvas
0.16.0 - 2013-03-19 (SDK 0.4.2.5 r20193) #
- Changes Since v0.15.0.2
- Fixes for changes in
String,Iterableanddart:html.
bot #
- BREAKING Removed a number of deprecated APIs from
Enumerable. - BREAKING Replaced
ListBasewithSequence. Sequence does not implementList, but it does have an get indexer[int index].
hop_tasks #
- The unit test task logs a few more things.
0.15.0+2 - 2013-03-12 (SDK 0.4.1.0 r19425) #
hop_tasks #
- Fixed
dart2jsanddart_analyzertask on Windows
0.15.0 - 2013-03-06 (SDK 0.4.1.0 r19425) #
bot #
- Many changes related to using
Streamfor eventsAttachedEvent- BREAKING
addHandler->getStream - Learned
bool hasSubscribers
- BREAKING
EventHandle- Now extends
StreamControllerfromdart:async - BREAKING removed
fireEvent,add,remove
- Now extends
- BREAKING
EventRootremoved. - BREAKING
GlobalIdremoved. Property- BREAKING
addhandler->getStream - BREAKING
removeHandlerremoved - BREAKING Change events are now of NEW! type
PropertyChangedEventArgs
- BREAKING
bot_async #
FutureValue- BREAKING
outputChanged,inputChanged,errorare all nowStream
- BREAKING
bot_html #
Dragger- BREAKING
dragStartanddragDeltaare nowStream
- BREAKING
ResourceLoader- BREAKING
progressandloadedare nowStream
- BREAKING
bot_io #
-
AnsiColor- NEW! Supports bold text
- NEW!
BOLDandRESETconsts - NEW!
instance.asBold()method
-
Console- NEW!
static bool get supportsColor: An initial attempt to let console apps know if the host console supports color output via a call toString format(bool useColor)
- NEW!
-
NEW!
ShellString- A
String-like value that stores a value and anAnsiColor. - Allows centralized creation of text to be sent to the shell with the option to output with our without ANSI escape codes.
- A
bot_retained #
MouseManager- expose
cursorProperty - BREAKING All events are now
Stream-based - BREAKING cursor logic no longer sets the
cursorstyle on the targetCanvasElement.
- expose
- BREAKING
Thing,ThingParentandStageinvalidatednowStream
bot_texture #
TextureAnimationRequest.startedis nowStream
hop #
- BREAKING
getHelpTaskhas been removed. Now a config option onrunHop RootTaskContext- BREAKING constructor now has a mandatory argument
Printer - BREAKING
logchanged signature to take anObjectinstead ofString.colorargument removed. - BREAKING
printCoreremoved
- BREAKING constructor now has a mandatory argument
- BREAKING
Runneris now completely static. All state is stored and passed in via newHopConfigclass. TaskLoggerlearnedfinest,finer, andconfiglog levels.- BREAKING
HopConfigwas renamedTaskRegistry. A lot of members were hidden.
hop_tasks #
- dartdoc
- NEW!
createDartDocTaskmethod that returns aTask. SupportspostBuildoption. Smart defaults. - DEPRECATED
getCompileDocsFuncandcompileDocs
- NEW!
0.14.2 25 Feb 2013 (SDK 0.4.0.0 r18915) #
- Changes Since v0.14.1
- Bumped minimum Dart SDK version to 0.4.0.0 r18915
- Updated core dart packages to
>= 0.4.0+0
hop #
- Renamed
BaseConfigtoHopConfig.BaseConfigis new deprecated. HopConfiglearneddoPrint. Unifying all printing within hop to allow better redirection.
hop_tasks #
- The unit test task logic has a new, cleaner
Configurationclass.
0.14.1 23 Feb 2013 (SDK 0.3.7.6 r18717) #
bot #
- Added
requiresArgumentContainsPattern, which deprecatesrequiresArgumentMatches.
hop #
- Support task names that contain (but don't start with) '-'
hop_tasks #
bench- Output all final results as Duration. Include Standard Error.dart2js- AddedcreateDart2JsTaskmethod.
Shell Completion Script #
- added symlink
bin/shell-completion-generatorthat points tobin/shell_completion_generator.dart - Removed export of
COMP_WORDBREAKSin completion script. No need to mess with these values. - Generates script for multiple command names
0.14.0 20 Feb 2013 (SDK 0.3.7.6 r18717) #
- Changes Since v0.13.1
- Bumped minimum Dart SDK version to 0.3.7.6 r18717
- Updated core dart packages to
>= 0.3.7+6 - Removed
vendor/dart.js. Using version frombrowserpackage - Moved examples into library-specific directories.
- NEW!
bin/shell_completion_generator.dartfor creating shell completion scripts compatible with completion logic inbot_io
bot #
Enumerablelearnedexpandand deprecatedselectMany. Better alignment withIterable- NEW!
requireArgumentMatches- match an argument against aPattern(StringorRegExp)
bot_async #
- NEW!
getDelayedResult. See the docs. It's fun.
bot_git #
- NEW!
requireArgumentValidSha1- lot's of SHA1 hashes flying around. Nice helper. - NEW!
Tagclass. Represents info in a Git tag object. GitDir- NEW!
getCommits,getTags,showRef,showOrUpdateBranch,commitTree
- NEW!
bot_html #
- DEPRECATED and fixed
getTimeoutFuture
bot_io #
- NEW!
enableScriptLogListener- an easy way to write all log output to disk. - NEW! A whole set of new features around shell command completion.
- See example in
example/bot_io/completion/
- See example in
hop #
- BREAKING Renamed all completion scripts to extension
.sh. Breaks folks who may be sourcingtool/hop-completion.bash Task- BREAKING
descriptionargument toTaskconstructors is now named (not positional) - NEW! Easy to wire up
ArgParserto allow completion of task flags. - NEW! Can provide
List<TaskArgument> extendedArgsto fully document command line usage.
- BREAKING
- BREAKING!
ConsoleContextctor now takes ArgResults and a Task. - DEPRECATED
TaskFailError. UseTaskContext.failinstead - NEW! Added
getHelpTask()which allowshop help <command name> - Updated
bin/hopshell script to pass quoted params fully and accurately tohop_runner.dart - Exposed
Runner.runTask. RunResultnow has a descriptivetoString- Moved core hop command completion logic to new
bot_iocompletion helpers.
hop_tasks #
- All - using new
Taskfeatures to document flags and arguments - dartdoc Task - added optional
excludeLibsandlinkApiflags. - Git Tasks - added
getBranchForDirTaskmethod - Unit test Tasks - added
--listflag to show all filtered tests, without running them.
0.13.1 9 Feb 2013 (SDK 0.3.5.1 r18300) #
0.13.0 8 Feb 2013 (SDK 0.3.4.0 r18115) #
bot #
CollectionUtil:toHashMapandtoHashSetdeprecated.CollectionUtil: addedtoMap- BREAKING
Enumerablenow usesjoinfromIterableso the default separator is now empty string instead of, Enumerable:toHashMapandtoHashSetdeprecated.Enumerable: addedtoMap- NEW!
StringLineReader- Lazily read lines from aString. Supports Windows line breaks, too. - BREAKING
Util.splitLinesreturnsIterable<String>instead ofList<String> UtillearnedpadLeft
bot_git #
Commitparses out a lot more information now.Git.runGitargumentprocessWorkingDiris converted to a native path. Works on Windows now.- BREAKING
GitDircan only be created via "safe", async methods:initand NEW!fromExisting - NEW!
GitDirlearnedpopulateBranch
bot_test #
- Added
MatcherfinishesandfinishesWith. These correspond tocompletesandcompletionindart:matcherexcept instances ofExpectExceptionare thrown directly without being wrapped
hop #
- NEW!
ConsoleContextmakes it easy to run hop tasks directly from a console app. - BREAKING many log methods had their args switched around so
LogLevelcomes beforemessage. More consistent withlogging
hop_tasks #
compileDocsnow uses new fancyGitDir.populateBranch.
0.12.1 5 Feb 2013 (SDK 0.3.4.0 r18115) #
0.12.0 5 Feb 2013 (SDK 0.3.4.0 r18115) #
- Now testing
harness_browser.htmlviaDumpRenderTree
bot_git #
GitDirlearnedgetCurrentBranch
hop #
- BREAKING ctor for
Runnernow takes param ofArgResults Runnerexposes helpers for parsing defaults args and getting usage.runHopcoreprints out nice error info and exits cleanly with bad default args- NEW! added
TaskContext.getSubLogger
hop_tasks #
compileDocsprovides useful error info if used with bad args- NEW!
createDartAnalyzerTask- thanks, Adam! - Exposed
pipeProcessmethod for loggingProcessoutput in real time
0.11.4 31 Jan 2013 (SDK 0.3.2.0 r17657) #
bot_git #
- A lot of updates and additions
- NEW!
CommitReference,BranchReference,Commit,TreeEntry - NEW!
GitDirlearnedgetCommitCount,getBranchNames,getBranchReferences,getCommit,lsTree - BREAKING
GitDir.writeObjectrenamed towriteObjects
hop_tasks #
branchForDiradded an optionalworkingDirargument
0.11.3 29 Jan 2013 (SDK 0.3.2.0 r17657) #
- Bumped
loggingdependency to>=v0.3.2
bot #
- More tests for colors. Tiny tweak to improve error report for bad ctor values in
HslColor - Better exceptions when
DetailedArgumentErroris used incorrectly requireArgumentusesDetailedArgumentErrorcorrectly
0.11.2 28 Jan 2013 (SDK 0.3.2.0 r17657) #
- A number of changes to support SDK 0.3.2.0. Although no breaking changes directly affecting users.
hop #
- Cleanly handle the case where an async task throws an exception before returning a future.
0.11.1 24 Jan 2013 (SDK 0.3.1.2 r17463) #
0.11.0 22 Jan 2013 (SDK 0.3.1.1 r17328) #
No features were knowingly added, removed, or changed but a lot of code was churned to support the updated SDK.
0.10.0 09 Jan 2013 (SDK 0.2.10.1 r16761) #
- BREAKING Import file names have been updated to include the
bot_prefix.import 'package:bot/bot_retained.dart';instead ofimport 'package:bot/retained.dart';
bot #
- BREAKING
Vector.getAnglereports a valid value Array2dcan now be zero width, and non-zero height
bot_html #
- NEW!
getTimeoutFuturehelper. Wrapswindow.setTimeoutwith niceFuturesemantics.
bot_io #
- NEW!
TempDir - NEW!
IoHelper
bot_retained #
MouseManager- BREAKING Renamed from
ClickManager - Learned how to set cursor for individual
Thinginstances - Learned drag events for
Thinginstances
- BREAKING Renamed from
CanvasThingnow correctly invalidates child draw when transform changes
bot_test #
- NEW! test methods:
expectFutureCompleteandexpectFutureFail - NEW!
throwsAssertionErrormatcher
hop #
- FIX having zero tasks does not cause a exceptions
hop_tasks #
- BREAKING Renamed
createStartProcessTasktocreateProcessTask- Changed the return type to
Task - Made
argsargument optional - Added optional
descriptionargument
- Changed the return type to
createDart2JsTaskadded named paramsliveTypeAnalysisandrejectDeprecatedFeatures
0.9.0 18 Dec 2012 (SDK M2 0.2.9.7 r16251) #
hop_tasks #
- BREAKING
dartdocnow requirespackageDirparam. With recent SDK updates, one can now generate docs for libraries that use external packages. - dart2js: added optional packageRoot, output, allowUnsafeEval args
0.8.0 11 Dec 2012 (SDK r15948) #
BREAKING Moved dependencies on SDK libraries to versions on pub.flutter-io.cn.
bot #
- NEW Added
lerpto top-level math functions. AffineTransform- NEW learned a new constructor -
fromTranslate - NEW learned
lerpTxfunction
- NEW learned a new constructor -
bot_retained #
- BREAKING Massive rename. Element is way to overloaded, hence names like 'PElement'. Going with 'Thing'. Not ideal, but not overloaded.
Thing- NEW learned
alpha-- or at least uses it now - BREAKING a tiny change to how dirty state is tracked to allow things to effectively request animation in
drawOverride. - BREAKING Eliminated 'cacheEnabled' ctor argument.
- BREAKING Removed
clipproperty. It wasn't doing anything.
- BREAKING Removed
- NEW learned
- BREAKING
ShapeThingconstructor now uses named arguments. - NEW
NavLayer-- copied from the Javascript library. Pretty fun. - NEW
HorizontalAlignmentandVerticalAlignment - NEW
RetainedUtillearnedgetOffsetVector - NEW
SubCanvasThing-- similar toImageThing, but for drawing contents of a canvas. - NEW
TextThingAn element to display text. Lot's of work to do, but a good start. - NEW
StageWrapper- handles requesting frames and drawing them when the stage updates. - Added nifty
_RetainedEnumas a relatively safe, private subclass for other enum types.
0.7.0 27 Nov 2012 (SDK r15355) #
bot #
- BREAKING Renamed exception classes to align with Dart naming conventions.
- BREAKING Slight changes to
requiresmethods,DetailedArgumentException
hop #
- BREAKING Almost everything has changed.
- Multi-line output is indented correctly.
io #
- BREAKING
io.Coloris nowio.AnsiColor - BREAKING Removed
prntandprntLine. A bit silly, no?
html #
CanvasUtillearnedsetTransform
retained #
- BREAKING Moved
CanvasUtiltobot_htmllib
0.6.0 19 Nov 2012 (SDK r15042) #
- BREAKING Merged
hopback in. Circular dependencies just make no sense. - BREAKING Moved
qrinto its own repository. - A bunch of fixes to support more recent Dart release.
0.5.0 -- 6 Nov 2012 (SDK r14554) #
- BREAKING Changes to align with Dart r14554.
0.3.0 -- 24 October 2012 (SDK r13851) #
- BREAKING Changes to align with Dart integration build v13851
0.2.1 -- 22 October 2012 (SDK r13679, M1) #
- Moved
hopfiles intotooldir. These are for devs working withbot.dartnot end users.
0.2.0 -- 21 October 2012 (SDK r13679, M1) #
bot #
DetailedIllegalArgumentExceptionctor is nowconst- Removed private
_SimpleSet. Not used.
hop - New #
- An attempt to create a process management system similar to Rake in the Ruby world or Cake in the CoffeeScript world.
- Moved
test,dart2js, anddocsto this new system. - Naming: A play off frog. Which is a play off dart. As in "dart frog" and "frog hop". Yeah a stretch, but it's short.
retained - Breaking Changes #
PElement.drawrenamed to_stageDrawPElement.updatedevent removed- Renamed
ElementParentImpltoParentElement - Moved logic for handling children from
PElementtoParentElement
0.1.0 16 October 2012 (SDK r13679) #
- Aligned with M1 build of Dart r13679