From a7ab7e8bf4985f62306fee0f5b5b5ad243ff57413c91798eff92dcf9bbeff304 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sun, 12 Nov 2023 14:00:12 +0000 Subject: [PATCH] - Update to version 0.19.0: ### Added - Added flag `--respect-ignores`. By default, files explicitly passed to stylua (e.g. `stylua foo.lua`) will always be formatted, regardless of whether the file is ignored. Enabling this flag will consider `.styluaignore` or glob matches before formatting the file. - Note: for backwards compatibility reasons, formatting via stdin always respects ignores. This behaviour will change in the next major release ### Changed - Updated parser crate with following changes: - Support Luau floor division (`//`) - Fix Luau string interpolation parsing - Fix Luau `\z` escape parsing - Simplified access and modification patterns for StyLua configuration. You can now access the properties directly - **Deprecated:** the old access patterns of `.property()` and `.with_property()` are now deprecated - **Breaking Change (WASM):** due to JS/TS lack of differentiation between `.property` / `.property()` implementation, the `.property()` functions were removed from WASM output. - Multiline comments before commas will now remain in place and not move to after the comma. This is to support type-assertions-via-comments that is commonly used by some language servers. OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/StyLua?expand=0&rev=36 --- StyLua-0.18.2.tar.gz | 3 --- StyLua-0.19.0.tar.gz | 3 +++ StyLua.changes | 36 ++++++++++++++++++++++++++++++++++++ StyLua.spec | 5 ++--- cargo_config | 5 ----- vendor.tar.zst | 4 ++-- 6 files changed, 43 insertions(+), 13 deletions(-) delete mode 100644 StyLua-0.18.2.tar.gz create mode 100644 StyLua-0.19.0.tar.gz delete mode 100644 cargo_config diff --git a/StyLua-0.18.2.tar.gz b/StyLua-0.18.2.tar.gz deleted file mode 100644 index fe21088..0000000 --- a/StyLua-0.18.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25a81ffaba54479ca7ddaa6ebb7611d60f8849004b5d6c50ec1b31edb2295c8e -size 377388 diff --git a/StyLua-0.19.0.tar.gz b/StyLua-0.19.0.tar.gz new file mode 100644 index 0000000..1335877 --- /dev/null +++ b/StyLua-0.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b227f41250925ef4aa4403cea52fbc144d1a78576eb0181b6d477ca7cf31e6bf +size 386320 diff --git a/StyLua.changes b/StyLua.changes index 3ea5788..bbdad2f 100644 --- a/StyLua.changes +++ b/StyLua.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Sun Nov 12 13:56:19 UTC 2023 - Soc Virnyl Estela + +- Update to version 0.19.0: + + ### Added + + - Added flag `--respect-ignores`. By default, files explicitly passed + to stylua (e.g. `stylua foo.lua`) will always be formatted, regardless of + whether the file is ignored. Enabling this flag will consider `.styluaignore` + or glob matches before formatting the file. + + - Note: for backwards compatibility reasons, formatting via stdin always + respects ignores. This behaviour will change in the next major release + + ### Changed + + - Updated parser crate with following changes: + + - Support Luau floor division (`//`) + - Fix Luau string interpolation parsing + - Fix Luau `\z` escape parsing + + - Simplified access and modification patterns for StyLua configuration. You + can now access the properties directly + + - **Deprecated:** the old access patterns of `.property()` and + `.with_property()` are now deprecated + - **Breaking Change (WASM):** due to JS/TS lack of differentiation + between `.property` / `.property()` implementation, the `.property()` + functions were removed from WASM output. + + - Multiline comments before commas will now remain in place and not move + to after the comma. This is to support type-assertions-via-comments that + is commonly used by some language servers. + ------------------------------------------------------------------- Mon Oct 9 13:14:58 UTC 2023 - Soc Virnyl Estela diff --git a/StyLua.spec b/StyLua.spec index 697f9a0..55da491 100644 --- a/StyLua.spec +++ b/StyLua.spec @@ -18,14 +18,13 @@ %define _bin_name stylua Name: StyLua -Version: 0.18.2 +Version: 0.19.0 Release: 0 Summary: Opinionated Lua code formatter License: (Apache-2.0 OR MIT) AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Unlicense) AND Apache-2.0 AND MIT AND MPL-2.0 AND MPL-2.0 URL: https://github.com/JohnnyMorganz/StyLua Source0: https://github.com/JohnnyMorganz/StyLua/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: vendor.tar.zst -Source2: cargo_config BuildRequires: cargo-packaging BuildRequires: rust+cargo BuildRequires: zstd @@ -39,7 +38,7 @@ consistent code style. %prep %setup -q -a1 mkdir -p .cargo -cp %{SOURCE2} .cargo/config.toml +cp cargo_config .cargo/config.toml %build %{cargo_build} --all-features diff --git a/cargo_config b/cargo_config deleted file mode 100644 index 97852b5..0000000 --- a/cargo_config +++ /dev/null @@ -1,5 +0,0 @@ -[source.crates-io] -replace-with = "vendored-sources" - -[source.vendored-sources] -directory = "vendor" diff --git a/vendor.tar.zst b/vendor.tar.zst index 54f9d23..cd50d45 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:532a56c706e3c958b827576d84958ecac337958e8bb1b196a53a40b880a04a18 -size 15050449 +oid sha256:53311404fb07526a7ae14044047abcf9afcf1a823f93ea6c003a12e80396c39d +size 19381631