From 64130d7e40f0faefe7eec1cb63610ed0c8d918bf Mon Sep 17 00:00:00 2001 From: jeparlefrancais Date: Mon, 11 Aug 2025 14:09:32 -0400 Subject: [PATCH] Release 0.17.0 --- CHANGELOG.md | 2 ++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 6 +++++- site/content/docs/bundle/index.md | 4 ++-- site/content/docs/installation/index.md | 2 +- site/content/rules/convert_luau_number.md | 2 +- site/content/rules/convert_square_root_call.md | 2 +- site/content/rules/inject_global_value.md | 4 ++-- site/content/rules/remove_method_call.md | 2 +- src/lib.rs | 2 +- 11 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb41964..516d3ac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.17.0 + * improve statements filtering by transfering comments. This fixes the `remove_types` rule issues related to lost comments ([#297](https://github.com/seaofvoices/darklua/pull/297)) * improve warning messages when a path can't be found in a Rojo sourcemap (when using the `roblox` require mode) ([#294](https://github.com/seaofvoices/darklua/pull/294)) * fix missing trailing commas when writing table types using the `retain_lines` generator ([#293](https://github.com/seaofvoices/darklua/pull/293)) diff --git a/Cargo.lock b/Cargo.lock index d6af0e6f..b14efd9c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -403,7 +403,7 @@ dependencies = [ [[package]] name = "darklua" -version = "0.16.0" +version = "0.17.0" dependencies = [ "anstyle", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index b3d243a5..cd9035a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "darklua" -version = "0.16.0" +version = "0.17.0" authors = ["jeparlefrancais "] edition = "2018" readme = "README.md" diff --git a/README.md b/README.md index de39f219..3b511b91 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ You can try darklua directly into your browser! Check out https://darklua.com/tr # [Installation](https://darklua.com/docs/installation/) +## [GitHub Releases](https://github.com/seaofvoices/darklua/releases/latest) + +There are pre-built versions of darklua under the [releases page](https://github.com/seaofvoices/darklua/releases) available for direct downloads. + ## [Rokit](https://github.com/rojo-rbx/rokit) When using [Rokit](https://github.com/rojo-rbx/rokit), install darklua with the command: @@ -38,7 +42,7 @@ rokit add seaofvoices/darklua If you are already using Foreman, then installing darklua is as simple as adding this line in the `foreman.toml` file: ```toml -darklua = { github = "seaofvoices/darklua", version = "=0.16.0" } +darklua = { github = "seaofvoices/darklua", version = "=0.17.0" } ``` # License diff --git a/site/content/docs/bundle/index.md b/site/content/docs/bundle/index.md index 43415104..338a0905 100644 --- a/site/content/docs/bundle/index.md +++ b/site/content/docs/bundle/index.md @@ -225,7 +225,7 @@ jobs: [package] name = "darklua" -version = "0.16.0" +version = "0.17.0" edition = "2018" readme = "README.md" description = "Transform Lua scripts" @@ -350,7 +350,7 @@ harness = false name = "darklua", readme = "README.md", repository = "https://github.com/seaofvoices/darklua", - version = "0.16.0", + version = "0.17.0", }, profile = { dev = { diff --git a/site/content/docs/installation/index.md b/site/content/docs/installation/index.md index aa68caca..e2b54404 100644 --- a/site/content/docs/installation/index.md +++ b/site/content/docs/installation/index.md @@ -18,7 +18,7 @@ rokit add seaofvoices/darklua If you are already using [Foreman](https://github.com/Roblox/foreman), then installing darklua is as simple as adding this line in the `foreman.toml` file: ```toml -darklua = { github = "seaofvoices/darklua", version = "=0.16.0" } +darklua = { github = "seaofvoices/darklua", version = "=0.17.0" } ``` ## Download a Release diff --git a/site/content/rules/convert_luau_number.md b/site/content/rules/convert_luau_number.md index 8648c22d..a9b97a1c 100644 --- a/site/content/rules/convert_luau_number.md +++ b/site/content/rules/convert_luau_number.md @@ -1,6 +1,6 @@ --- description: Convert Luau numbers into Lua compatible numbers -added_in: "unreleased" +added_in: "0.17.0" parameters: [] examples: - content: "print(0b1000_0001)" diff --git a/site/content/rules/convert_square_root_call.md b/site/content/rules/convert_square_root_call.md index 4be64393..c2c28e98 100644 --- a/site/content/rules/convert_square_root_call.md +++ b/site/content/rules/convert_square_root_call.md @@ -1,6 +1,6 @@ --- description: "Convert calls to `math.sqrt(value)` into an exponent form (`value ^ 0.5`)" -added_in: "unreleased" +added_in: "0.17.0" parameters: [] examples: - content: "local result = math.sqrt(16)" diff --git a/site/content/rules/inject_global_value.md b/site/content/rules/inject_global_value.md index c76a9339..9ef52df0 100644 --- a/site/content/rules/inject_global_value.md +++ b/site/content/rules/inject_global_value.md @@ -15,11 +15,11 @@ parameters: type: string description: An environment variable to read the value from - name: env_json - added_in: "unreleased" + added_in: "0.17.0" type: string description: An environment variable to read the json-encoded value from - name: default_value - added_in: "unreleased" + added_in: "0.17.0" type: any description: The default value when using an environment variable that is not defined examples: diff --git a/site/content/rules/remove_method_call.md b/site/content/rules/remove_method_call.md index 4aa65702..36f443c7 100644 --- a/site/content/rules/remove_method_call.md +++ b/site/content/rules/remove_method_call.md @@ -1,6 +1,6 @@ --- description: Removes usages of the method syntax (`:`) in function calls -added_in: "unreleased" +added_in: "0.17.0" parameters: [] examples: - content: "obj:method()" diff --git a/src/lib.rs b/src/lib.rs index 1d7ead95..56800635 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ //! //! ```toml //! [dependencies] -//! darklua = "0.16.0" +//! darklua = "0.17.0" //! ``` //! //! This library is designed for developers who want to integrate Lua/Luau transformation capabilities