Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Update dependency content-disposition to v2 - #276

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/content-disposition-2.x
Open

Update dependency content-disposition to v2#276
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/content-disposition-2.x

Conversation

@renovate

@renovate renovate Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
content-disposition ^1.1.0^2.0.1 age confidence

Release Notes

jshttp/content-disposition (content-disposition)

v2.0.1

Compare Source

Fixed


v2.0.0

Compare Source

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)
  • 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



Configuration

📅 Schedule: (in timezone Europe/London)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants