pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/stylua



Module Name:    pkgsrc
Committed By:   nikita
Date:           Wed Mar 29 19:27:25 UTC 2023

Modified Files:
        pkgsrc/devel/stylua: Makefile cargo-depends.mk distinfo

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/stylua/Makefile \
    pkgsrc/devel/stylua/cargo-depends.mk pkgsrc/devel/stylua/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/stylua/Makefile
diff -u pkgsrc/devel/stylua/Makefile:1.1 pkgsrc/devel/stylua/Makefile:1.2
--- pkgsrc/devel/stylua/Makefile:1.1    Mon Jan  9 17:48:34 2023
+++ pkgsrc/devel/stylua/Makefile        Wed Mar 29 19:27:25 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2023/01/09 17:48:34 nikita Exp $
+# $NetBSD: Makefile,v 1.2 2023/03/29 19:27:25 nikita Exp $
 
-DISTNAME=      stylua-0.15.3
+DISTNAME=      stylua-0.17.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=JohnnyMorganz/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
Index: pkgsrc/devel/stylua/cargo-depends.mk
diff -u pkgsrc/devel/stylua/cargo-depends.mk:1.1 pkgsrc/devel/stylua/cargo-depends.mk:1.2
--- pkgsrc/devel/stylua/cargo-depends.mk:1.1    Mon Jan  9 17:48:34 2023
+++ pkgsrc/devel/stylua/cargo-depends.mk        Wed Mar 29 19:27:25 2023
@@ -1,4 +1,4 @@
-# $NetBSD: cargo-depends.mk,v 1.1 2023/01/09 17:48:34 nikita Exp $
+# $NetBSD: cargo-depends.mk,v 1.2 2023/03/29 19:27:25 nikita Exp $
 
 CARGO_CRATE_DEPENDS+=  aho-corasick-0.7.18
 CARGO_CRATE_DEPENDS+=  anyhow-1.0.53
@@ -29,11 +29,12 @@ CARGO_CRATE_DEPENDS+=       derive_more-0.99.1
 CARGO_CRATE_DEPENDS+=  difflib-0.4.0
 CARGO_CRATE_DEPENDS+=  doc-comment-0.3.3
 CARGO_CRATE_DEPENDS+=  dtoa-0.4.8
+CARGO_CRATE_DEPENDS+=  ec4rs-1.0.1
 CARGO_CRATE_DEPENDS+=  either-1.6.1
 CARGO_CRATE_DEPENDS+=  encode_unicode-0.3.6
 CARGO_CRATE_DEPENDS+=  env_logger-0.9.0
 CARGO_CRATE_DEPENDS+=  fnv-1.0.7
-CARGO_CRATE_DEPENDS+=  full_moon-0.16.2
+CARGO_CRATE_DEPENDS+=  full_moon-0.17.0
 CARGO_CRATE_DEPENDS+=  full_moon_derive-0.11.0
 CARGO_CRATE_DEPENDS+=  globset-0.4.8
 CARGO_CRATE_DEPENDS+=  half-1.7.1
Index: pkgsrc/devel/stylua/distinfo
diff -u pkgsrc/devel/stylua/distinfo:1.1 pkgsrc/devel/stylua/distinfo:1.2
--- pkgsrc/devel/stylua/distinfo:1.1    Mon Jan  9 17:48:34 2023
+++ pkgsrc/devel/stylua/distinfo        Wed Mar 29 19:27:25 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2023/01/09 17:48:34 nikita Exp $
+$NetBSD: distinfo,v 1.2 2023/03/29 19:27:25 nikita Exp $
 
 BLAKE2s (aho-corasick-0.7.18.crate) = 8925e88e2df4b5ca3b31783f527e1bb31dbe27846f409f631148fa239f3b2935
 SHA512 (aho-corasick-0.7.18.crate) = 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00
@@ -87,6 +87,9 @@ Size (doc-comment-0.3.3.crate) = 4123 by
 BLAKE2s (dtoa-0.4.8.crate) = 90bfada76a479916b7bc440c61d4498628ae3c1a72b8ffcad8897ee9d991e2c9
 SHA512 (dtoa-0.4.8.crate) = fe1701ba2c40988b92f5f4ef78a8c81718b140ff8ca2d04023b09a89440e6ddb53ef36d1ebd9dd3e948428b361ed6611bd24ec1a31b5010c220c555e1f0bf6b8
 Size (dtoa-0.4.8.crate) = 16175 bytes
