Skip to content

v4.0.0

Compare
Choose a tag to compare
@fb55 fb55 released this 01 Apr 21:29

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 and escapeText functions, implementing the escaping required by the HTML serializer algorithm (#770)

Breaking:

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:

  • refactor(encode): Inline replacers, xml code map (#765) c7b81ad
  • refactor: Share escaping logic between escape fns 2a2bc5f
  • refactor(decode): Defer creating string to the end of the trie 0fa1149