Skip to content

Bump mime-types from 3.4.1 to 3.7.0 #194

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 7, 2025

Bumps mime-types from 3.4.1 to 3.7.0.

Changelog

Sourced from mime-types's changelog.

3.7.0 / 2025-05-07

  • Deprecated MIME::Type#priority_compare. In a future release, this will be will be renamed to MIME::Type#<=>. This method is used in tight loops, so there is no warning message for either MIME::Type#priority_compare or MIME::Type#<=>.

  • Improved the performance of sorting by eliminating the complex comparison flow from MIME::Type#priority_compare. The old version shows under 600 i/s, and the new version shows over 900 i/s. In sorting the full set of MIME data, there are three differences between the old and new versions; after comparison, these differences are considered acceptable.

  • Simplified the default compare implementation (MIME::Type#<=>) to use the new MIME::Type#priority_compare operation and simplify the fallback to String comparison. This may result in exceptions where there had been none, as explicit support for several special values (which should have caused errors in any case) have been removed.

  • When sorting the result of MIME::Types#type_for, provided a priority boost if one of the target extensions is the type's preferred extension. This means that for the case in #148[issue-148], when getting the type for foo.webm, the type video/webm will be returned before the type audio/webm, because .webm is the preferred extension for video/webm but not audio/webm (which has a preferred extension of .weba). Added tests to ensure MIME types are retrieved in a stable order (which is alphabetical).

3.6.2 / 2025-03-25

  • Updated the reference to the changelog in the README, fixing RubyGems metadata on the next release. Fixed in #189[pull-189] by nna774.

  • Daniel Watkins fixed an error in the repo tag for this release because the modified gemspec was not included in the release. Fixed in #196[pull-196].

3.6.1 / 2025-03-15

  • Restructure project structure to be more consistent with mime-types-data.

  • Increased GitHub action security. Added Ruby 3.4, dropped macOS 12, added macOS 15.

  • Added [trusted publishing][tp] for fully automated releases.

  • Added MIME::Types::NullLogger to completely silence MIME::Types logging.

  • Improved the development experience with updates to the Gemfile.

  • Worked around various issues with the benchmarks and profiling code.

... (truncated)

Commits
  • afa0fd6 Update changelog with correct version
  • a134b29 Prep for release
  • a05d39b Improve comparison performance with pre-computed priority
  • 4a06000 Deprecate MIME::Types.new(Array)
  • ac2e0d4 Bump astral-sh/setup-uv from 6.0.0 to 6.0.1
  • 918c7f8 Bump github/codeql-action from 3.28.16 to 3.28.17
  • 09cce35 Bump ruby/setup-ruby from 1.235.0 to 1.237.0
  • fc2289c Bump reviewdog/action-typos from 1.17.2 to 1.17.3
  • dbff580 Bump astral-sh/setup-uv from 5.4.2 to 6.0.0
  • 10d3784 Bump ruby/setup-ruby from 1.233.0 to 1.235.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mime-types](https://github.com/mime-types/ruby-mime-types) from 3.4.1 to 3.7.0.
- [Changelog](https://github.com/mime-types/ruby-mime-types/blob/main/CHANGELOG.md)
- [Commits](mime-types/ruby-mime-types@v3.4.1...v3.7.0)

---
updated-dependencies:
- dependency-name: mime-types
  dependency-version: 3.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 7, 2025

Reviewers

The following users could not be added as reviewers: andrcuns. Either the username does not exist or it does not have the correct permissions to be added as a reviewer.

Labels

The following labels could not be found: type:chore. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 7, 2025

The reviewers field in the dependabot.yml file will be removed soon. Please use the code owners file to specify reviewers for Dependabot PRs. For more information, see this blog post.

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.

0 participants