diff --git a/NEWS.md b/NEWS.md index 62b3d4d5b..517d8d2fb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,76 @@ -# styler 1.10.3 +# {styler} 1.11.0 + +This release fixes a bug related that prevented {styler} to format code with +comments in curly-curly expressions `{{` (#1269). +[@IndrajeetPatil](https://github.com/IndrajeetPatil) is now a package +author. Thanks for your many contributions. + +**New features** + +- Add support for {webr} code chunks in Rmd/qmd documents (#1229). +- Add colored output to R API (#1187). + +**Major changes** + +- Ensure {styler} can format code with comment in curly-curly (#1269). +- Adapt to single indent semantics in style guide (#1235). +- Remove excessive line breaks between top-level expressions (#1239). +- Remove blank lines after opening and before closing braces (#1995). +- Empty curly have no spaces around (#1234). +- Remove spaces around dollar operator (#1246). +- Improve stack trace styler throws on parse error (#1216). +- Use Bootstrap 5 template for pkgdown website (#1209). +- Complete third-party style guide documentation (#1201). +- Document package options (#1193). +- Bump minimum needed R version to 4.0 (#1197). + +**Minor changes** + +- Ensure formatted token is a call before forcing line breaks (#1254). +- Fix lints (#1260), update `.lintr` file. +- Use `all_linters()` instead of using tags (#1207). +- Fix `paste_linter()` lints (#1204). +- Turn off `strings_as_factors_linter()` (#1217). +- Update precommit config (#1205). +- Remove unused `extend_if_comment()` internal (#1250). +- Remove unused internal utility: `calls_sys()` (#1213). +- Remove unused testing helper: `generate_test_samples()` (#1212). +- Improve a few function names (#1249). +- Use `expect_no_warning()` (#1248). +- Update WORDLIST (#1240, #1210). +- Check for warnings in examples and tests (#1219). +- Use stable version of {purrr} (#1215). +- Don't store code tree structures in tests (#1208). +- Update touchstone config (#1203). +- Add non-US locale and use pak to upgrade packages in GHA (#1200). +- Welcome Indrajeet as author (#1198). + +Thanks for everyone who contributed to this release: +[@armenic](https://github.com/armenic), +[@bernt-matthias](https://github.com/bernt-matthias), +[@cicdguy](https://github.com/cicdguy), +[@elgabbas](https://github.com/elgabbas), +[@fh-mthomson](https://github.com/fh-mthomson), +[@IndrajeetPatil](https://github.com/IndrajeetPatil), +[@kevinushey](https://github.com/kevinushey), +[@kongdd](https://github.com/kongdd), +[@krlmlr](https://github.com/krlmlr), +[@lorenzwalthert](https://github.com/lorenzwalthert), +[@maikol-solis](https://github.com/maikol-solis), +[@MichaelChirico](https://github.com/MichaelChirico), +[@nickhir](https://github.com/nickhir), +[@obsaditelnost](https://github.com/obsaditelnost), +[@olivroy](https://github.com/olivroy), +[@rinkjames](https://github.com/rinkjames), +[@SamGG](https://github.com/SamGG), +[@stibu81](https://github.com/stibu81), +[@strengejacke](https://github.com/strengejacke), +[@wiper8](https://github.com/wiper8), and +[@wurli](https://github.com/wurli). + +# {styler} 1.10.3 This release was requested by the CRAN team since parser error messages changed, which were hard-coded in some unit tests (#1180). @@ -32,7 +102,7 @@ We thank everyone who helped making this release possible. [@AshesITR](https://github.com/AshesITR), [@averissimo](https://github.com/averissimo), [@IndrajeetPatil](https://github.com/IndrajeetPatil), [@lorenzwalthert](https://github.com/lorenzwalthert), [@mcanouil](https://github.com/mcanouil), [@moodymudskipper](https://github.com/moodymudskipper), [@olivroy](https://github.com/olivroy), [@sbanville-delfi](https://github.com/sbanville-delfi), [@sorhawell](https://github.com/sorhawell), [@ssh352](https://github.com/ssh352), [@swo](https://github.com/swo), and [@vertesy](https://github.com/vertesy). -# styler 1.10.2 +# {styler} 1.10.2 This release was requested by the CRAN team to fix CRAN warning on invalid numeric version inputs (#1143). @@ -50,7 +120,7 @@ We thank everyone who helped making this release possible. [@krlmlr](https://github.com/krlmlr), [@lorenzwalthert](https://github.com/lorenzwalthert), [@MichaelChirico](https://github.com/MichaelChirico), [@olivroy](https://github.com/olivroy), [@rkrug](https://github.com/rkrug), and [@rossdrucker](https://github.com/rossdrucker). -# styler 1.10.1 +# {styler} 1.10.1 This release was requested by CRAN due to accidentally populating a user cache while building vignettes for R >= 4.3.0. @@ -59,7 +129,7 @@ This release was requested by CRAN due to accidentally populating a user cache w Thanks to everyone who contributed to this release: [@olivroy](https://github.com/olivroy) and [@krlmlr](https://github.com/krlmlr). -# styler 1.10.0 +# {styler} 1.10.0 This release contains speed-ups between 20% and 40% depending on your use case thanks to replacing {base} functionality with {vctrs} (#1114). With the speed @@ -85,7 +155,7 @@ Thanks for everyone contributing to this release: [@IndrajeetPatil](https://github.com/IndrajeetPatil), [@krlmlr](https://github.com/krlmlr), [@kyleam](https://github.com/kyleam), [@MichaelChirico](https://github.com/MichaelChirico), [@mvanaman](https://github.com/mvanaman), [@olivroy](https://github.com/olivroy), and [@vvarik](https://github.com/vvarik). -# styler 1.9.1 +# {styler} 1.9.1 **Bug fixes** @@ -105,7 +175,7 @@ Thanks for everyone who contributed to this release: [@dpprdan](https://github.com/dpprdan), [@flying-sheep](https://github.com/flying-sheep), [@giocomai](https://github.com/giocomai) and [@MichaelChirico](https://github.com/MichaelChirico). -# styler 1.9.0 +# {styler} 1.9.0 **Features** @@ -170,7 +240,7 @@ A big shout out to anyone who contributed to this release: [@juliangrimm225](https://github.com/) and [@krlmlr](https://github.com/krlmlr). -# styler 1.8.1 +# {styler} 1.8.1 **Features** @@ -201,7 +271,7 @@ Dave Jarvis, [@Robinlovelace](https://github.com/Robinlovelace). -# styler 1.8.0 +# {styler} 1.8.0 {styler} 1.8.0 comes with a host of new features, around 40% speed improvement, bug fixes and the removal of 8 recursive dependencies. We also welcome @@ -312,7 +382,7 @@ A big hand to everyone who made this release possible: [@lorenzwalthert](https://github.com/lorenzwalthert), [@MichaelChirico](https://github.com/MichaelChirico), [@moodymudskipper](https://github.com/moodymudskipper), [@RaymondBalise](https://github.com/RaymondBalise), [@Robinlovelace](https://github.com/Robinlovelace), [@sebffischer](https://github.com/sebffischer), [@sgorm123](https://github.com/sgorm123), [@stefanoborini](https://github.com/stefanoborini), and [@wdkrnls](https://github.com/wdkrnls). -# styler 1.7.0 +# {styler} 1.7.0 - if `else` follows directly after `if`, line breaks are removed (#935). @@ -426,11 +496,11 @@ Thanks to all contributors that made this release possible: [\@ssh352](https://github.com/ssh352), and [\@xjtusjtu](https://github.com/xjtusjtu). -# styler 1.6.2 +# {styler} 1.6.2 - clean up cache files older than one week (#842). -# styler 1.6.1 +# {styler} 1.6.1 - Files with `.Rmarkdown` extension are now recognized as an R markdown files in `style_file()` and friends (#824). @@ -465,7 +535,7 @@ We'd like to thank all people who helped making this release possible: [\@lorenzwalthert](https://github.com/lorenzwalthert), and [\@MichaelChirico](https://github.com/MichaelChirico). -# styler 1.5.1 +# {styler} 1.5.1 ## Alignment detection @@ -568,7 +638,7 @@ release of styler through their contributions in issues and pull requests: [\@RoyalTS](https://github.com/RoyalTS), and [\@russHyde](https://github.com/russHyde). -# styler 1.4.1 +# {styler} 1.4.1 - fix interaction between cache and `base_indention`. This also fixes the Addin for styling a selection with base indention repeatedly (#764). @@ -582,7 +652,7 @@ Thanks to everyone who contributed to this release: [\@lorenzwalthert](https://github.com/lorenzwalthert), and [\@renkun-ken](https://github.com/renkun-ken). -# styler 1.4.0 +# {styler} 1.4.0 ## API Changes @@ -726,7 +796,7 @@ Thanks to all the people who made this release possible: [\@swsoyee](https://github.com/swsoyee), and [\@Winterstorm-j](https://github.com/Winterstorm-j). -# styler 1.3.2 +# {styler} 1.3.2 Release upon request by the CRAN team. @@ -739,7 +809,7 @@ Release upon request by the CRAN team. - skip timing tests on CRAN as requested by CRAN team because they did not pass on all machines (#603). -# styler 1.3.1 +# {styler} 1.3.1 Emergency release. In case multiple expressions are on one line and only some of them are cached, styler can remove code. To reach this state, some of the @@ -766,7 +836,7 @@ We thank the people who have contributed to this release: [\@ellessenne](https://github.com/ellessenne) and [\@renkun-ken](https://github.com/renkun-ken). -# styler 1.3.0 +# {styler} 1.3.0 ## Breaking changes @@ -820,7 +890,7 @@ Thanks to all contributors involved, in particular [\@pat-s](https://github.com/pat-s), and [\@programming-wizard](https://github.com). -# styler 1.2.0 +# {styler} 1.2.0 ## Breaking changes @@ -899,7 +969,7 @@ Thanks to all contributors involved, in particular [\@pat-s](https://github.com/pat-s), \@reddy-ia, and [\@russHyde](https://github.com/russHyde) -# styler 1.1.1 +# {styler} 1.1.1 This is primarily a maintenance release upon the request of the CRAN team (#490). @@ -988,7 +1058,7 @@ Thanks to all contributors involved, in particular [\@wdearden](https://github.com/wdearden), [\@wmayner](https://github.com/wmayner), and \@yech1990. -# styler 1.1.0 +# {styler} 1.1.0 This release introduces new features and is fully backward-compatible. It also adapts to changes in the R parser committed into R devel (#419). @@ -1028,7 +1098,7 @@ Thanks to all contributors for patches, issues and the like: @jonmcalder, @krlmlr, @IndrajeetPatil, @kalibera, @Hasnep, @kiranmaiganji, @dirkschumacher, @ClaytonJY, @wlandau, @maurolepore -# styler 1.0.2 +# {styler} 1.0.2 This is a maintenance release without any breaking API changes. @@ -1059,7 +1129,7 @@ Thanks to all contributors for patches, issues and the like: @katrinleinweber, @krlmlr, @dchiu911, @ramnathv, @aedobbyn, @Bio7, @tonytonov, @samhinshaw, @fny, @vnijs, @martin-mfg, @NGaffney, @dchiu911. -# styler 1.0.1 +# {styler} 1.0.1 This is a maintenance release without any breaking API changes. @@ -1099,7 +1169,7 @@ Thanks to all contributors for patches, issues and the like: @devSJR, @klrmlr, @yutannihilation, @samhinshaw, @martin-mfg, @jjramsey, @RMHogervorst, @wlandau, @llrs, @aaronrudkin, @crew102, @jkgrain, @jennybc, @joranE. -# styler 1.0.0 +# {styler} 1.0.0 Initial release. diff --git a/inst/WORDLIST b/inst/WORDLIST index a6c3937ce..e3fa665a1 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -61,6 +61,7 @@ gadenbuie Gayathri getOption ggplot +GHA Github github gitsum @@ -119,6 +120,7 @@ oneliner ORCID ourself packrat +pak pandoc params parsable @@ -220,9 +222,11 @@ VignetteBuilder Visit'em walthert Walthert +webr winbuilder withr WN +WORDLIST www xaringan xfun