Skip to content

Conversation

dependabot[bot]
Copy link

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

Bumps formdata-node from 3.7.0 to 4.0.1.

Release notes

Sourced from formdata-node's releases.

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 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
  • e94ce50 Bump version: 4.0.0 -> 4.0.1
  • 014fe8d Fix a typo.
  • 53a9d89 Add FormDataEntryValue description in TS comments.
  • 4725424 Update CI workflow.
  • 5f96e69 Fix for filename argument normalization.
  • 108b754 Add test for File.name type casting.
  • cb4307d Improve lastModified option initialization to match browsers behaviour.
  • 965cf7b Fix for one of lastModified property tests.
  • ce7d1f4 Do not test for error in r/o properties reassignment.
  • 2804be5 Small fix for File tests to expect an error to be thrown for r/o properties r...
  • 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.0.1.
- [Release notes](https://github.com/octet-stream/form-data/releases)
- [Commits](octet-stream/form-data@v3.7.0...v4.0.1)

---
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 Aug 23, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 10, 2021

Superseded by #10.

@dependabot dependabot bot closed this Sep 10, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/formdata-node-4.0.1 branch September 10, 2021 09:15
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