Richienb / cross-formdata

Cross-platform FormData support.
MIT License
1 stars 0 forks source link

chore(deps): Bump formdata-node from 1.8.1 to 2.0.0 #2

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps formdata-node from 1.8.1 to 2.0.0.

Release notes *Sourced from [formdata-node's releases](https://github.com/octet-stream/form-data/releases).* > ## 2.0.0 > ### Remove > > - Drop Node.js 8 support. The minimal supported version is now 10. > > ### Add > > + `FormData#{set,append}()` now takes an optional 4th (or 3rd) argument – options: > > ```ts > type Options = { > size?: number, > type?: string, > lastModified?: number, > filename?: string > } > ``` > > This argument is used to put additional information for stream values. > Streams will be considered as a File-ish objects when this option is set. > If given value is `Buffer`, `Blob`-ish or `File`-ish object, its own properties will be used to get the size. > > ### Update > > * `FormData` now stores `Buffer` and `Blob`-ish objects like a `File`-ish. > So, when you use the `FormData#{get,getAll}()` methods or iterate through FormData values > you will get `File`-ish object instead of `Blob`, `File`, `Buffer` and streams: > > ```js > import fs from "fs" > > import FormData from "formdata-node" > import Blob from "fetch-blob" > > const fd = new FormData() > > fd.set("buffer", Buffer.from("I beat Twilight Sparkle and all I got was this lousy t-shirt")) > fd.get("buffer") // -> File > > fd.set("blob", new Blob(["I beat Twilight Sparkle and all I got was this lousy t-shirt"], {type: "text/plain"})) > fd.get("blob") // -> File > > // The "size" option required for stream values if you want them to be set as a File > fd.set("readStream", fs.createReadStream("/path/to/some/file.txt")) > fd.get("readStream") // -> ReadStream > > fd.set("readStream", fs.createReadStream("/path/to/some/file.txt"), { > size: fs.statSync("/path/to/some/file.txt").size > }) > > ... (truncated)
Commits - [`1862c81`](https://github.com/octet-stream/form-data/commit/1862c8133b55e4892fd06131d9edad0d323a7523) Bump version: 1.8.1 -> 2.0.0 - [`3b309b2`](https://github.com/octet-stream/form-data/commit/3b309b2988f614b599d05e6b4a2987a5e5628b6b) Remove promise-fs from dependencies. - [`308c69e`](https://github.com/octet-stream/form-data/commit/308c69e72309b3ee78c140a8f9a0fe0b8a458b2b) Remove relying on promise-fs from the package. - [`da9ebd5`](https://github.com/octet-stream/form-data/commit/da9ebd59420be6b9c2367f31e3b32cd46c4703fd) Add tests for toFile util - [`9c85882`](https://github.com/octet-stream/form-data/commit/9c85882dc180372279f9fd1ed5e5f67e2660f64e) Improve docs - [`d070410`](https://github.com/octet-stream/form-data/commit/d0704107e105e8b5d5917e7e532a0d581df336a4) Remove File and Blob typings. - [`d3db639`](https://github.com/octet-stream/form-data/commit/d3db639494ff726c9952a2760480d3c734023178) Small fix. - [`4edd914`](https://github.com/octet-stream/form-data/commit/4edd9146b0866b15d8a6aa01e7864cabc07d8fa3) Small fix. - [`1ebfc7d`](https://github.com/octet-stream/form-data/commit/1ebfc7d1e3dc70349d0357615f1ab1f3b38f1c94) Improve typings. - [`6c2b8b3`](https://github.com/octet-stream/form-data/commit/6c2b8b3cfcb8a3cf4e73a011954ba9093557fca0) Improve typings. - Additional commits viewable in [compare view](https://github.com/octet-stream/form-data/compare/v1.8.1...v2.0.0)


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 will not automatically merge this PR because it includes an out-of-range update to a production dependency.


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 use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)