Skip to content

Choose a tag to compare

@simonw simonw released this 02 Aug 22:19
12bcd29
  • condense_json() now can now round-trip inputs that include the keys $, $r, and $raw. These are now escaped using a $raw wrapper. #3
  • Overlapping replacements are now deterministic: matches are selected from left to right, with the longest match winning.
  • uncondense_json() now raises UncondenseError, a subclass of ValueError, for malformed condensed data, including unknown or blank replacement IDs, non-list $r values, and invalid $r segments.
  • Type annotations now cover any JSON-compatible top-level value through the exported recursive JSONInput alias.