The Hidden Race Condition in file-type That Corrupted Our Parallel Image Detection
Our logo candidate list kept shrinking at random. We traced it to the file-type npm package, which shares internal state across detections and returns mismatched MIME types when called in parallel.