The NetBSD Project

CVS log for pkgsrc/devel/stylua/distinfo

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / stylua

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Apr 13 12:35:16 2023 UTC (3 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, HEAD
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +16 -22 lines
stylua: fix distinfo after update

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Mar 29 19:27:25 2023 UTC (3 years, 7 months ago) by nikita
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -7 lines
stylua: update to version 0.17.0

ChangeLog:

0.17.0 - 2023-03-11
Added

    Added support for "sort requires", which sorts top-level statements of the form local NAME = require(EXPR) lexicographically on NAME. We do this by treating a group of consecutive requires as a "block", and then sorting only within the block. Any other statement, or an empty line, between require statements will split the group into two separate blocks (and can be used to separate the sorting). A block of requires will not move around the file. Roblox Luau statements of the form local NAME = game:GetService(EXPR) will also be sorted separately.

This feature is disabled by default. To enable it, add the following to your stylua.toml:

[sort_requires]
enabled = true

Note: we assume that all requires are pure with no side effects. It is not recommended to use this feature if the ordering of your requires matter.

    Added support for EditorConfig, which is taken into account only if no stylua.toml was found.

This feature is enabled by default, it can be disabled using --no-editorconfig.

    Published StyLua to the Docker Hub

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)
    Fixed verify AST flagging a false positive for parentheses removed around a Luau type (#643)

0.16.0 - 2023-01-15
Added

    Unnecessary parentheses around Luau types will now be removed (#611)
    Collapse a body containing only a goto statement when collapse_simple_statement is set (#618)

Changed

    Update internal parser:
        (lua52) Support Lua 5.2 fractional hexidecimal / hexidecimal with exponents (#621)
        (lua52) Support LuaJIT number suffixes LL/ULL/i (#621)
        (lua52) Support \z escape sequences in strings (#613)
        (luau) Support Luau string interpolation (#607)
    Several optimisations applied to formatting functions to reduce time taken. Files which previously did not terminate (6MB+) now finish in reasonable time. (#591)
    Assignments of the form local name = function will no longer hang at the equals token, and instead force parameters multiline, to reduce unnecessary indentation. (#595)

Fixed

    Fixed an anonymous function assignment local x = function() being unnecessarily indented if the function body contains a comment (#627)
    Fixed malformed formatting when there is a newline between a return token and the expressions (#605)
    Fixed malformed formatting of multi-assignment or multi-returns where there is a comment within the expressions list (#637)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jan 9 17:48:34 2023 UTC (3 years, 10 months ago) by nikita
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Import devel/stylua as stylua version 0.15.3

StyLua is an opinionated code formatter for Lua 5.1, 5.2, 5.3, 5.4, and Luau,
built using full-moon. StyLua is inspired by the likes of prettier, it parses
your Lua codebase, and prints it back out from scratch, enforcing a consistent
code style.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>