Skip to content

Bump content-disposition from 1.0.1 to 2.0.0#78

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/content-disposition-2.0.0
Open

Bump content-disposition from 1.0.1 to 2.0.0#78
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/content-disposition-2.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 12, 2026

Bumps content-disposition from 1.0.1 to 2.0.0.

Release notes

Sourced from content-disposition's releases.

v2.0.0

Large refactor to make the parser 3x faster and lenient on input. Removes the default export and renames it to create.

import { create, parse, format } from 'content-disposition';
create('filename');
parse(
'attachment; filename="EURO rates.txt"; filename*=UTF-8''%e2%82%ac%20rates.txt',
);
format({
type: 'attachment',
parameters: {
filename: '€ rates.txt',
},
});

Adds a multipart option that can be used to parse the header within multipart/form-data appropriately.

Note: The filename in create is no longer normalized with basename, ensure you are using appropriate filenames and not exposing your directory structure by using absolute paths.

Changed

  • Rename exports (#123) ec3a844
    • No default export, use create export instead
  • Removed basename from create, pass a filename instead of a full path
  • Refactor parser to be faster and lenient (e.g. now parses unicode)
    • Make the parser lenient (#125) 994f665
  • Change filename in create to ASCII only (#132) 3190b76
  • Null object performance bump (#124) 7c7c9c0
  • Remove fallback behavior from decoder (#127) 7086236
    • Invalid UTF-8 is no longer supported
  • Refactor project to TypeScript (#118) 4fbf7ff

Added

  • Expose format method (#129) 2bb7da3
  • Allow extended parsing to be disabled (#130) c6b15c8
  • Add HTML multipart behavior compatibility (#131) 3d217fb

jshttp/content-disposition@v1.1.0...v2.0.0

v1.1.0

Changed

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by blakeembrey, a new releaser for content-disposition since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [content-disposition](https://github.com/jshttp/content-disposition) from 1.0.1 to 2.0.0.
- [Release notes](https://github.com/jshttp/content-disposition/releases)
- [Commits](jshttp/content-disposition@v1.0.1...v2.0.0)

---
updated-dependencies:
- dependency-name: content-disposition
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 12, 2026
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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants