Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate replacing custom MimeType implementation with the mime package #13

Open
klkucaj opened this issue Dec 16, 2024 · 0 comments

Comments

@klkucaj
Copy link
Collaborator

klkucaj commented Dec 16, 2024

Is this task related to a problem? Please describe.
Currently, we have a custom implementation for handling MIME types in the code. While this implementation works well, using the mime package could simplify the codebase, reduce maintenance overhead, and potentially bring additional features or optimizations.

Describe the task you'd like to be completed
Investigate whether the mime package can replace the existing MimeType implementation without any loss of functionality. Compare the features, performance, and usability of the custom solution with the mime package.

If the mime package proves to be a better fit, outline a migration plan.

Describe alternatives you've considered

  • Keeping the current custom implementation (provides full control but requires maintenance).
  • Using other MIME-related libraries, if available, and comparing them with the mime package.

Additional context

  • The current custom MimeType implementation is defined in the provided code snippet.
  • The mime package is a well-known library for handling MIME types in Dart. It supports file type detection and MIME type generation.

Acceptance Criteria

  1. Evaluate the mime package for compatibility with current use cases.
  2. Compare features and performance of the mime package versus the custom implementation.
  3. Provide a recommendation with a detailed rationale for whether to adopt the mime package or retain the current implementation.
@SandPod SandPod moved this to Later 🥳 in Relic Roadmap Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Later 🥳
Development

No branches or pull requests

1 participant