encoding-sniffer 0.2.1 is depending on a deprecated package `whatwg-encoding@3.1.1`, and it's v1 package has fixed it. However, the v1 is now ESM only. Maybe we should consider inlining this dependency for cjs builds.