-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency johnnymorganz/stylua to v2 - autoclosed #484
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 18, 2024 22:18
ed91539
to
43d7b93
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 19, 2024 10:28
2deb722
to
5389741
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 20, 2024 01:09
6875c53
to
5a30bd7
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 20, 2024 20:43
5f3a871
to
30e6410
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 21, 2024 02:23
8e38d8c
to
fcc5a0a
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 21, 2024 10:27
0702f05
to
f91bd9e
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 21, 2024 22:05
35a3343
to
5e33ed7
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 22, 2024 04:13
5be5213
to
80be441
Compare
renovate
bot
force-pushed
the
renovate/johnnymorganz-stylua-2.x
branch
from
November 22, 2024 18:13
6b38393
to
b8f9031
Compare
renovate
bot
changed the title
chore(deps): update dependency johnnymorganz/stylua to v2
chore(deps): update dependency johnnymorganz/stylua to v2 - autoclosed
Nov 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
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 (JohnnyMorganz/StyLua)
v2.0.1
Compare Source
[2.0.1] - 2024-11-18
Added
Fixed
stylua.toml
file (#925)Full Changelog: JohnnyMorganz/StyLua@v2.0.0...v2.0.1
v2.0.0
Compare Source
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
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: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
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 thestylua.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
[2.0.0] - 2024-11-17
Breaking Changes
stylua-win64.zip
,stylua-linux.zip
andstylua-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
andstylua-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 iffoo.lua
was in a.styluaignore
file. Use--respect-ignores
to preserve the original behaviour.Config
struct in stylua Rust libraryAdded
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)space_after_function_names
to specify whether to include a space between a function name and parentheses (#839)Changed
.stylua.toml
config resolution now supports looking up config files next to files being formatted, recursively goingupwards until reaching the current working directory, then stopping (unless
--search-parent-directories
was specified).For example, for a file
./src/test.lua
, executingstylua src/
will look for./src/stylua.toml
and then./stylua.toml
.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)Fixed
:
and the function name (#890)--verify
panicing due to overflow for very large Hex numbers (#875, #889)What's Changed
--stdin-filepath
, use--respect-ignores
by @JohnnyMorganz in https://github.com/JohnnyMorganz/StyLua/pull/912Config
struct by @JohnnyMorganz in https://github.com/JohnnyMorganz/StyLua/pull/922New Contributors
Full Changelog: JohnnyMorganz/StyLua@v0.20.0...v2.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.