Broccoli v1.0.0-beta.1 Release Notes
-
- โฌ๏ธ Drop support for plugins that implement only the old
.read/.rebuild
API - ๐ Fail build when a source node is a file rather than a directory
- ๐ Fail build when a source node doesn't exist
๐ Builder API changes:
new Builder
has atmpdir
option, which defaults toos.tmpdir()
(typically/tmp
); pass{ tmpdir: './tmp' }
to get the old behavior.build()
no longer returns a promise to the output path; instead, the output path stored atbuilder.outputPath
and doesn't change between buildsstart
,end
,nodeStart
,nodeEnd
events renamed tobeginBuild
,endBuild
,beginNode
,endNode
- Nodes passed to
nodeBegin
/nodeEnd
arguments are "node wrapper" objects (also accessible atbuilder.nodeWrappers
); timings now reside atnodeWrapper.buildState.selfTime/totalTime
and are in milliseconds, not nanoseconds build()
no longer takes awillReadStringTree
callback argument; instead, source directories are recorded atbuilder.watchedPaths
Watcher API changes:
- Add
watcher.quit()
method, which returns a promise until a running build has finished (if any) - Rename
watcher.current
towatcher.currentBuild
, and removewatcher.then
- Use
RSVP.EventTarget
instead ofEventEmitter
for events
- Add
๐ Build error objects have been changed to
Builder.BuildError
objects, which contain additional information aterr.broccoliPayload
- โฌ๏ธ Drop support for plugins that implement only the old