mason-org / mason-registry

Core registry for mason.nvim.
https://mason-registry.dev/registry/list
Apache License 2.0
159 stars 360 forks source link

bump(stylua): update to v2 #7959

Open renovate[bot] opened 5 days ago

renovate[bot] commented 5 days ago

This PR contains the following updates:

Package Update Change
stylua major v0.20.0 -> v2.0.1

[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

johnnymorganz/stylua (stylua) ### [`v2.0.1`](https://redirect.github.com/JohnnyMorganz/StyLua/releases/tag/v2.0.1) [Compare Source](https://redirect.github.com/johnnymorganz/stylua/compare/v2.0.0...v2.0.1) #### \[2.0.1] - 2024-11-18 ##### Added - Verbose mode will now show resolved options ##### Fixed - Fixed CLI overrides not applying on top of a resolved `stylua.toml` file ([#​925](https://redirect.github.com/JohnnyMorganz/StyLua/issues/925)) *** **Full Changelog**: https://github.com/JohnnyMorganz/StyLua/compare/v2.0.0...v2.0.1 ### [`v2.0.0`](https://redirect.github.com/JohnnyMorganz/StyLua/releases/tag/v2.0.0) [Compare Source](https://redirect.github.com/johnnymorganz/stylua/compare/v0.20.0...v2.0.0) StyLua has officially stabilised to v2.0.0. With this, we make a commitment that the formatting output is fairly stable across minor version bumps. More details: [https://github.com/JohnnyMorganz/StyLua/issues/459](https://redirect.github.com/JohnnyMorganz/StyLua/issues/459) ### Key Changes This release updates the internal Lua parser, bringing performance improvements and new Luau syntax features. LuaJIT is now separate from Lua5.2, with its own feature flag. #### Runtime syntax selection By default, StyLua runs with a parser that is able to handle a variety of different Lua syntaxes at once, with a goal of being easily usable on different codebases. However, there are times where 2 different syntax definitions conflict, introducing ambiguity. For example, Lua 5.2 label syntax (`::label::`) conflicts with Luau's type assertion syntax (`x :: number`), and the latter ends up taking priority. Now, you can select a particular style of syntax at runtime to deal with these ambiguities. In your `stylua.toml` file, add: ```toml syntax = "Lua52" # Possible values: All, Lua51, Lua52, Lua53, Lua54, LuaJIT, Luau ``` Or, specify `--syntax lua52` on the command line. The default remains "All" to handle all syntaxes as much as possible. More details: [https://github.com/JohnnyMorganz/StyLua/issues/407](https://redirect.github.com/JohnnyMorganz/StyLua/issues/407) #### Updated Configuration Resolution Previously, StyLua would only search for a `stylua.toml` (or `.stylua.toml`) file in the directory where the binary was executed - the current working directory (or its ancestors, if `--search-parent-directories` is enabled). This means that any configuration files present in subdirectories are not taken into account. This release changes config resolution to pick up `stylua.toml` files in subdirectories. Now, a file will format based on the `stylua.toml` configuration closest to its location. StyLua will search backwards from the file location to the current working directory for a configuration file. By default, searching will stop at the current working directory, however it will continue if `--search-parent-directories` is enabled. More details: [https://github.com/JohnnyMorganz/StyLua/pull/916](https://redirect.github.com/JohnnyMorganz/StyLua/pull/916) *** #### \[2.0.0] - 2024-11-17 ##### Breaking Changes - For automated downloaders: the legacy release artifacts `stylua-win64.zip`, `stylua-linux.zip` and `stylua-macos.zip` are no longer produced in GitHub releases, in favour of more specific names (e.g., `stylua-windows-x86_64`, `stylua-linux-x86_64` and `stylua-macos-x86_64`). - `--stdin-filepath` no longer respects ignore files by default, in line with passing files directly to the command line. Now, `stylua --stdin-filepath foo.lua -` will still format the stdin even if `foo.lua` was in a `.styluaignore` file. Use `--respect-ignores` to preserve the original behaviour. - Removed deprecated access patterns on `Config` struct in stylua Rust library ##### Added - Added runtime syntax configuration option `syntax` to help handle ambiguous syntax. By default, StyLua builds and runs with a parser to handle all Lua versions. However, the syntax of some Lua versions conflict with eachother: most notably, Lua 5.2+ goto label syntax `::label::` and Luau type assertion operator `::`. This option allows choosing what syntax to parse, to handle these conflicts. ([#​407](https://redirect.github.com/JohnnyMorganz/StyLua/issues/407)) - Added configuration option `space_after_function_names` to specify whether to include a space between a function name and parentheses ([#​839](https://redirect.github.com/JohnnyMorganz/StyLua/issues/839)) ##### Changed - Update internal Lua parser version (full-moon) to v1.1.0. This includes parser performance improvements. ([#​854](https://redirect.github.com/JohnnyMorganz/StyLua/issues/854)) - LuaJIT is now separated from Lua52, and is available in its own feature and syntax flag - `.stylua.toml` config resolution now supports looking up config files next to files being formatted, recursively going upwards until reaching the current working directory, then stopping (unless `--search-parent-directories` was specified). For example, for a file `./src/test.lua`, executing `stylua src/` will look for `./src/stylua.toml` and then `./stylua.toml`. - When `collapse_simple_statement` is enabled, if the enclosing block is a return, we will check if the return expression is "simple" (currently, not containing a function definition) ([#​898](https://redirect.github.com/JohnnyMorganz/StyLua/issues/898)) ##### Fixed - Fixed formatting of method call chain when there is a comment between the colon token `:` and the function name ([#​890](https://redirect.github.com/JohnnyMorganz/StyLua/issues/890)) - Removed accidental random print to stdout when formatting a return statement across multiple lines ([#​879](https://redirect.github.com/JohnnyMorganz/StyLua/issues/879)) - Luau: Fixed incorrect removal of semicolon before compound assignment with parentheses leading to ambiguous syntax error ([#​885](https://redirect.github.com/JohnnyMorganz/StyLua/issues/885)) - Luau: Fixed incorrect collapsing of union/intersection type value with comments in a type table leading to a syntax error ([#​893](https://redirect.github.com/JohnnyMorganz/StyLua/issues/893)) - Fixed `--verify` panicing due to overflow for very large Hex numbers ([#​875](https://redirect.github.com/JohnnyMorganz/StyLua/issues/875), [#​889](https://redirect.github.com/JohnnyMorganz/StyLua/issues/889)) *** #### What's Changed - feat(wasm): Support more targets by [@​magic-akari](https://redirect.github.com/magic-akari) in [https://github.com/JohnnyMorganz/StyLua/pull/848](https://redirect.github.com/JohnnyMorganz/StyLua/pull/848) - fix(stylua-npm-bin): adjust axios config to work with proxy env variables by [@​antoineauger](https://redirect.github.com/antoineauger) in [https://github.com/JohnnyMorganz/StyLua/pull/868](https://redirect.github.com/JohnnyMorganz/StyLua/pull/868) - Apply clippy suggestions by [@​alerque](https://redirect.github.com/alerque) in [https://github.com/JohnnyMorganz/StyLua/pull/870](https://redirect.github.com/JohnnyMorganz/StyLua/pull/870) - deps: bump libc from 0.2.148 to 0.2.155 by [@​huajingyun01](https://redirect.github.com/huajingyun01) in [https://github.com/JohnnyMorganz/StyLua/pull/862](https://redirect.github.com/JohnnyMorganz/StyLua/pull/862) - Add option for formatting with spaces between function names and arguments by [@​alerque](https://redirect.github.com/alerque) in [https://github.com/JohnnyMorganz/StyLua/pull/839](https://redirect.github.com/JohnnyMorganz/StyLua/pull/839) - Fix method call chain formatting with inline comments by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/904](https://redirect.github.com/JohnnyMorganz/StyLua/pull/904) - Fix incorrect removal of semicolon before compound assignment causing ambiguous syntax error by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/905](https://redirect.github.com/JohnnyMorganz/StyLua/pull/905) - Don't collapse compound type field if it contains comments by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/906](https://redirect.github.com/JohnnyMorganz/StyLua/pull/906) - Remove accidental print when formatting hanging returns by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/907](https://redirect.github.com/JohnnyMorganz/StyLua/pull/907) - Update documentation of 'opinionated' to reflect project goals by [@​alerque](https://redirect.github.com/alerque) in [https://github.com/JohnnyMorganz/StyLua/pull/909](https://redirect.github.com/JohnnyMorganz/StyLua/pull/909) - Update to new full-moon version v1.1.1 by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/854](https://redirect.github.com/JohnnyMorganz/StyLua/pull/854) - Remove legacy release artifacts from GitHub releases by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/911](https://redirect.github.com/JohnnyMorganz/StyLua/pull/911) - Don't ignore by default with `--stdin-filepath`, use `--respect-ignores` by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/912](https://redirect.github.com/JohnnyMorganz/StyLua/pull/912) - Update VSCode extension to use stdin-filepath and respect-ignores by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/913](https://redirect.github.com/JohnnyMorganz/StyLua/pull/913) - Update to full-moon 1.1.2 by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/920](https://redirect.github.com/JohnnyMorganz/StyLua/pull/920) - Improve error reporting on full moon errors by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/921](https://redirect.github.com/JohnnyMorganz/StyLua/pull/921) - Switch to closest file configuration resolution by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/916](https://redirect.github.com/JohnnyMorganz/StyLua/pull/916) - Remove deprecated access patterns on `Config` struct by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/922](https://redirect.github.com/JohnnyMorganz/StyLua/pull/922) - collapse_simple_stmt: check if return expressions are "simple" by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/923](https://redirect.github.com/JohnnyMorganz/StyLua/pull/923) - Update contents of readme about syntax selection by [@​JohnnyMorganz](https://redirect.github.com/JohnnyMorganz) in [https://github.com/JohnnyMorganz/StyLua/pull/914](https://redirect.github.com/JohnnyMorganz/StyLua/pull/914) #### New Contributors - [@​magic-akari](https://redirect.github.com/magic-akari) made their first contribution in [https://github.com/JohnnyMorganz/StyLua/pull/848](https://redirect.github.com/JohnnyMorganz/StyLua/pull/848) - [@​antoineauger](https://redirect.github.com/antoineauger) made their first contribution in [https://github.com/JohnnyMorganz/StyLua/pull/868](https://redirect.github.com/JohnnyMorganz/StyLua/pull/868) - [@​alerque](https://redirect.github.com/alerque) made their first contribution in [https://github.com/JohnnyMorganz/StyLua/pull/870](https://redirect.github.com/JohnnyMorganz/StyLua/pull/870) - [@​huajingyun01](https://redirect.github.com/huajingyun01) made their first contribution in [https://github.com/JohnnyMorganz/StyLua/pull/862](https://redirect.github.com/JohnnyMorganz/StyLua/pull/862) **Full Changelog**: https://github.com/JohnnyMorganz/StyLua/compare/v0.20.0...v2.0.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.