diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..af45a0d3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.1.0-alpha.2] - 2020-12-22 +### Added +- Single quote escapes are now removed from string literals if present when converting to double-quoted strings + +### Changed +- If there is a single argument in a function call, and it is either a table or anonymous function, the relevant start/end tokens are no longer pushed onto new lines +- Comments are now left completely unformatted, apart from trimming trailing whitespace at the end of single-line comments + +### Fixed +- Double quotes are now escaped when converting from single quote to double quote strings + +## [0.1.0-alpha] - 2020-12-22 +Initial alpha release \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index e80f2890..9ab9c9a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "stylua" -version = "0.1.0-alpha" +version = "0.1.0-alpha.2" dependencies = [ "anyhow", "full_moon", diff --git a/Cargo.toml b/Cargo.toml index 24d4b49e..4489bdda 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stylua" -version = "0.1.0-alpha" +version = "0.1.0-alpha.2" authors = ["JohnnyMorganz "] description = "A code formatter for Lua" license = "MPL-2.0" diff --git a/README.md b/README.md index f08b6471..4d0bff67 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Please note, currently by default, StyLua is built with Luau features enabled. I ### With [Foreman](https://github.com/Roblox/foreman) StyLua can be installed using foreman. Add the following to your `foreman.toml` file: ``` -stylua = { source = "JohnnyMorganz/stylua", version = "0.1.0"} +stylua = { source = "JohnnyMorganz/stylua", version = "0.1.0-alpha.2" } ``` ### From Crates.io