Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export Blob, File and FormData + utilities #1463

merged 6 commits into from Jan 20, 2022


Copy link

@jimmywarting jimmywarting commented Jan 18, 2022


Making it easier to import and use FormData, Blob & File. Installing same dependency as node-fetch or otherwise getting them in a round-about way was hacky.


This re-export the stuff so it is available to use

  • I updated readme
  • I added unit tests (for FormData, Blob, and fileFrom only)

@jimmywarting jimmywarting changed the title Features/export more stuff feat: export Blob, File and FormData + utilities Jan 18, 2022
src/index.js Outdated Show resolved Hide resolved
test/form-data.js Show resolved Hide resolved
LinusU approved these changes Jan 20, 2022
Copy link

@LinusU LinusU left a comment

Neat 👍

@jimmywarting jimmywarting merged commit 81b1378 into node-fetch:main Jan 20, 2022
10 checks passed
@jimmywarting jimmywarting deleted the features/export-more-stuff branch Jan 20, 2022
Copy link

github-actions bot commented Jan 20, 2022

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Collaborator Author

jimmywarting commented Jan 20, 2022

☝️ Neat

Copy link

gulshan commented Jan 21, 2022

Hi, vscode/typescript cannot see these newly exported types-

Can you have a look?

Copy link
Collaborator Author

jimmywarting commented Jan 21, 2022

@gulshan Already got it covered in #1465
i thought i would document it in the next release when it was released so that the readme would not show something that haven't been shipped yet. But now that we have auto deployment with auto releasees then i think things will change around here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

Expose more stuff (Blob, File & FormData)
3 participants