Repository navigation
refactor(storage): drop direct http_parser dependency - #1570
Merged
Merged
Conversation
MediaType was the only symbol used from http_parser, and http >=1.6.0 re-exports it. The direct dependency and import were only kept for http < 1.6.0 compatibility, which is no longer supported (http: ^1.6.0 is the floor).
11 tasks
grdsdev
approved these changes
Jul 9, 2026
o-santi
approved these changes
Jul 9, 2026
Tr00d
approved these changes
Jul 9, 2026
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.
What
Removes the direct
http_parserdependency fromstorage_client.MediaTypewas the only symbol used fromhttp_parser(infetch.dart). Sincehttp1.6.0,package:httpre-exportsMediaType:The direct import was already flagged
// ignore: unnecessary_import — needed for http < 1.6.0 which doesn't re-export MediaType. As the package now requireshttp: ^1.6.0, that compatibility shim is obsolete:MediaTyperesolves through the existingpackage:http/http.dartimport.Why
One fewer direct dependency to track, with zero in-house code and no behavior change.
Testing
dart analyzeclean; storage_client mime/content-type tests pass.