|
1 | 1 | <!-- NEWS.md is maintained by https://cynkra.github.io/fledge, do not edit --> |
2 | 2 |
|
3 | | -# styler 1.7.0.9003 |
4 | 3 |
|
5 | | -**Performance and code quality improvements** |
| 4 | +# styler 1.8.0 |
6 | 5 |
|
7 | | -- Use integer literals and avoid coercions where needed (\@IndrajeetPatil, #994). |
8 | | -- Don't preserve names for `unlist()` (\@IndrajeetPatil, #998). |
9 | | -- Remove unused variables (\@IndrajeetPatil, #999). |
10 | | -- Get rid of lints with performance implications (\@IndrajeetPatil, #1000). |
11 | | -- Use more efficient match() alternative (\@IndrajeetPatil, #1001). |
12 | | -- Don't use `nrow` arg in `new_tibble()` calls (\@IndrajeetPatil, #1003). |
13 | | -- Performance improvements with `if()` + `else()` instead of `ifelse()` (\@IndrajeetPatil, #1006). |
14 | | -- Replace tibbles with data frames to improve performance (\@IndrajeetPatil, #1007). |
15 | | -- Simplify `styler_df()` signature (\@IndrajeetPatil, #1009). |
16 | | -- Minor cleanup (\@IndrajeetPatil, #1016). |
| 6 | +{styler} 1.8.0 comes with a host of new features, around 40% speed improvement, |
| 7 | +bug fixes and the removal of 8 recursive dependencies. We also welcome |
| 8 | +\@IndrajeetPatil as a new contributor to {styler}, who has contributed |
| 9 | +significantly to this and and previous releases. |
17 | 10 |
|
| 11 | +**Features** |
18 | 12 |
|
19 | | -**Dependency related changes** |
| 13 | +- `style_dir()` and `style_pkg()` now default to styling all supported file |
| 14 | + formats (`.R`, `.Rmd`, `.Rmarkdown`, `.Rnw`, and `.qmd`) in the (package) |
| 15 | + directory (#965, #931, #1033). |
| 16 | +- `style_pkg()` now excludes the auto-generated `R/cpp11.R` file (#977). |
| 17 | +- minimum needed R version is now bumped to `3.5` (#986). |
20 | 18 |
|
21 | | -- Don't import entire tibble package (\@IndrajeetPatil, #1007). |
22 | | -- Drop {rematch2} dependency (\@IndrajeetPatil, #1011). |
| 19 | +- alignment is now detected for function declaration in a similar way as for |
| 20 | + function calls (#968). |
| 21 | +- new R option `styler.ignore_alignment` controls if alignment should be |
| 22 | + detected (and preserved) or not (#932). |
23 | 23 |
|
24 | | -**Other changes** |
25 | 24 |
|
26 | | -- Add flags to skip code coverage for zzz.R (\@IndrajeetPatil, #1005). |
| 25 | +**Bug Fixes** |
27 | 26 |
|
| 27 | +- alignment is detected in `tibble::tribble()` (and similar) calls with more |
| 28 | + than 3 columns when left aligned (#945). |
28 | 29 |
|
29 | | -# styler 1.7.0.9002 (Development version) |
| 30 | +- fix alignment detection for one column, mixed named/unnamed (#1035). |
30 | 31 |
|
31 | | -- Same as previous version. |
| 32 | +- if there are only empty lines in a code chunk, they are all removed (#936). |
32 | 33 |
|
| 34 | +- apply rules for [ to [[ and its closing counterpair (#1030) |
33 | 35 |
|
34 | | -# styler 1.7.0.9000 |
| 36 | +- there is now at most one line break after `{` and before `#` (#952, #1022). |
35 | 37 |
|
36 | | -**User-facing changes** |
| 38 | +- line breaks may be added to function calls to ensure indention symmetry for |
| 39 | + round braces (#975). |
37 | 40 |
|
38 | | -- `style_dir()` and `style_pkg()` now default to styling all supported file |
39 | | - formats (`.R`, `.Rmd`, `.Rmarkdown`, `.Rnw`, and `.qmd`) in the (package) |
40 | | - directory (\@IndrajeetPatil, #965, #931). |
41 | | -- `style_pkg()` now excludes the auto-generated `R/cpp11.R` file (#977). |
42 | | -- Minimum needed R version is now bumped to `3.5` (\@IndrajeetPatil, #986). |
| 41 | +- the cache is also invalidated on changing the stylerignore markers (#932). |
43 | 42 |
|
44 | | -**Features** |
| 43 | +- `{` is not put on a new line after `=` and in `function() {` for some edge |
| 44 | +cases (#939). |
45 | 45 |
|
46 | | -- alignment is now detected for function declaration in a similar way as for |
47 | | - function calls (#968). |
48 | | -- new R option `styler.ignore_alignment` controls if alignment should be |
49 | | - detected (and preserved) or not (#932). |
| 46 | +- `while ({})` statements are now handled the same way as function statements |
| 47 | + with regards to breaking lines (#967). |
50 | 48 |
|
51 | | -**Bug Fixes** |
| 49 | +- parsing of {roxygen2} example comments now also works for edge cases when |
| 50 | + there is no literal code immediately following after the end of the example |
| 51 | + section (#940). |
52 | 52 |
|
53 | | -- alignment is detected in `tibble::tribble()` (and similar) calls with more |
54 | | - than 3 columns when left aligned (#945). |
| 53 | +- files with no tokens in it are now transformed into zero-byte files (#962). |
| 54 | + |
| 55 | +**Documentation** |
| 56 | + |
| 57 | +- old (and outdated) vignettes have been removed (#955). To access them, do |
| 58 | + `git checkout v1.0.0`. |
| 59 | +- minor improvements to the documentation (#958). |
| 60 | +- turned off `styler.colored_print.vertical` in vignettes so ANSI output of |
| 61 | + {prettycode} not messing with {pkgdown} (#956, #957). |
55 | 62 |
|
56 | | -- If there are only empty lines in a code chunk, they are all removed (#936). |
57 | 63 |
|
58 | | -- There is now always one line break after `{` and before `#` (#952). |
| 64 | +**Performance and code quality improvements** |
59 | 65 |
|
60 | | -- Line breaks may be added to function calls to ensure indention symmetry for |
61 | | - round braces (#975). |
| 66 | +- use integer literals and avoid coercions where needed (#994). |
| 67 | +- don't preserve names for `unlist()` (#998). |
| 68 | +- remove unused variables (#999). |
| 69 | +- get rid of lints with performance implications (#1000). |
| 70 | +- use more efficient match() alternative (#1001). |
| 71 | +- don't use `nrow` arg in `new_tibble()` calls (#1003). |
| 72 | +- performance improvements with `if()` + `else()` instead of `ifelse()` (#1006). |
| 73 | +- replace tibbles with data frames to improve performance (#1007). |
| 74 | +- simplify `styler_df()` signature (#1009). |
| 75 | +- minor cleanup (#1016). |
| 76 | +- non-exported and unused functions `odd()` and `even()` were removed |
| 77 | + (#989). |
| 78 | +- all (R)md files in this project's source code are now formatted with default |
| 79 | + pandoc markdown formatter. This conversion is required when using the visual |
| 80 | + mode in RStudio (#941). |
| 81 | +- improved code quality by fixing {lintr} warnings (#960, #1028). |
62 | 82 |
|
63 | | -- the cache is also invalidated on changing the stylerignore markers (#932). |
64 | 83 |
|
65 | | -- `{` is not put on a new line after `=` and in `function() {` for some edge |
66 | | - cases (#939). |
| 84 | +**Dependency related changes** |
67 | 85 |
|
68 | | -- `while ({})` statements are now handled the same way as function statements |
69 | | - with regards to breaking lines (#967). |
| 86 | +In total, 8 recursive dependencies are removed: {ellipsis}, {pillar}, |
| 87 | +{rematch2}, {tibble}, {utf8}, {fansi}, {lifecycle}, {pkgconfig}. |
70 | 88 |
|
71 | | -- Parsing of {roxygen2} example comments now also works for edge cases when |
72 | | - there is no literal code immediately following after the end of the example |
73 | | - section (#940). |
| 89 | +- don't import entire tibble package (#1007). |
| 90 | +- drop {rematch2} dependency (#1011). |
74 | 91 |
|
75 | | -- Files with no tokens in it are now transformed into zero-byte files (#962). |
76 | 92 |
|
77 | | -**Other** |
| 93 | +**Infrastructure** |
78 | 94 |
|
79 | | -- \@IndrajeetPatil is now a contributor to {styler}. Welcome and thanks for |
80 | | - everything you did so far! (#988). |
81 | | -- Old (and outdated) vignettes have been removed (\@IndrajeetPatil, #955). To |
82 | | - access them, do `git checkout v1.0.0`. |
83 | | -- Minor improvements to the documentation (\@IndrajeetPatil, #958). |
84 | | -- turned off `styler.print.Vertical` in vignettes so ANSI output of |
85 | | - {prettycode} not messing with {pkgdown} (\@IndrajeetPatil, #956, #957). |
86 | | -- Non-exported and unused functions `odd()` and `even()` were removed |
87 | | - (\@IndrajeetPatil, #989). |
88 | | -- Upgrade testing infra to testthat 3e (\@IndrajeetPatil, #949). |
89 | | -- All (R)md files in this project's source code are now formatted with |
90 | | - default pandoc markdown formatter. This conversion is required when using |
91 | | - the visual mode in RStudio (#941). |
92 | | -- Update {pkgdown} action to always build, but only deploy on default branch |
93 | | - (#946). |
94 | | -- Better stack tracing for profiling (#979, #980). |
95 | | -- Improved code quality by fixing {lintr} warnings (#960). |
96 | | -- Error now on R CMD note (\@IndrajeetPatil, #987). |
97 | | -- Test on latest Ubuntu instead of Ubuntu 18.04 (#982). |
98 | | -- Run tests in parallel (#978, \@krlmlr). |
| 95 | +- upgrade testing infra to testthat 3e (#949). |
| 96 | +- run tests in parallel (#978). |
| 97 | +- run some tests sequentially (#1031) |
| 98 | +- better stack tracing for profiling (#979, #980). |
| 99 | +- add flags to skip code coverage for zzz.R (#1005). |
| 100 | +- error now on R CMD note (#987). |
| 101 | +- test on latest Ubuntu instead of Ubuntu 18.04 (#982). |
| 102 | +- use latest GitHub Actions for R (#1034). |
| 103 | +- update {pkgdown} action to always build, but only deploy on default branch |
| 104 | + (#946). |
| 105 | +- remove pre-commit push hook for news entry (#1023). |
| 106 | + |
| 107 | +A big hand to everyone who made this release possible: |
| 108 | + |
| 109 | +[@behrman](https://github.com/behrman), |
| 110 | +[@EngineerDanny](https://github.com/EngineerDanny), [@gavinsimpson](https://github.com/gavinsimpson), [@IndrajeetPatil](https://github.com/IndrajeetPatil), [@jabenninghoff](https://github.com/jabenninghoff), |
| 111 | +[@krlmlr](https://github.com/krlmlr), |
| 112 | +[@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), |
| 113 | +[@sgorm123](https://github.com/sgorm123), [@stefanoborini](https://github.com/stefanoborini), and [@wdkrnls](https://github.com/wdkrnls). |
99 | 114 |
|
100 | 115 | # styler 1.7.0 |
101 | 116 |
|
|
0 commit comments