REPOSITORY / ScuroNeko/SNekLog

Releases

RELEASES REPOSITORY
  • v2.3.0 dd3c7286d2

    2.3.0
    Golang lint / lint (push) Successful in 45s
    Stable

    ScuroNeko released this 2026-04-28 14:36:03 +03:00 | 0 commits to main since this release

    This release adds JSON HTML-escaping control while preserving the existing
    JSON writer defaults and newline semantics.

    Added

    • Added Formatter.SetJSONEscapeHTML(bool) and Formatter.JSONEscapeHTML to control whether JSON writers escape HTML-sensitive characters such as <, >, and &.

    Changed

    • JSON writers now use json.Encoder internally so formatter-level HTML escaping can be configured.

    Fixed

    • Preserved Print and Println newline behavior for JSON output while switching to json.Encoder.

    Compatibility

    • No breaking API changes.
    • HTML escaping remains enabled by default, matching the previous encoding/json behavior.
    • Print still emits JSON without an added newline, and Println emits exactly one trailing newline.

    Full Changelog: v2.2.0...v2.3.0

    Downloads