unstale

npm / chardet

chardet

What changed in chardet 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

1 breaking1 security4 deprecations3 new APIs and options1 behavior and defaults1 tooling1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

chardet 25 changes

Breaking changes 1

  • Inputs are now restricted to Array instances with numeric values <= 255, including shapes like Buffer or Uint8Array; strings and other inputs are not accepted.

    2.0.0release notes

Security 1

New APIs and options 2

Fixes and other changes 1

chardet 17 changes

Deprecations 4

  • Callbacks are deprecated in favour of promises.

    1.0.0release notes

  • detectAll is deprecated; use analyse instead.

    1.0.0release notes

  • detectFileAll is deprecated; use analyse instead.

    1.0.0release notes

  • detectFileAllSync is deprecated; use analyse instead.

    1.0.0release notes

New APIs and options 1

Behavior and default changes 1

  • The fs module is lazy loaded to enable usage in a browser.

    1.0.0release notes

Tooling 1

  • TypeScript typings are now included as part of the distribution.

    1.0.0release notes