v0.6.0
- Improve build workflow by removing
dist
from repository and usingnpm 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 anyString.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
.