Skip to content

v0.6.0

Compare
Choose a tag to compare
released this 16 Aug 18:04
· 1038 commits to master since this release
  • Improve build workflow by removing dist from repository and using npm prepublish step to compile Fly.
  • πŸ’₯ πŸ’₯ Fix encoding bug that was corrupting non-text files. Now Fly can read/filter/write any type of files, but there is a minor caveat:

Now filters and plugins, will receive the raw data as opposed to a string. This means if the filter/plugin is expecting a string, (for example fly-coffescript expects the source code to compile as a string) you need to convert the data to a string before you can call any String.prototype methods on it.

For example:

  export default function* () {
    yield this
      .source("words.txt")
      .filter((data) => `${data}\n`)
      .target("dist")
  }

or

  export default function* () {
    yield this
      .source("words.txt")
      .filter((data) => data.toString() + "\n")
      .target("dist")
  }

Documentation, examples and existing plugins have been updated.

  • πŸ’₯ Following up on the above mentioned fix, Fly.proto.encoding has been deprecated starting from this @0.6.0.