# Change log

# 2.0.0

# Export changes

Changed export paths to not use /dist/, e.g.:

# FileTree changes

# Hook changes

# DevServer changes

# 1.2.0

The ignore option of .watch(...) was from when it just forwarded options to chokidar. But we usually also want to exclude files with given paths from the tree itself. So the option has been removed in favor of a new exclude option in the constructor.

And since we already keep an in-memory file tree (that's the whole point of FileTree), it turned out to be very easy to give a highly detailed report of what actually changed. So the onChange callback to .watch(...) now receives FileTreeChange[] where:

export type FileTreeChange = { path: string, change: 'add' | 'dif' | 'rem' }

Full Changelog

# 1.1.0

Removed tree.processFiles as being too trivial and restrictive.

To upgrade, replace:

const result = tree.processFiles(files => {
  // ...
})

with:

const files = Pipeline.from(tree.files)
// ...
return files.results()

(In fact, that's literally all the method originally did.)

Full Changelog