Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 11, 2025

Bumps mime-types from 3.6.2 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).

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

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [mime-types](https://github.com/mime-types/ruby-mime-types) from 3.6.2 to 3.7.0.
- [Changelog](https://github.com/mime-types/ruby-mime-types/blob/main/CHANGELOG.md)
- [Commits](mime-types/ruby-mime-types@v3.6.2...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 dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant