Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package StyLua for openSUSE:Factory checked 
in at 2023-02-24 18:08:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/StyLua (Old)
 and      /work/SRC/openSUSE:Factory/.StyLua.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "StyLua"

Fri Feb 24 18:08:24 2023 rev:6 rq:1067592 version:0.16.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/StyLua/StyLua.changes    2023-02-14 
16:47:47.707283226 +0100
+++ /work/SRC/openSUSE:Factory/.StyLua.new.31432/StyLua.changes 2023-02-24 
18:08:31.977557430 +0100
@@ -1,0 +2,10 @@
+Fri Feb 17 10:33:34 UTC 2023 - Soc Virnyl Estela <socvirnyl.est...@gmail.com>
+
+- Update to version 0.16.1:
+  * General
+    - Fixed mistransformation of a function argument in a multilined function 
call when the argument
+      contains a comment, causing a syntax error. We now attempt to hang the 
expression (#648)
+  * Luau
+    - Fixed verify AST flagging a false positive for parentheses removed 
around a Luau type (#643)
+
+-------------------------------------------------------------------

Old:
----
  StyLua-0.16.0.tar.gz
  vendor.tar.xz

New:
----
  StyLua-0.16.1.tar.gz
  vendor.tar.zst

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ StyLua.spec ++++++
--- /var/tmp/diff_new_pack.ZSeiTF/_old  2023-02-24 18:08:36.409583843 +0100
+++ /var/tmp/diff_new_pack.ZSeiTF/_new  2023-02-24 18:08:36.413583867 +0100
@@ -18,16 +18,17 @@
 
 %define _bin_name stylua
 Name:           StyLua
-Version:        0.16.0
+Version:        0.16.1
 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.xz
+Source1:        vendor.tar.zst
 Source2:        cargo_config
 BuildRequires:  cargo-packaging
 BuildRequires:  rust+cargo
+BuildRequires:  zstd
 
 %description
 StyLua is an opinonated code formatter for Lua 5.1, 5.2, 5.3, 5.4 and Luau

++++++ StyLua-0.16.0.tar.gz -> StyLua-0.16.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/CHANGELOG.md 
new/StyLua-0.16.1/CHANGELOG.md
--- old/StyLua-0.16.0/CHANGELOG.md      2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/CHANGELOG.md      2023-02-10 22:55:06.000000000 +0100
@@ -7,6 +7,13 @@
 
 ## [Unreleased]
 
+## [0.16.1] - 2023-02-10
+
+### Fixed
+
+- Fixed mistransformation of a function argument in a multilined function call 
when the argument contains a comment, causing a syntax error. We now attempt to 
hang the expression ([#648](https://github.com/JohnnyMorganz/StyLua/issues/648))
+- Fixed verify AST flagging a false positive for parentheses removed around a 
Luau type ([#643](https://github.com/JohnnyMorganz/StyLua/issues/643))
+
 ## [0.16.0] - 2023-01-15
 
 ### Added
@@ -615,7 +622,8 @@
 
 Initial alpha release
 
-[unreleased]: https://github.com/JohnnyMorganz/StyLua/compare/v0.16.0...HEAD
+[unreleased]: https://github.com/JohnnyMorganz/StyLua/compare/v0.16.1...HEAD
+[0.16.1]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v0.16.1
 [0.16.0]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v0.16.0
 [0.15.3]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v0.15.3
 [0.15.2]: https://github.com/JohnnyMorganz/StyLua/releases/tag/v0.15.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/Cargo.lock new/StyLua-0.16.1/Cargo.lock
--- old/StyLua-0.16.0/Cargo.lock        2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/Cargo.lock        2023-02-10 22:55:06.000000000 +0100
@@ -917,7 +917,7 @@
 
 [[package]]
 name = "stylua"
-version = "0.16.0"
+version = "0.16.1"
 dependencies = [
  "anyhow",
  "assert_cmd",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/Cargo.toml new/StyLua-0.16.1/Cargo.toml
--- old/StyLua-0.16.0/Cargo.toml        2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/Cargo.toml        2023-02-10 22:55:06.000000000 +0100
@@ -1,6 +1,6 @@
 [package]
 name = "stylua"
-version = "0.16.0"
+version = "0.16.1"
 authors = ["JohnnyMorganz <johnnymorg...@outlook.com>"]
 description = "A code formatter for Lua"
 license = "MPL-2.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/README.md new/StyLua-0.16.1/README.md
--- old/StyLua-0.16.0/README.md 2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/README.md 2023-02-10 22:55:06.000000000 +0100
@@ -54,7 +54,7 @@
 
 ```yaml
 - repo: https://github.com/JohnnyMorganz/StyLua
-  rev: v0.16.0
+  rev: v0.16.1
   hooks:
     - id: stylua # or stylua-system / stylua-github
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/cli/main.rs 
new/StyLua-0.16.1/src/cli/main.rs
--- old/StyLua-0.16.0/src/cli/main.rs   2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/cli/main.rs   2023-02-10 22:55:06.000000000 +0100
@@ -49,7 +49,7 @@
             additional,
         }) => json!({
             "type": "parse_error",
-            "message": format!("unexpected token `{}`{}", token, 
additional.as_ref().map(|x| format!(": {}", x)).unwrap_or_default()),
+            "message": format!("unexpected token `{}`{}", token, 
additional.as_ref().map(|x| format!(": {x}")).unwrap_or_default()),
             "filename": file,
             "location": {
                 "start": token.start_position().bytes(),
@@ -75,10 +75,10 @@
                 full_moon::tokenizer::TokenizerErrorType::UnexpectedToken(
                     character,
                 ) => {
-                    format!("unexpected character {}", character)
+                    format!("unexpected character {character}")
                 }
                 
full_moon::tokenizer::TokenizerErrorType::InvalidSymbol(symbol) => {
-                    format!("invalid symbol {}", symbol)
+                    format!("invalid symbol {symbol}")
                 }
             },
             "filename": file,
@@ -109,7 +109,7 @@
             original,
             expected,
             3,
-            &format!("Diff in {}:", file_name),
+            &format!("Diff in {file_name}:"),
             opt.color,
         ),
         opt::OutputFormat::Unified => 
output_diff::output_diff_unified(original, expected),
@@ -134,7 +134,7 @@
             if original == expected {
                 Ok(None)
             } else {
-                Ok(Some(format!("{}\n", file_name).into_bytes()))
+                Ok(Some(format!("{file_name}\n").into_bytes()))
             }
         }
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/cli/output_diff.rs 
new/StyLua-0.16.1/src/cli/output_diff.rs
--- old/StyLua-0.16.0/src/cli/output_diff.rs    2023-01-15 13:23:39.000000000 
+0100
+++ new/StyLua-0.16.1/src/cli/output_diff.rs    2023-02-10 22:55:06.000000000 
+0100
@@ -40,7 +40,7 @@
     let should_use_color = color.should_use_color();
 
     // Print out the header title
-    writeln!(&mut buffer, "{}", title)?;
+    writeln!(&mut buffer, "{title}")?;
 
     for (idx, group) in iter {
         if idx > 0 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/formatters/assignment.rs 
new/StyLua-0.16.1/src/formatters/assignment.rs
--- old/StyLua-0.16.0/src/formatters/assignment.rs      2023-01-15 
13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/formatters/assignment.rs      2023-02-10 
22:55:06.000000000 +0100
@@ -311,8 +311,8 @@
             // If hanging at the equal token doesn't go over budget, and it 
produces less lines than hanging normally
             // then go for that instead
             if !equal_token_shape.over_budget()
-                && format!("{}", 
hanging_equal_token_expr_list).lines().count() + 1 // Add an extra line since 
we are hanging
-                    < format!("{}", expr_list).lines().count()
+                && format!("{hanging_equal_token_expr_list}").lines().count() 
+ 1 // Add an extra line since we are hanging
+                    < format!("{expr_list}").lines().count()
                 || formatting_shape.over_budget()
             {
                 (hanging_equal_token_expr_list, hanging_equal_token)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/formatters/expression.rs 
new/StyLua-0.16.1/src/formatters/expression.rs
--- old/StyLua-0.16.0/src/formatters/expression.rs      2023-01-15 
13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/formatters/expression.rs      2023-02-10 
22:55:06.000000000 +0100
@@ -1444,7 +1444,7 @@
                 || get_expression_trailing_trivia(&lhs)
                     .iter()
                     .any(trivia_util::trivia_is_comment)
-                || (shape.take_last_line(&lhs) + format!("{}{}", binop, 
rhs).len()).over_budget()
+                || (shape.take_last_line(&lhs) + 
format!("{binop}{rhs}").len()).over_budget()
             {
                 let hanging_shape = shape.reset() + 
strip_trivia(binop).to_string().len() + 1;
                 new_binop = hang_binop(ctx, binop.to_owned(), shape, rhs);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/formatters/functions.rs 
new/StyLua-0.16.1/src/formatters/functions.rs
--- old/StyLua-0.16.0/src/formatters/functions.rs       2023-01-15 
13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/formatters/functions.rs       2023-02-10 
22:55:06.000000000 +0100
@@ -341,9 +341,11 @@
 
     // If the argument fits, great! Otherwise, see if we can hang the 
expression
     // If we can, use that instead (as it provides a nicer output). If not, 
format normally without infinite width
-    if shape
-        .add_width(strip_trivia(&infinite_width_argument).to_string().len())
-        .over_budget()
+    // Also: if the argument contains comments, it should be multilined
+    if trivia_util::expression_contains_inline_comments(argument)
+        || shape
+            
.add_width(strip_trivia(&infinite_width_argument).to_string().len())
+            .over_budget()
     {
         if trivia_util::can_hang_expression(argument) {
             hang_expression(ctx, argument, shape, Some(1))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/formatters/table.rs 
new/StyLua-0.16.1/src/formatters/table.rs
--- old/StyLua-0.16.0/src/formatters/table.rs   2023-01-15 13:23:39.000000000 
+0100
+++ new/StyLua-0.16.1/src/formatters/table.rs   2023-02-10 22:55:06.000000000 
+0100
@@ -53,8 +53,8 @@
                 .update_trailing_trivia(FormatTriviaType::Replace(vec![]));
 
             if shape.test_over_budget(&singleline_value)
-                || format!("{}", hanging_value).lines().count()
-                    < format!("{}", singleline_value).lines().count()
+                || format!("{hanging_value}").lines().count()
+                    < format!("{singleline_value}").lines().count()
             {
                 hanging_value
             } else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/formatters/trivia_util.rs 
new/StyLua-0.16.1/src/formatters/trivia_util.rs
--- old/StyLua-0.16.0/src/formatters/trivia_util.rs     2023-01-15 
13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/formatters/trivia_util.rs     2023-02-10 
22:55:06.000000000 +0100
@@ -55,7 +55,7 @@
 
 /// Determines whether a particular node spans over multiple lines
 pub fn spans_multiple_lines<T: std::fmt::Display>(item: &T) -> bool {
-    let string = format!("{}", item);
+    let string = format!("{item}");
     string.lines().count() > 1
 }
 
@@ -1230,7 +1230,6 @@
 #[allow(dead_code)]
 pub fn contains_singleline_comments(node: impl Node) -> bool {
     node.tokens()
-        .into_iter()
         .any(|token| token_contains_comments_search(token, 
CommentSearch::Single))
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/lib.rs new/StyLua-0.16.1/src/lib.rs
--- old/StyLua-0.16.0/src/lib.rs        2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/lib.rs        2023-02-10 22:55:06.000000000 +0100
@@ -11,49 +11,40 @@
 mod verify_ast;
 
 /// The type of indents to use when indenting
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Deserialize)]
+#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)]
 #[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen"), 
wasm_bindgen)]
 #[cfg_attr(feature = "serialize", derive(serde::Serialize))]
 #[cfg_attr(feature = "fromstr", derive(strum::EnumString))]
 pub enum IndentType {
     /// Indent using tabs (`\t`)
+    #[default]
     Tabs,
     /// Indent using spaces (` `)
     Spaces,
 }
 
-impl Default for IndentType {
-    fn default() -> Self {
-        IndentType::Tabs
-    }
-}
-
 /// The type of line endings to use at the end of a line
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Deserialize)]
+#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)]
 #[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen"), 
wasm_bindgen)]
 #[cfg_attr(feature = "serialize", derive(serde::Serialize))]
 #[cfg_attr(feature = "fromstr", derive(strum::EnumString))]
 pub enum LineEndings {
     // Auto,
     /// Unix Line Endings (LF) - `\n`
+    #[default]
     Unix,
     /// Windows Line Endings (CRLF) - `\r\n`
     Windows,
 }
 
-impl Default for LineEndings {
-    fn default() -> Self {
-        LineEndings::Unix
-    }
-}
-
 /// The style of quotes to use within string literals
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Deserialize)]
+#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)]
 #[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen"), 
wasm_bindgen)]
 #[cfg_attr(feature = "serialize", derive(serde::Serialize))]
 #[cfg_attr(feature = "fromstr", derive(strum::EnumString))]
 pub enum QuoteStyle {
     /// Use double quotes where possible, but change to single quotes if it 
produces less escapes
+    #[default]
     AutoPreferDouble,
     /// Use single quotes where possible, but change to double quotes if it 
produces less escapes
     AutoPreferSingle,
@@ -63,19 +54,14 @@
     ForceSingle,
 }
 
-impl Default for QuoteStyle {
-    fn default() -> Self {
-        QuoteStyle::AutoPreferDouble
-    }
-}
-
 /// When to use call parentheses
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Deserialize)]
+#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)]
 #[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen"), 
wasm_bindgen)]
 #[cfg_attr(feature = "serialize", derive(serde::Serialize))]
 #[cfg_attr(feature = "fromstr", derive(strum::EnumString))]
 pub enum CallParenType {
     /// Use call parentheses all the time
+    #[default]
     Always,
     /// Skip call parentheses when only a string argument is used.
     NoSingleString,
@@ -85,19 +71,14 @@
     None,
 }
 
-impl Default for CallParenType {
-    fn default() -> Self {
-        CallParenType::Always
-    }
-}
-
 /// What mode to use if we want to collapse simple functions / guard statements
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Deserialize)]
+#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)]
 #[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen"), 
wasm_bindgen)]
 #[cfg_attr(feature = "serialize", derive(serde::Serialize))]
 #[cfg_attr(feature = "fromstr", derive(strum::EnumString))]
 pub enum CollapseSimpleStatement {
     /// Never collapse
+    #[default]
     Never,
     /// Collapse simple functions onto a single line
     FunctionOnly,
@@ -107,12 +88,6 @@
     Always,
 }
 
-impl Default for CollapseSimpleStatement {
-    fn default() -> Self {
-        CollapseSimpleStatement::Never
-    }
-}
-
 /// An optional formatting range.
 /// If provided, only content within these boundaries (inclusive) will be 
formatted.
 /// Both boundaries are optional, and are given as byte offsets from the 
beginning of the file.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/shape.rs 
new/StyLua-0.16.1/src/shape.rs
--- old/StyLua-0.16.0/src/shape.rs      2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/shape.rs      2023-02-10 22:55:06.000000000 +0100
@@ -198,7 +198,7 @@
 
     /// Takes the first line from an item which can be converted into a 
string, and sets that to the shape
     pub fn take_first_line<T: Display>(&self, item: &T) -> Shape {
-        let string = format!("{}", item);
+        let string = format!("{item}");
         let mut lines = string.lines();
         let width = lines.next().unwrap_or("").len();
         self.add_width(width)
@@ -208,7 +208,7 @@
     /// and the last line is added to the width. If it only takes a single 
line, we just continue adding to the current
     /// width
     pub fn take_last_line<T: Display>(&self, item: &T) -> Shape {
-        let string = format!("{}", item);
+        let string = format!("{item}");
         let mut lines = string.lines();
         let last_item = lines.next_back().unwrap_or("");
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/src/verify_ast.rs 
new/StyLua-0.16.1/src/verify_ast.rs
--- old/StyLua-0.16.0/src/verify_ast.rs 2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/src/verify_ast.rs 2023-02-10 22:55:06.000000000 +0100
@@ -9,6 +9,9 @@
     visitors::VisitorMut,
 };
 
+#[cfg(feature = "luau")]
+use full_moon::ast::types::TypeInfo;
+
 pub struct AstVerifier {}
 
 impl AstVerifier {
@@ -41,6 +44,20 @@
     }
 }
 
+#[cfg(feature = "luau")]
+fn remove_type_parentheses(type_info: TypeInfo) -> TypeInfo {
+    match type_info {
+        TypeInfo::Tuple { ref types, .. } => {
+            if types.len() == 1 {
+                types.into_iter().next().unwrap().clone()
+            } else {
+                type_info
+            }
+        }
+        _ => type_info,
+    }
+}
+
 // Massages the AST so that structures we have changed in Nodes remain 
constant.
 // Note, the massaged AST may not actually be valid syntax if we print it back 
out, but we have already checked
 // the validity of the output, so any invalid syntax output would already have 
been flagged.
@@ -174,6 +191,11 @@
 
         Token::new(token_type)
     }
+
+    #[cfg(feature = "luau")]
+    fn visit_type_info(&mut self, type_info: TypeInfo) -> TypeInfo {
+        remove_type_parentheses(type_info)
+    }
 }
 
 #[cfg(test)]
@@ -317,5 +339,15 @@
 
         let mut ast_verifier = AstVerifier::new();
         assert!(ast_verifier.compare(input_ast, output_ast));
+    }
+
+    #[test]
+    #[cfg(feature = "luau")]
+    fn test_equivalent_types_removed_parentheses() {
+        let input_ast = full_moon::parse("type Foo = (number)").unwrap();
+        let output_ast = full_moon::parse("type Foo = number").unwrap();
+
+        let mut ast_verifier = AstVerifier::new();
+        assert!(ast_verifier.compare(input_ast, output_ast));
     }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/stylua-npm-bin/package-lock.json 
new/StyLua-0.16.1/stylua-npm-bin/package-lock.json
--- old/StyLua-0.16.0/stylua-npm-bin/package-lock.json  2023-01-15 
13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/stylua-npm-bin/package-lock.json  2023-02-10 
22:55:06.000000000 +0100
@@ -1,12 +1,12 @@
 {
   "name": "@johnnymorganz/stylua-bin",
-  "version": "0.16.0",
+  "version": "0.16.1",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "@johnnymorganz/stylua-bin",
-      "version": "0.16.0",
+      "version": "0.16.1",
       "hasInstallScript": true,
       "license": "MPL-2.0",
       "dependencies": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/stylua-npm-bin/package.json 
new/StyLua-0.16.1/stylua-npm-bin/package.json
--- old/StyLua-0.16.0/stylua-npm-bin/package.json       2023-01-15 
13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/stylua-npm-bin/package.json       2023-02-10 
22:55:06.000000000 +0100
@@ -1,6 +1,6 @@
 {
   "name": "@johnnymorganz/stylua-bin",
-  "version": "0.16.0",
+  "version": "0.16.1",
   "description": "A code formatter for Lua",
   "bin": {
     "stylua": "./run.js"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/StyLua-0.16.0/tests/inputs/function-call-comments-4.lua 
new/StyLua-0.16.1/tests/inputs/function-call-comments-4.lua
--- old/StyLua-0.16.0/tests/inputs/function-call-comments-4.lua 1970-01-01 
01:00:00.000000000 +0100
+++ new/StyLua-0.16.1/tests/inputs/function-call-comments-4.lua 2023-02-10 
22:55:06.000000000 +0100
@@ -0,0 +1,9 @@
+-- https://github.com/JohnnyMorganz/StyLua/issues/648
+function foo(f, g, a, b, c)
+       return f(a)
+               or g(b and c
+                       -- a somewhat strange location to describe something
+                       or false
+                       -- yes, this newline might not have been intended
+               )
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/StyLua-0.16.0/tests/snapshots/tests__stand...@function-call-comments-4.lua.snap
 
new/StyLua-0.16.1/tests/snapshots/tests__stand...@function-call-comments-4.lua.snap
--- 
old/StyLua-0.16.0/tests/snapshots/tests__stand...@function-call-comments-4.lua.snap
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/StyLua-0.16.1/tests/snapshots/tests__stand...@function-call-comments-4.lua.snap
 2023-02-10 22:55:06.000000000 +0100
@@ -0,0 +1,15 @@
+---
+source: tests/tests.rs
+expression: format(&contents)
+---
+-- https://github.com/JohnnyMorganz/StyLua/issues/648
+function foo(f, g, a, b, c)
+       return f(a)
+               or g(
+                       b and c
+                               -- a somewhat strange location to describe 
something
+                               or false
+                       -- yes, this newline might not have been intended
+               )
+end
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/StyLua-0.16.0/wasm/package.json 
new/StyLua-0.16.1/wasm/package.json
--- old/StyLua-0.16.0/wasm/package.json 2023-01-15 13:23:39.000000000 +0100
+++ new/StyLua-0.16.1/wasm/package.json 2023-02-10 22:55:06.000000000 +0100
@@ -4,7 +4,7 @@
         "JohnnyMorganz <johnnymorg...@outlook.com>"
     ],
     "description": "A code formatter for Lua",
-    "version": "0.16.0",
+    "version": "0.16.1",
     "license": "MPL-2.0",
     "readme": "README.md",
     "repository": {

++++++ _service ++++++
--- /var/tmp/diff_new_pack.ZSeiTF/_old  2023-02-24 18:08:36.613585059 +0100
+++ /var/tmp/diff_new_pack.ZSeiTF/_new  2023-02-24 18:08:36.617585083 +0100
@@ -1,11 +1,13 @@
 <services>
   <service name="download_files" mode="disabled" />
   <service name="cargo_vendor" mode="disabled">
-     <param name="srctar">StyLua-0.16.0.tar.gz</param>
-     <param name="compression">xz</param>
+     <param name="srctar">StyLua-0.16.1.tar.gz</param>
+     <param name="compression">zst</param>
      <param name="update">true</param>
   </service>
-  <service name="cargo_audit" mode="disabled" />
+  <service name="cargo_audit" mode="disabled">
+     <param name="srcdir">StyLua-0.16.1</param>
+  </service>
 </services>
 
 

Reply via email to