You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed support for Node.js v20, and raised the minimum supported Node.js v22 version to v22.13.0.
Added support for sniffing XML encoding declarations in both HTML and XML modes, following the HTML Standard for HTML and WebKit's behavior for XML.
Added detection of UTF-16 byte signatures without a byte order mark (BOM) in both modes.
Added the maxPrescanBytes option to configure the HTML <meta> scan limit, defaulting to 1024 bytes and accepting Infinity to scan the entire input or 0 to skip meta scanning.
Fixed a TypeError when a <meta> element's content="" attribute ends in a truncated charset parameter. (@FedgeNo)
Fixed HTML encoding sniffing to ignore <meta> tags whose closing > is missing or falls beyond the prescan limit.