+BLAKE2s (ec4rs-1.0.1.crate) = b760e18435c5af883df3ec3dcb0bde8b43a87801922844a3df3d50c0fc79972c
+SHA512 (ec4rs-1.0.1.crate) = 3ba2167d2ac8df6cdaaaf2e26ae63d2238b267227803f0ea5152347835f6f538c9af2c054f5e3e1be50394bcc74882f63fa94d86d2d9e9f31b508bcf3c71dfc9
+Size (ec4rs-1.0.1.crate) = 18413 bytes
 BLAKE2s (either-1.6.1.crate) = 6bb7f6e21460b5351a6f5a377c2cf08d5e444c0fef34823941742c346e201965
 SHA512 (either-1.6.1.crate) = 4bfe56920e30cbc8eb4f90162db618f7dca653b42db35ab6a7045d3fd9a24ceb1778b1f79613850bdb1a87ad3794fa0d73015e46c48d513f368d8c3776fc9ddf
 Size (either-1.6.1.crate) = 13641 bytes
@@ -99,9 +102,9 @@ Size (env_logger-0.9.0.crate) = 33573 by
 BLAKE2s (fnv-1.0.7.crate) = ffa8e3e3e120c65486f2575822704aa79aac381f375d7295875475e36775ff09
 SHA512 (fnv-1.0.7.crate) = 2195a4b34a78e2dd9838caf0ee556bf87cbb4a8ef5505aac663b614eb59dcfc0c40f432463ede41ecca57bfe7711f72673d39a85fe03d426f1324097d5628334
 Size (fnv-1.0.7.crate) = 11266 bytes
-BLAKE2s (full_moon-0.16.2.crate) = f43e3b017ffe9c5aa85ef3474220e5005de8726cc1174d7f0ef3907b178bbabb
-SHA512 (full_moon-0.16.2.crate) = 80437e104d01bcde90c61f44ccd54e0b6be73d5cca5744e580beca5a348d39eddc95790da51de504c2330fb25fc065e4fc9bc38bb1182accdcc2648d55e9997f
-Size (full_moon-0.16.2.crate) = 261103 bytes
+BLAKE2s (full_moon-0.17.0.crate) = 3fbb1e87b5449b5f8709ddc074266652d758a77a306b00d093fefb5e6d113156
+SHA512 (full_moon-0.17.0.crate) = e1f3c4fd8a190c5bd6a137c914a71ec74c04d5f967df9e8ada91ca37a90d616126cbf40df65d567707d14633fa8d2f1173d300aa5d11c3ab4755ef9800cb6080
+Size (full_moon-0.17.0.crate) = 290644 bytes
 BLAKE2s (full_moon_derive-0.11.0.crate) = 1e0b9449f61562a119657f92b44c2e6c6f4d83f10fea40353261dec4c648a26c
 SHA512 (full_moon_derive-0.11.0.crate) = 81010081b196493009764764b03abfbf4b96b91b9dc411703162b2af9e2e27cafa69ae890e5ae648c66dae4c39f206af9190226868c4c0e7ba49e99e701f646a
 Size (full_moon_derive-0.11.0.crate) = 5356 bytes
@@ -294,9 +297,9 @@ Size (strum-0.24.1.crate) = 5636 bytes
 BLAKE2s (strum_macros-0.24.3.crate) = a39aeb3d6c3381b2292ad3d543b143c60be3dea37b78880d4643c8e767da5fa5
 SHA512 (strum_macros-0.24.3.crate) = 8276343808afe71d68d7984d5a223a4fc630df0adb5a547cbcc6912fbffcf7e4ad38f115888a2dd3a8443d6fa7b9c7726318d4f5d1ab43f463dd97ec20df9134
 Size (strum_macros-0.24.3.crate) = 20696 bytes
-BLAKE2s (stylua-0.15.3.tar.gz) = 0ef3f6475bf7d2830a12ac3dd11ad9d66162b2242724b916fe60508918e9875f
-SHA512 (stylua-0.15.3.tar.gz) = 4a61a16c09b9f89505c8dde98fc4e480bfb759ac1f0cd102d99efb671a781c2668f2a3b268ae74b2874207bb1119751689d74f70fc8f2d79d41e5bef1facd8dc
-Size (stylua-0.15.3.tar.gz) = 358365 bytes
+BLAKE2s (stylua-0.17.0.tar.gz) = 3d991df4e52c99e98a26a739c57e36e42791ec53806e843d37f89db86815f692
+SHA512 (stylua-0.17.0.tar.gz) = 7fbf743ef45c7a3e33d8b0fec906dd2c8a069a74d85f8e80ac55fb9072210f2ae22bcb12f357950c56bde4c90809932914688988d25f88252a8f6e5e4e96be70
+Size (stylua-0.17.0.tar.gz) = 373843 bytes
 BLAKE2s (syn-1.0.76.crate) = d952dae7f90462efb17767dccaa020f3ceb5b8f76d0e14212d23940ec9e41a76
 SHA512 (syn-1.0.76.crate) = 0f32138d219ca74fcff1ee5ee5bb89f965a30b74c10a040bd8361332cb84900322194dd85ad7571c4bce72c1f66368546db5881165939800f2587b15ce07298a
 Size (syn-1.0.76.crate) = 233723 bytes



Home | Main Index | Thread Index | Old Index