Skip to content

Latest commit

 

History

History
120 lines (76 loc) · 3.31 KB

CHANGELOG.md

File metadata and controls

120 lines (76 loc) · 3.31 KB

[Unreleased]

Breaking Change

  • Add config feature for crate sailfish. It is enabled by default. In previous versions, the functionality enabled by the config feature was always available. If the feature is disabled, any configuration files (sailfish.toml) are ignored by the template compiler. This speeds up the compiler a bit, and decreases the number of dependencies required, so it can be useful for applications that don't use sailfish.toml configuration files and want to speed up their build process.

v0.4.0 (2022-03-10)

Fix

  • Fix some issues pointing to the wrong documentation links

##Breaking Change

  • Changed format to .TOML instead of .yaml to better match what Rust uses.

v0.3.4 (2021-02-13)

Fix

  • Update some dependencies

v0.3.3 (2021-04-06)

Fix

  • Improve error message for missing semicolon in code blocks

v0.3.2 (2021-03-29)

Fix

  • Avoid sable/nightly mismatch error caused by proc-macro2 crate

v0.3.1 (2021-01-23)

New Features

  • Allow unsized types for filters

Fix

  • Workaround for incorrect cargo fingerprints

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