Skip to content

3.0.0

Choose a tag to compare

@lowlighter lowlighter released this 20 Apr 18:09

This library is now availabled on jsr.io

This version introduces some requested changes to the default behaviour of parse() and stringify() functions.

  • BREAKING(parse): XML prolog version attribute is now always left untouched (i.e. if version="1.0" it won't be converted to 1 anymore even with reviveNumbers: true)
  • BREAKING(parse): reviveNumbers and reviveBooleans now defaults to false (note: emptyToNull is still true by default)
  • BREAKING(stringify): XML entities are now escaped based on context rather than always (i.e. only " and ' will be escaped in attributes while only < and > will be escaped in nodes)
    • feat(stringify): add escapeAllEntities option to always escape XML entities regardless of context

Internal changes:

  • chore: remove deprecated deno api
  • test: switch to expect api
  • test: switch toDeno.bench
  • deps: use std/io/types
  • chore: update deno.jsonc
  • ci: update workflow

Full Changelog: 2.1.3...3.0.0