Skip to content

Bump mime-types from 3.5.2 to 3.7.0#1482

Merged
Obsiye merged 1 commit intomainfrom
dependabot/bundler/mime-types-3.7.0
Mar 31, 2026
Merged

Bump mime-types from 3.5.2 to 3.7.0#1482
Obsiye merged 1 commit intomainfrom
dependabot/bundler/mime-types-3.7.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

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

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 dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels May 7, 2025
@Obsiye
Copy link
Copy Markdown
Contributor

Obsiye commented Mar 31, 2026

@dependabot rebase

Bumps [mime-types](https://github.com/mime-types/ruby-mime-types) from 3.5.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.5.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] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/bundler/mime-types-3.7.0 branch from 70a1eae to 823d84b Compare March 31, 2026 12:22
@Obsiye Obsiye merged commit 83ffe70 into main Mar 31, 2026
8 checks passed
@Obsiye Obsiye deleted the dependabot/bundler/mime-types-3.7.0 branch March 31, 2026 12:29
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