util: add non-throwing MIMEType.parse - #64965
Merged
nodejs-github-bot merged 2 commits intoAug 5, 2026
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
1 task
avivkeller
approved these changes
Aug 2, 2026
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64965 +/- ##
=======================================
Coverage 90.30% 90.30%
=======================================
Files 759 759
Lines 247621 247627 +6
Branches 46672 46678 +6
=======================================
+ Hits 223603 223621 +18
+ Misses 15473 15471 -2
+ Partials 8545 8535 -10
🚀 New features to boost your workflow:
|
panva
approved these changes
Aug 2, 2026
Renegade334
approved these changes
Aug 3, 2026
Similar to `URL.parse(...)`, the `MIMEType.parse(...)` API will return `null` if the input cannot be parsed as opposed to throwing the way the constructor does. Signed-off-by: James M Snell <jasnell@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com>
jasnell
force-pushed
the
jasnell/add-mimetype-parse
branch
from
August 4, 2026 13:46
6dea0a1 to
a9fa625
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Renegade334
approved these changes
Aug 4, 2026
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
Collaborator
|
Landed in 9e59c1a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Similar to
URL.parse(...), theMIMEType.parse(...)API will returnnullif the input cannot be parsed as opposed to throwing the way the constructor does.