unstale

npm / entities

entities

What changed in entities 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

5 breaking1 deprecations12 performance1 tooling3 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

entities 820 changes

Breaking changes 5

  • Default decoding preserves XML numeric code points such as €, yielding U+0080 instead of €.

    8.1.0release notes

  • XML numeric code points such as € now yield U+0080 instead of €.

    8.1.0release notes

  • Deprecated functions and polyfills have been removed, so code relying on them must be updated.

    8.0.0release notes

  • entities is now ESM-only, affecting how developers import and use the package.

    8.0.0release notes

  • The minimum supported Node.js version is now 20.19.0.

    8.0.0release notes

Deprecations 1

  • Use String.prototype.codePointAt instead of getCodePoint from entities/escape.

    8.1.0release notes

Performance 12

  • The full bundle is 19% smaller (18% gzipped), targeting ES2022.

    8.1.0release notes

  • Default decoding is 1.44× faster.

    8.1.0release notes

  • Decoding is 1.19× faster.

    8.1.0release notes

  • Decoding is 1.18× faster.

    8.1.0release notes

  • Decoding is 1.14× faster.

    8.1.0release notes

  • Decoding is 1.46× faster.

    8.1.0release notes

  • Default encoding is 2.46× faster for mostly ASCII 4 KiB prose, but takes about 6% longer on the short, dense benchmark input.

    8.1.0release notes

  • Encoding mostly ASCII 4 KiB prose is 2.46× faster; XML encoding takes about 6% longer on the short, dense benchmark input.

    8.1.0release notes

  • Encoding mostly ASCII 4 KiB prose is 2.46× faster.

    8.1.0release notes

  • Escaping is 1.23× faster.

    8.1.0release notes

  • Escaping is 1.33× faster.

    8.1.0release notes

  • Escaping is 1.49× faster.

    8.1.0release notes

Fixes and other changes 2

  • Preserves unterminated names such as &Xi$, rather than incorrectly decoding them to Â.

    8.1.0release notes

  • Preserves interrupted references such as &notin<, rather than incorrectly decoding them to ¬in<.

    8.1.0release notes

entities 72 changes

Tooling 1

  • Test files are excluded from the published package.

    7.0.1release notes

Fixes and other changes 1

  • Fixes an issue that broke streaming for htmlparser2.

    7.0.1release notes