Skip to content

Bump file-type from 12.4.2 to 21.0.0 #556

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 26, 2025

Bumps file-type from 12.4.2 to 21.0.0.

Release notes

Sourced from file-type's releases.

v21.0.0

Breaking

  • Require Node.js 20 24aec1f
  • Drop Adobe Illustrator (.ai) detection support (#743) af169f3
  • Correct Matroska (video) MIME-type to formal IANA registration (#753) f53f5ff
  • Correct FLAC MIME-type to formal IANA registration (#755) b9fda36
  • Correct Apache Parquet MIME-type to formal IANA registration (#748) 98e3f8e
  • Correct Apache Arrow MIME-type to formal IANA registration (#754) 7184775

Improvements

  • Allow options to be directly passed to exported functions (#752) d264029
  • Add mpegOffsetTolerance option (#646) c40840a

Fixes

  • Fix detection of some PAX TAR formats (#762) 574d0d6

sindresorhus/file-type@v20.5.0...v21.0.0

v20.5.0

  • Add support Office PowerPoint 2007 (macro-enabled) slide show (#747) f1b4c7a

sindresorhus/file-type@v20.4.1...v20.5.0

v20.4.1

  • Add workaround for using bundler as the module-resolution in TypeScript (#744) 90bfe33

sindresorhus/file-type@v20.4.0...v20.4.1

v20.4.0

  • Add support for OpenType Font Collection (TTC) (#737) 3e576a6

sindresorhus/file-type@v20.3.0...v20.4.0

v20.3.0

  • Add node subpath export (#741) 8d39f66
  • Allow require to load file-type as ES Module (#736) 8d39f66

... (truncated)

Commits
  • c54c744 21.0.0
  • 24aec1f Require Node.js 20
  • 574d0d6 Fix detection of some PAX TAR formats (#762)
  • c40840a Add mpegOffsetTolerance option (#646)
  • 4830e77 Exclude unknown file types from MIME/extension sync test (#761)
  • 209c47c Simplify type tests
  • d264029 Allow options to be directly passed to exported functions (#752)
  • d873809 Centralize fixture traversal (#759)
  • df68199 Replace Uint8Array#slice() with Uint8Array#subarray() (#758)
  • d29635a Add unit tests comparing supported MIME types and implemented types (#756)
  • 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)

Summary by Sourcery

Upgrade the file-type dependency from v12.4.2 to v21.0.0 to incorporate new format detection, options, and MIME type corrections, while adopting Node.js 20 as the minimum requirement.

New Features:

  • Allow options to be passed directly to exported file-type functions
  • Introduce a new mpegOffsetTolerance option

Bug Fixes:

  • Fix detection of certain PAX TAR formats

Enhancements:

  • Update MIME types to their formal IANA registrations for Matroska, FLAC, Apache Parquet, and Apache Arrow

Chores:

  • Bump file-type version in package.json to ^21.0.0

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

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 26, 2025
Copy link

sourcery-ai bot commented May 26, 2025

Reviewer's Guide

This PR updates the file-type dependency from 12.4.2 to 21.0.0 by bumping the version in package.json and regenerating the lockfile to incorporate breaking changes and improvements in the new release.

File-Level Changes

Change Details Files
Upgrade file-type dependency to version 21.0.0
  • Update file-type entry in package.json to ^21.0.0
  • Regenerate package-lock.json to reflect the new dependency tree
package.json
package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Bumps [file-type](https://github.com/sindresorhus/file-type) from 12.4.2 to 21.0.0.
- [Release notes](https://github.com/sindresorhus/file-type/releases)
- [Commits](sindresorhus/file-type@v12.4.2...v21.0.0)

---
updated-dependencies:
- dependency-name: file-type
  dependency-version: 21.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/file-type-21.0.0 branch from 530e294 to 24c32ed Compare June 13, 2025 03: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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants