Bump file-type from 21.3.2 to 22.0.0
Type: Pull Request
State: Closed
Association: Unknown
Comments: 2
(3 months ago)
(3 months ago)
(3 months ago)
triage dependencies javascript
Bumps file-type from 21.3.2 to 22.0.0.
Release notes
Sourced from file-type's releases.
v22.0.0
Breaking
Requires Node.js 22
Dropped Node.js
stream.Readablesupport fromfileTypeFromStream()andfileTypeStream()
- These now only accept a web
ReadableStream. Migrate withReadable.toWeb():// Before import fs from 'node:fs'; fileTypeFromStream(fs.createReadStream('file.mp4'));// After
import fs from 'node:fs';
import {Readable} from 'node:stream';
fileTypeFromStream(Readable.toWeb(fs.createReadStream('file.mp4')));
Sub-exports (e.g.
file-type/core) have been removed. Import everything fromfile-typedirectly.The
ReadableStreamWithFileTypetype has been removed. UseAnyWebReadableByteStreamWithFileTypeinstead.Several MIME types have been corrected or normalized:
Type Old MIME New MIME lzapplication/x-lzipapplication/lziplnkapplication/x.ms.shortcutapplication/x-ms-shortcutApple Alias application/x.apple.aliasapplication/x-ft-apple.aliasfbxapplication/x.autodesk.fbxapplication/x-ft-fbxDraco application/vnd.google.dracoapplication/x-ft-dracoMIME subtypes prefixed with
x-ft-are custom types defined by this package (not IANA-registered).Improvements
- Added detection for Apple iWork files:
.key(Keynote),.pages(Pages),.numbers(Numbers)Fixes
- Fixed LibreOffice OOXML files being incorrectly detected as ZIP when reading from streams
https://github.com/sindresorhus/file-type/compare/v21.3.4...v22.0.0
v21.3.4
- Harden parser more aec20a0
https://github.com/sindresorhus/file-type/compare/v21.3.3...v21.3.4
... (truncated)
Commits
2c54d0622.0.00ba6e0bTweaks0e679c7Remove sub-exports7079af7Tweaksec77458Add support for iWork files (.key, .pages, .numbers)d4a975cFix LibreOffice OOXML files detected as ZIP in streams5de64e2Normalize MIME types we invented withx-ft-prefix7a60fa9Require Node.js 226409e17Drop Node.js Readable stream support296e37cRefactor to smaller files- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 14926921 |
| UUID: | 4176113948 |
| Node ID: | PR_kwDOC01lZ87O1rAI |
| Host: | GitHub |
| Repository: | github/docs |