Changelog
[5.0.0] - 2021-06-12
quaff
individual file processor is now available at loadFile
. This makes it possible to tap into all of quaff
's processors to load a single file. The newly named load
export works the same as before and uses loadFile
behind the scenes..cjs
and .mjs
extensions.quaff
is now a pure ESM package. It can no longer be require()
'd from CommonJS. If this functionality is still needed please continue to use quaff@^4
. It is also possible to dynamically import ESM in CommonJS (await import('quaff')
) if that is compatible with your use case.quaff
no longer has a default export and now uses two named exports - load
and loadFile
.Changelog
[4.2.0] - 2020-07-16
quaff
will now throw an error when more than one input file attempts to use the same output key. This is caused by having multiple files in a directory with the same name but different extensions..yaml
or .yml
file fails to parse the thrown error will now include the file path.quaff
in Mac OS and Windows thanks to GitHub Actions. Don't expect that'll ever be an issue but good to know.Changelog
[4.1.0] - 2019-03-04
index.js
, but no functional changes.Changelog
[4.0.0] - 2019-01-25
.aml
extension.module.exports = ...
). JavaScript files that export functions, including async functions, are also supported! This makes it possible for quaff
to load data that's fetched from an API. Load GraphQL and go to town! Do some extra-preprocessing!quaff
now returns a Promise to enable async resolution of JavaScript files.nyc
.