sailfish/CHANGELOG.md

1.8 KiB

v0.3.0 (2020-12-20)

Breaking changes

  • No longer requires extern crate sailfish_macros (which raise compilation warnings with v0.3.0)
  • Remove TemplaceOnce::render_to_string method (already deprecated in v0.2.1)
  • Forbid implementing TemplateOnce trait by yourself
  • Change RenderError into enum
  • Update error format in sailfish-compiler

New features

  • New filters: json, truncate
  • Impl Send/Sync for Buffer

Fix

  • Fix rendering issue on continue/break statements
  • Do not panic when buffer size decreased
  • Remove unsafe usage of ptr::add()
  • Properly handle slices with size greater than isize::MAX

v0.2.3 (2020-11-29)

Fix

  • Use std::result::Result in derive macro to allow custom Result types (#34)

v0.2.2 (2020-11-11)

Fix

  • Update proc-macro2 version (#32)

v0.2.1 (2020-08-04)

Features

  • Add trim filter

Fix

  • Fix incorrect syntax highlighting in vim
  • Avoid capacity overflow in Buffer::with_capacity
  • Avoid dangerous conversion from String to Buffer
  • Fix docs typo (#30)
  • Search rustfmt command along all toolchains

v0.2.0 (2020-07-17)

Breaking Changes

  • Remove Buffer::set_len method
  • Syntactically disallow invalid filter expression
  • remove runtime::Context API
  • Remove register_escape_fn API

Features

  • Implement Compiler::compile_str() function
  • Implement filters