Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 17, 2021

Bumps formdata-node from 3.7.0 to 4.0.0.

Release notes

Sourced from formdata-node's releases.

4.0.0

Remove

  • [BREAKING] Remove builtin multipart/form-data encoder and all related methods. You need check if your HTTP client supports spec-compliant FormData in Node.js and it don't, then you can suggest them to implement multipart/form-data encoding or use form-data-encoder package;
  • [BREAKING] Remove support for Buffer and ReadStream (the one you might create with fs.createReadStream), you can use Blob, fileFromPath and fileFromPathSync to replace them. Other async data sources are still supported - see documentation for more information;
  • Remove polyfill entry points;
  • Remove unused helpers and reduce overall size of the project.

Update

  • [BREAKING] Set minimal required Node.js version to 12.20;
  • [BREAKING] Separate fileFromPath functions from main entry point:
- import {fileFromPath, fileFromPathSync} from "formdata-node"
+ import {fileFromPath, fileFromPathSync} from "formdata-node/file-from-path"

This subpath is NOT available in browsers!

  • [BREAKING] Expose isFile from file-from-path subpath;
- import {isFileLike} from "formdata-node"
+ import {isFile} from "formdata-node/file-from-path"
  • [BREAKING] Rename FormDataFieldValue type to FormDataEntryValue (TypeScript specific);
  • Fix message for the error thrown when filename argument passed with non-File value to set() or append();
  • Improved documentation.

Closes #42 All changes: octet-stream/form-data@v3.7.0...v4.0.0

Commits
  • 14674e9 Bump version: 3.7.0 -> 4.0.0
  • 14b6d94 Update documentation for isFile, fileFromPath and fileFromPathSync. Expose is...
  • c61cc46 Set minimal required Node.js version to 12.20
  • 21db697 Separate fileFromPath functions using conditional exports. They now available...
  • 57eedc2 Fix for 3rd example.
  • adbb76d Update project description.
  • e32dd6c Improvements for documentation.
  • c9b1884 Rename FormDataFieldValue type to FormDataEntryValue.
  • d1d9458 Rename content property to entries.
  • bf95ecf Remove polyfill.js and polyfill.mjs
  • 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 Aug 17, 2021
@octet-stream
Copy link

@char0n before you upgrade to formdata-node v4, you'll need to convert Buffer to Blob or File.

@octet-stream
Copy link

octet-stream commented Aug 18, 2021

Because Buffer inherits Uint8Array, you can pass it to a Blob (or File) constructor like this:

import {Blob} from "formdata-node"

const blob = Blob([Buffer.from("test file data1")])

Or just create a fresh Blob/File and avoid Buffer, because it is not in the standard :)

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/formdata-node-4.0.0 branch from 16e448e to e325070 Compare August 19, 2021 23:09
Bumps [formdata-node](https://github.com/octet-stream/form-data) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/octet-stream/form-data/releases)
- [Commits](octet-stream/form-data@v3.7.0...v4.0.0)

---
updated-dependencies:
- dependency-name: formdata-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/formdata-node-4.0.0 branch from e325070 to 9c56b1d Compare August 19, 2021 23:17
@char0n
Copy link
Contributor

char0n commented Aug 20, 2021

@octet-stream I'm sorry, I don't understand what has changed. The release notes are a bit confusing.

@char0n
Copy link
Contributor

char0n commented Aug 20, 2021

@octet-stream this PR was replaced by #2196

@char0n char0n closed this in #2196 Aug 20, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 20, 2021

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/formdata-node-4.0.0 branch August 20, 2021 13:05
@swagger-bot
Copy link
Contributor

🎉 This issue has been resolved in version 3.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants