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

Fix: Drop mime-db dependency for http-compression rule #1126

Closed
wants to merge 1 commit into from
Closed

Fix: Drop mime-db dependency for http-compression rule #1126

wants to merge 1 commit into from

Conversation

alrra
Copy link
Contributor

@alrra alrra commented Jun 7, 2018

Pull request checklist

Make sure you:

For non-trivial changes, please make sure you also:

  • Added/Updated related documentation.
  • Added/Updated related tests.

Short description of the change(s)

mime-db was used as a source to check if something should be compressed, but the project is planning to drop the compressible data in the near future in favor of the compressible project.

All of the cases currently covered by compressible are already covered by our code, so this change just adds the cases that were covered by mime-db and not by our code, hence, maintaining backwards compatibility.


Fix: #1108

`mime-db` was used as a source to check if something should be
compressed, but the project is planning to drop the `compressible`
data in the near future in favor of the `compressible`¹ project.

All of the cases currently covered by `compressible` are already
covered by our code, so this change just adds the cases that were
covered by `mime-db` and not by our code, hence, maintaining
backwards compatibility.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ https://github.com/jshttp/compressible

Fix #1108
@alrra alrra requested review from molant and sarvaje as code owners June 7, 2018 22:45
@alrra alrra changed the title Fix: Drop mime-db dependency Fix: Drop mime-db dependency for http-compression rule Jun 7, 2018
@molant
Copy link
Member

molant commented Jun 7, 2018

@alrra shouldn't this be a chore because nothing changes to the end user?

@alrra
Copy link
Contributor Author

alrra commented Jun 7, 2018

shouldn't this be a chore because nothing changes to the end user?

It should, but I wanted to trigger a new release.

Also, this is in some cases is a performance improvement, since we no longer need to query mime-db.

@alrra alrra closed this in 24d88e7 Jun 8, 2018
@alrra alrra deleted the drop-mime-db branch July 6, 2018 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants