extract-files
Advanced tools
Changelog
5.0.0
extractFiles
has a new return signature and no longer mutates the original input, fixing #8. It returns an object with clone
, a clone of the original input value with files recursively replaced with null
, and files
, a Map
instance keying each extracted file to an array of object paths.extractFiles
.*
.Changelog
4.1.0
> 1%
to > 0.5%, not dead
.browserslist
field due to a sneaky @babel/preset-env
breaking change.husky
version.module
field. Webpack by default resolves extensionless paths the same way Node.js in --experimental-modules
mode does; .mjs
files are preferred. Tools misconfigured or unable to resolve .mjs
can get confused when module
points to an .mjs
ESM file and they attempt to resolve named imports from .js
CJS files.ReactNativeFileSubstitute
type example.jsdoc-md
version.--experimental-modules
) and the NODE_ENV
.Changelog
4.0.0
extractFiles
is a named export again, and there is no longer a default export; mixed named and default exports causes native ESM and CJS interoperability issues.isObject
is no longer exported. It was not a documented API anyway.ReactNativeFile
static function list
. It added surface area to the API and bundles and is simple to do manually.@babel/runtime
dependency.prepare
to support installation via Git (e.g. npm install jaydenseric/extract-files
).jsdoc-md
to generate readme API docs from source JSDoc, which has been much improved.tap
instead of ava
. Tests no longer transpile on the fly, are faster and AVA no longer dictates the Babel version..mjs
and .js
files in both native ESM (--experimental-modules
) and CJS environments.test:size
script, using size-limit
to guarantee < 500 byte ESM and CJS bundle sizes.rimraf
dev dependency in favour of native rm -rf
.fix
script.MODULE
environment variable to BABEL_ESM
to be more specific for the package prepare:mjs
script..json
, .yml
and .md
files..prettierignore
to leave package.json
formatting to npm.eslint-config-env
.repository
field.master
branch.Changelog
2.1.1
package.json
engines
(v6.10).Changelog
2.1.0
package.json
engines
.--experimental-modules
:
.mjs
extension.babel-preset-env
to handle polyfills so only required ones are included for supported environments.Array.prototype.slice.call
to convert FileList
instances to arrays instead of Array.from
which requires a lot of polyfills.dist
directory to lib
..babelrc.js
.Changelog
2.0.0
.
when no tree path is passed to extractFiles
.Changelog
1.1.0
lint-staged
, linting and tests now run on commit.extractFiles
bugs by using logic that worked in apollo-upload-client@5
.