Major
- The function
extractFiles
now deeply clones an input value containing multiple references of an object or array with a mirrored reference structure instead of creating multiple objects or arrays. This change shouldn’t affect typicalJSON.stringify
use with cloned values. - The function
extractFiles
now usesfor…of
to iterateFileList
instances.
Patch
- Updated dev dependencies.
- Reverted the more specific package
main
field path. - The function
extractFiles
now correctly handles circular references within the input value by recreating the circular references in the returned clone instead of infinitely recursing to the point of aMaximum call stack size exceeded
error, fixing #14. - Renamed imports in the test index module.
- Refactored
extractFiles
tests to useObject.freeze
with input objects and arrays to ensure input isn’t mutated. - Updated a code example to use a deep import.
- Amended the changelog entries for v8.0.0 and v9.0.0.