v4.0.0
New Features:
entities
is now both an ESM and a CommonJS module (#775)entities
now has a new documentation website! (Added in 720a36d.)- Added
escapeAttribute
andescapeText
functions, implementing the escaping required by the HTML serializer algorithm (#770)
Breaking:
- The format of the decode tries has changed, leading to ~20% space savings when loaded. The format is described in detail at https://github.com/fb55/entities/blob/master/scripts/trie/README.md. Relevant PRs:
- Moved the base maps out of the bundle (#772) 0af5d6d
- We now use a smaller map for encoding entities, see #771
Docs:
- docs(readme): Add FAQ about strict decoding c2e2c93
- docs(readme): Add Features section, plus small improvements 3f66dd6
- docs(readme): Add FAQ section 14f1732
Refactors: