Skip to content

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Sep 10, 2021

Bumps formdata-node from 3.7.0 to 4.2.0.

Release notes

Sourced from formdata-node's releases.

4.2.0

Update

  • Replace entry point in module field in package.json, so it will now point to browser entry point. This should fix the issue with Rollup module resolution. See: #44

All changes: octet-stream/form-data@v4.1.0...v4.2.0

4.1.0

Add

  • Port Blob from fetch-blob@3 and replace fetch-blob@2 package with our own implementation. Note that formdata-node will switch back to use fetch-blob once we drop CommonJS. Our Blob implementation should be compatible with fetch-blob, so you can use either of them in FormData values. In terms of usage nothing is changed - you can import Blob as from formdata-node package:
import {FormData, Blob} from "formdata-node" // This will now import our own Blob implementation instead of `node-fetch@2`
const form = new FormData()
form.set("file", new Blob(["Some ", "content"]))

  • This release also introduces a new dependency: web-streams-polyfill, so the overall installation size will increase by ≈393KB.

4.0.1

Update

  • Improvements for File class spec-compliancy: Make sure File.name and File.lastModified properties read-only in runtime;
  • Cast name argument in File constructor to string;
  • Improve lastModified option normalization in File constructor to mimic browsers implementation behaviour: When lastModified option is NaN it is interpreted as 0 in browsers;
  • Improve filename argument normalization for FormData.set() and FormData.append() methods.

All changes: octet-stream/form-data@v4.0.0...v4.0.1

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 if 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:
</tr></table> 

... (truncated)

Commits
  • 2a00e8a Bump version: 4.1.0 -> 4.2.0
  • 9442609 Update module field of the package.json so it will point to browser entry poi...
  • 5ddb975 Update dependencies
  • 88a58aa Bump version: 4.0.1 -> 4.1.0
  • 5f57051 Adjustments for FormData class typings.
  • b786da1 Small fix for tests.
  • 73e8ef1 Mark Blob private properties as read-only
  • 113de03 Add tests for Blob.type and Blob.size properties to make sure they're read-on...
  • a7a1f5a Small fix.
  • a015930 Add documentation for Blob class.
  • 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)

Bumps [formdata-node](https://github.com/octet-stream/form-data) from 3.7.0 to 4.2.0.
- [Release notes](https://github.com/octet-stream/form-data/releases)
- [Commits](octet-stream/form-data@v3.7.0...v4.2.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 10, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 13, 2021

Superseded by #11.

@dependabot dependabot bot closed this Sep 13, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/formdata-node-4.2.0 branch September 13, 2021 09:17
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.

0 participants