Skip to content

0.5.1

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Feb 12:58
2901e85

Added

  • Added net.encode and net.decode which are equivalent to net.jsonEncode and net.jsonDecode, but with support for more formats.

    WARNING: Unstable API

    This API is unstable and may change or be removed in the next major version of Lune. The purpose of making a new release with these functions is to gather feedback from the community, and potentially replace the JSON-specific encoding and decoding utilities.

    Example usage:

    local toml = net.decode("toml", [[
    [package]
    name = "my-cool-toml-package"
    version = "0.1.0"
    
    [values]
    epic = true
    ]])
    
    assert(toml.package.name == "my-cool-toml-package")
    assert(toml.package.version == "0.1.0")
    assert(toml.values.epic == true)

Fixed

  • Fixed indentation of closing curly bracket when printing tables