Skip to content

Update content-type 1.0.5 → 2.0.0 (major) - #675

Merged
canova merged 2 commits into
masterfrom
depfu/update/yarn/content-type-2.0.0
May 19, 2026
Merged

Update content-type 1.0.5 → 2.0.0 (major)#675
canova merged 2 commits into
masterfrom
depfu/update/yarn/content-type-2.0.0

Conversation

@depfu

@depfu depfu Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ content-type (1.0.5 → 2.0.0) · Repo · Changelog

Release Notes

2.0.0

Rewrite package to be 3x faster and support lenient parsing. No longer errors during parse, so you must validate things like type after parsing before using it blindly.

Changed

Added

  • Add parameters option to parse (#61) 5f65f1c
    • Set parameters: false to only extract type when parsing

v1.0.5...v2.0.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 19 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu
depfu Bot requested review from canova and fatadel as code owners May 18, 2026 17:40
@depfu depfu Bot added the dependencies Pull requests that update a dependency file label May 18, 2026
content-type@2.0.0 was rewritten in TypeScript and the compiled output
sets __esModule: true with only named exports (parse, format). The
default import `contentType` now resolves to `undefined`.

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the import and did some manual testing and it looks like it works well.

It's actually an improvement for us that it's not throwing while parsing anymore, because we never handled that error throw in the first place, so it should give a better error now.

@canova
canova merged commit 52fbb46 into master May 19, 2026
9 checks passed
@depfu
depfu Bot deleted the depfu/update/yarn/content-type-2.0.0 branch May 19, 2026 10:19
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.

1 participant