sindresorhus / file-type

Detect the file type of a file, stream, or data
MIT License
3.64k stars 345 forks source link

19.1.0 does not export `fileTypeFromTokenizer` #637

Closed matt-kunze-nutrien closed 1 month ago

matt-kunze-nutrien commented 1 month ago

This works with the prior 19.0.0 release and is still on the documentation page, so I'm guessing it's just an oversight.

Seems like this was introduced here: https://github.com/sindresorhus/file-type/commit/b815b5e173dd9f521311615eb33e955181030ca9#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346L14

removing the passthrough exports from core.js omits that function (and potentially others) from the bundle. The type declarations still export it however

sindresorhus commented 1 month ago

// @Borewit