- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.9.1
- v3.9.0
- v3.6.0
- v3.5.0
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.0
- v2.0.0
- v1.0.0
- Remove
dist
-
Stamp wraps
debug
ifprocess.env.DEBUG
is set. -
Remove
update-notifier
and favor importing directly in Fly.
- Bugfix: Add default
{ stage: 0 }
option tobind
.
-
Change: Remove
watch
and make Fly responsible to setup its own instance ofchokidar
. Users offly-util
have no use forwatch
. Compare this againstupdate-notifier
where users could benefit from using the wrapper inside their own plugins. -
Change:
filter
does no longer bind require to babel. This should be up to the client, in this case, Fly.
-
Improve: Now all logging methods replace the time stamp for a [DEBUG] tag.
debug
already prints the mtimes between logs making the time stamp less useful. -
Change: Now the default gray stamp is magenta.
-
New: Added debug instrumentation to
bind
,filter
andfind
. SetDEBUG="*"
env variable to log everything or filter byfly:[util]:[bind|filter|find]
. Seedebug
documentation for more info. -
Change:
loadPlugins
renamed tofilter
which is what the method actually does.findPath
was renamed to justfind
. -
Change:
warn
was renamed toalert
and no longer shows output by default. Set aVERBOSE
env variable when running fly to enable the output. -
Change: Remove
fly-util/debug
and favor using alternative debug options like debug instead.
-
Change:
findPlugins
renamed toloadPlugins
and added support for plugins written in ES6/7 by default. There is currently no way to opt out, but this may evolve to allow users to avoid this behavior. -
Maybe: Support for plugins written in other languages, CoffeeScript, EarlGrey, etc., is planned.
-
Add:
hook
function to simplify creating therequire
hook. -
Change: Simplify
findPath
to 20 LOC. Now,findPath
does not create arequire
hook, but simply resolves the path to the Flyfile. -
Change: Dropped support for Flyfiles named
Flypath
orflypath
. Only,Flyfile.[extension]
orflyfile.[extension]
-
Change: Drop "official" support for node 0.11 in
fly-util
for hacker use. Try 0.12 or iojs if you are developingfly-util
.
- Bugfix: chokidar
watch
wrapper is now correctly exported and the test suite correctly tests all required exports are defined.
- Silent update. Forgot to include
dist/
in release.
- Update documentation.
- Bugfix:
findPlugins
now correctly skipsfly-util
, itself by default.
-
Bugfix: Logging functions should should return
this
after completion. -
Refactor: Separate utilities into sub modules, improve comments.
-
Refactor: Change
searchPlugins
tofindPlugins
. -
New: Now you can use the
DEBUG
instead ofDEVELOPMENT
for the same result. -
New:
debug
function to display the first argument in magenta. -
New:
warn
logging function. -
New:
SILENT
env check to supresswarn
output.
-
Add
debug
method that produces output only ifprocess.env.DEVELOPMENT
is truthy.You still may want to remove
this.debug(...)
calls to optimize for production.POSIX shells:
DEVELOPMENT=true fly
Fish:
env DEVELOPMENT=true fly
- Support async transformers taking and optional
options
object.
log
anderror
print a time stamp.
util.expand
behavior was simplified as a result of an internal API change in Fly regarding how async processes are handled. This method no longer requires a callback and simply return a promise that resolves to the expanded files from pattern. Basically it's a promisified version ofglob
.
- Fly utilities will live in a separate package from now. This should allow plugin authors to import the utilities without having to import all of Fly. Injecting the utilities into the Fly instance itself was another consideration, but also a lack of transparency.
To import the utilities into your plugin:
import util from "fly-util"
const util = require("fly-util")