Previously, only the base property of this object was passed into filters, accessible as options.filename. This allowed for files' names to be altered while writing.
Now, the entire <File> object is passed into filters, allowing any of the file properties to be read and/or changed. The object is nested under the file key.
Warning: Some plugins may have used the filename key in the past. This is now read by calling options.file.base instead of options.filename
Closes #171 since it achieves the same goal by more reusable means.
Previously, only the
base
property of this object was passed into filters, accessible asoptions.filename
. This allowed for files' names to be altered while writing.Now, the entire
<File>
object is passed into filters, allowing any of the file properties to be read and/or changed. The object is nested under thefile
key.Warning: Some plugins may have used the
filename
key in the past. This is now read by callingoptions.file.base
instead ofoptions.filename
Closes #171 since it achieves the same goal by more reusable means.