Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 17, 2022

Bumps extract-files from 6.0.0 to 12.0.0.

Release notes

Sourced from extract-files's releases.

Version 12.0.0

Major

  • Updated Node.js support to ^12.22.0 || ^14.17.0 || >= 16.0.0.

  • Added a new is-plain-obj dependency that is ESM.

  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.

  • Public modules are now individually listed in the package files and exports fields.

  • Removed ./package from the package exports field; the full package.json filename must be used in a require path.

  • Removed the package main index module; deep imports must be used.

  • Shortened public module deep import paths, removing the /public/.

  • The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require.

  • Implemented TypeScript types via JSDoc and @deno-types comments, fixing #7.

  • Changed the function extractFiles parameters. The previously third isExtractableFile parameter has been renamed isExtractable, is now the second parameter, and no longer defaults to the function isExtractableFile to avoid a redundant import when a custom function is specified.

  • The function extractFiles now does basic runtime argument type validation.

  • The function extractFiles now also deep clones “plain” objects that aren’t Object instances (e.g. Object.create(null)).

  • Removed out of the box React Native support. The class ReactNativeFile is no longer exported, or matched by the function isExtractableFile.

    This class was bloating non React Native environments with an extra module, increasing bundle sizes when building and adding an extra step to ESM loading waterfalls in browsers.

    It’s the responsibility of Facebook to adhere to web standards and implement spec-complaint File, Glob, and FormData globals in the React Native environment.

    In the meantime, React Native projects can manually implement a class ReactNativeFile and match it with a custom function isReactNativeFile for use with the function extractFiles.

Patch

  • Also run GitHub Actions CI with Node.js v17.
  • Simplified package scripts.
  • Check TypeScript types via a new package types script.
  • Removed the jsdoc-md dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section.
  • Reorganized the test file structure.
  • Test the bundle sizes for public modules individually.
  • Use a new assertBundleSize function to assert module bundle size in tests:
    • Failure message contains details about the bundle size and how much the limit was exceeded.
    • Errors when the surplus is greater than 25% of the limit, suggesting the limit should be reduced.
    • Resolves the minified bundle and its gzipped size for debugging in tests.
  • Fixed an extractFiles function test bug.
  • Added an extractFiles function test clarifying that object properties with Symbol keys don’t get cloned.
  • Configured Prettier option singleQuote to the default, false.
  • Updated the package description.
  • Documentation tweaks.
  • Added a license.md MIT License file, fixing #19 via #20.
  • Amended the changelog entry for v10.0.0.

Version 11.0.0

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 typical JSON.stringify use with cloned values.
  • The function extractFiles now uses for…of to iterate FileList instances.

Patch

... (truncated)

Changelog

Sourced from extract-files's changelog.

12.0.0

Major

  • Updated Node.js support to ^12.22.0 || ^14.17.0 || >= 16.0.0.

  • Added a new is-plain-obj dependency that is ESM.

  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.

  • Public modules are now individually listed in the package files and exports fields.

  • Removed ./package from the package exports field; the full package.json filename must be used in a require path.

  • Removed the package main index module; deep imports must be used.

  • Shortened public module deep import paths, removing the /public/.

  • The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require.

  • Implemented TypeScript types via JSDoc and @deno-types comments, fixing #7.

  • Changed the function extractFiles parameters. The previously third isExtractableFile parameter has been renamed isExtractable, is now the second parameter, and no longer defaults to the function isExtractableFile to avoid a redundant import when a custom function is specified.

  • The function extractFiles now does basic runtime argument type validation.

  • The function extractFiles now also deep clones “plain” objects that aren’t Object instances (e.g. Object.create(null)).

  • Removed out of the box React Native support. The class ReactNativeFile is no longer exported, or matched by the function isExtractableFile.

    This class was bloating non React Native environments with an extra module, increasing bundle sizes when building and adding an extra step to ESM loading waterfalls in browsers.

    It’s the responsibility of Facebook to adhere to web standards and implement spec-complaint File, Glob, and FormData globals in the React Native environment.

    In the meantime, React Native projects can manually implement a class ReactNativeFile and match it with a custom function isReactNativeFile for use with the function extractFiles.

Patch

  • Also run GitHub Actions CI with Node.js v17.
  • Simplified package scripts.
  • Check TypeScript types via a new package types script.
  • Removed the jsdoc-md dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section.
  • Reorganized the test file structure.
  • Test the bundle sizes for public modules individually.
  • Use a new assertBundleSize function to assert module bundle size in tests:
    • Failure message contains details about the bundle size and how much the limit was exceeded.
    • Errors when the surplus is greater than 25% of the limit, suggesting the limit should be reduced.
    • Resolves the minified bundle and its gzipped size for debugging in tests.
  • Fixed an extractFiles function test bug.
  • Added an extractFiles function test clarifying that object properties with Symbol keys don’t get cloned.
  • Configured Prettier option singleQuote to the default, false.
  • Updated the package description.
  • Documentation tweaks.
  • Added a license.md MIT License file, fixing #19 via #20.
  • Amended the changelog entry for v10.0.0.

11.0.0

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 typical JSON.stringify use with cloned values.
  • The function extractFiles now uses for…of to iterate FileList instances.

... (truncated)

Commits
  • 11081db Version 12.0.0.
  • 0022a43 Update the changelog.
  • fc3a361 Merge pull request #20 from pietro909/master
  • fbb1798 Update the changelog.
  • 2819911 Merge branch 'master' into pietro909/master
  • 69ab782 Remove the copyright year from the license file.
  • 7632beb Convert the license file to Markdown.
  • 3834b5e Readme docs correction.
  • f34e4b0 Remove out of the box React Native support.
  • ae8253e Stricter types.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 17, 2022
@dependabot dependabot bot requested a review from newhouse January 17, 2022 20:02
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/extract-files-12.0.0 branch 2 times, most recently from 1015461 to c139417 Compare March 25, 2022 22:49
@benogle
Copy link
Contributor

benogle commented May 25, 2022

Hard to upgrade as the latest is an ES module

Bumps [extract-files](https://github.com/jaydenseric/extract-files) from 6.0.0 to 12.0.0.
- [Release notes](https://github.com/jaydenseric/extract-files/releases)
- [Changelog](https://github.com/jaydenseric/extract-files/blob/master/changelog.md)
- [Commits](jaydenseric/extract-files@v6.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: extract-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/extract-files-12.0.0 branch from c139417 to 3b50063 Compare May 25, 2022 18:43
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 29, 2022

Superseded by #170.

@dependabot dependabot bot closed this Aug 29, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/extract-files-12.0.0 branch August 29, 2022 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant