Skip to content

v1.0.0

Latest

Choose a tag to compare

@zzau13 zzau13 released this 13 Nov 00:04
· 1 commit to master since this release

Breaking Changes

  • In v_htmlescape, v_jsonescape, and v_latexescape, escape_bytes now has the signature fn(&[u8], &mut Vec<u8>) instead of fn(&str, &mut Vec<u8>). The function name is unchanged; callers passing a string can use input.as_bytes().
  • Escapes::byte_byte_escape now accepts &[u8] instead of &str, allowing custom Escapes implementations to process arbitrary byte sequences.

Added

  • Add v_html5escape, which escapes &, <, >, ", and ' while leaving / unchanged.
  • escape_bytes can now escape arbitrary byte sequences, including invalid UTF-8. Bytes not in a crate's escape table are copied unchanged.
  • v_latexescape now escapes < and > as \textless{} and \textgreater{}.

Refactor

  • Move workspace crates under packages/ to simplify release management. Published crate names remain unchanged.
  • Carry forward the SIMD backends for x86_64 (AVX2/SSE2), AArch64 (NEON), and wasm32 (SIMD128), with a scalar fallback. The AArch64 and wasm32 backends were introduced in the 0.16.0 refactor.