Skip to content

v0.1.3~0.1.6

Compare
Choose a tag to compare
released this 05 Jul 07:17
· 1038 commits to master since this release

v0.1.6

  • Fly now uses your module actual default export as its default task. Before you needed to name your task default explicitly which is fine the CommonJS syntax:
exports.default = function* () {}

But was problematic in the ES6~ syntax since default is a reserved word in JavaScript. Now it's also possible to do:

module.exports = function* () {}

Which is specially useful if you write your Flyfiles in the ES6/7 syntax:

export default function* () {}

v0.1.5

  • Fix bug in util.error, where function's argument error was shadowing function name error. :feelsgood:
  • Fix bug in util.find/hook that was still breaking the require hook for some type of files. Basically the problem is jsVariant either exposes an array with dependencies that should be loaded or a string. In the case of arrays its contents could be strings or object literals with a module property. The following check patches this:
require(modules[0].module
  ? modules[0].module
  : modules[0])

Note to Earl Gray users: interpret@0.6.2 does not support earl at the moment. Please refer to this PR. Make sure to install both earlgray and earlgray-runtime if you are using Flyfile.eg files. See examples/Flyfile.eg for an Earl Gray Flyfile example.

v0.1.4

  • Fix bug in util.find/hook where jsVariants that expose the transformer module name using an array without a module property was being called causing Flyfiles in languages other than ES5/6/7 to fail.