|
1 |
| -# styler 1.3.2.9000 (Development) |
| 1 | +# styler 1.4.0.9000 (Development) |
| 2 | + |
| 3 | +*No news yet* |
| 4 | + |
| 5 | +# styler 1.4.0 |
2 | 6 |
|
3 | 7 | ## API Changes
|
4 | 8 |
|
5 |
| -- `style_file()` and friends gain argument `dry` to control if changes should |
6 |
| - be applied to files or not (#634). |
| 9 | +**new** |
| 10 | + |
| 11 | +- `style_file()` and friends gain argument `dry` to control if changes should be |
| 12 | + applied to files or not (#634). |
7 | 13 |
|
8 | 14 | - `style_file()` and friends gain argument `base_indention` (defaulting to 0) to
|
9 |
| - control by how much the output code is indented (#649, #692). The Addin for |
10 |
| - styling a selection picks that up, e.g. you can style a function body and |
| 15 | + control by how much the output code is indented (#649, #692). The Addin for |
| 16 | + styling a selection picks that up, e.g. you can style a function body and |
11 | 17 | indention is preserved (#725).
|
12 |
| - |
13 |
| -- added an option (`styler.test_dir_writeable`) that changes test behavior |
14 |
| - to not directly modify test files in the current directory (#548). |
15 | 18 |
|
16 | 19 | - added an option for disabling all communication when using the package
|
17 | 20 | (`styler.quiet`) (#640).
|
18 | 21 |
|
19 | 22 | - `scope` in `tidyverse_style()` can now be specified with higher granularity
|
20 |
| - through `I()`, e.g. `I(c('spaces', 'tokens'))` allows us to style spaces and |
21 |
| - tokens without styling line breaks and indention. Previously, only a string |
22 |
| - was allowed and all less invasive scopes were included, e.g. if you wanted to |
23 |
| - style tokens, you had to always also style spaces, indention, line breaks as |
| 23 | + through `I()`, e.g. `I(c('spaces', 'tokens'))` allows us to style spaces and |
| 24 | + tokens without styling line breaks and indention. Previously, only a string |
| 25 | + was allowed and all less invasive scopes were included, e.g. if you wanted to |
| 26 | + style tokens, you had to always also style spaces, indention, line breaks as |
24 | 27 | well (#705, #707).
|
25 | 28 |
|
26 |
| -- New argument `transformers_drop` in `create_style_guide()` to be populated with |
27 |
| - new helper function `specify_transformers_drop()` for specifying conditions |
28 |
| - under which transformers are not going to be used and can therefore be |
29 |
| - omitted without effecting the result of styling (#711). |
| 29 | +- added an option (`styler.test_dir_writeable`) that changes test behavior to |
| 30 | + not directly modify test files in the current directory (#548). |
| 31 | + |
| 32 | +- New argument `transformers_drop` in `create_style_guide()` to be populated |
| 33 | + with new helper function `specify_transformers_drop()` for specifying |
| 34 | + conditions under which transformers are not going to be used and can therefore |
| 35 | + be omitted without effecting the result of styling (#711). |
| 36 | + |
| 37 | +**deprecated** |
| 38 | + |
| 39 | +- The environment variable `save_after_styling` is deprecated in favor of the R |
| 40 | + option `styler.save_after_styling` to control if a file is saved after styling |
| 41 | + with the RStudio Addin. Note than in RStudio >= 1.3.0, you can auto-save edits |
| 42 | + in general (Code -> Saving -> Auto-Save), e.g. on idle editor or focus loss, |
| 43 | + so this feature becomes less relevant (#631, #726). |
| 44 | + |
30 | 45 |
|
31 | 46 | ## Major changes
|
32 | 47 |
|
33 |
| -- Documentation overhaul: New README, new "Get started" pkgdown page, new |
34 |
| - vignettes on `strict = FALSE`, `Adoption` renamed to |
35 |
| - `Third-party integrations`, minor other consistency edits. |
36 |
| -- The environment variable `save_after_styling` is deprecated in favor of |
37 |
| - the R option `styler.save_after_styling` to control if a file is saved after |
38 |
| - styling with the RStudio Addin. Note than in RStudio >= 1.3.0, you can |
39 |
| - auto-save edits in general (Code -> Saving -> Auto-Save), e.g. on idle editor |
40 |
| - or focus loss, so this feature becomes less relevant (#631, #726). |
41 |
| -- blank lines in function calls and headers are now removed, for the former only |
42 |
| - when there are no comments before or after the blank line (#629, #630, #635, |
| 48 | +- styler is now distributed under the MIT license (#751). |
| 49 | + |
| 50 | +- Documentation overhaul: New README, new "Get started" pkgdown page, new |
| 51 | + vignettes on `strict = FALSE`, `Adoption` renamed to `Third-party |
| 52 | + integrations` (#741), adding search to pkgdown (#623), group functions in |
| 53 | + pkgdown reference page (#625), minor other doc improvements (#643, #618, #614, |
| 54 | + #677, #651, #667, #672, #687, #752, #754). |
| 55 | + |
| 56 | +- `@exampleIsf` roxygen tag for conditional examples is now supported (#743). |
| 57 | + |
| 58 | +- blank lines in function calls and headers are now removed, for the former only |
| 59 | + when there are no comments before or after the blank line (#629, #630, #635, |
43 | 60 | #723).
|
44 |
| -- speed improvements: ~10% when cache is activated because transformers are not |
45 |
| - captured as character anymore (#679), ~3% in low-level optimization (#691). |
46 |
| - 7% by requiring magrittr 2.0 (#681), ~8% by dropping unused transformers |
47 |
| - (#711), 4% by avoiding unnecessary sorting in internals (#739). |
48 |
| -- `#<<` is now recognized as the xaringan marker and no space is added after`#` |
| 61 | + |
| 62 | +- speed improvements: 15% faster on new code, 70% on repeated styling of |
| 63 | + compliant code (The latter is not so relevant because it was almost |
| 64 | + instantaneous already). Most relevant contributions were #679, #691, #681, |
| 65 | + #711, #739. |
| 66 | + |
| 67 | +- `#<<` is now recognized as the xaringan marker and no space is added after`#` |
49 | 68 | (#700).
|
50 | 69 |
|
51 | 70 | ## Minor changes and fixes
|
52 | 71 |
|
53 |
| -- `style_dir()` and `style_pkg()` now apply directory exclusion recursively with |
| 72 | +- `style_dir()` and `style_pkg()` now apply directory exclusion recursively with |
54 | 73 | `exclude_dirs` (#676).
|
55 |
| -- `switch()` now has line breaks after every argument to match the tidyverse |
| 74 | + |
| 75 | +- `switch()` now has line breaks after every argument to match the tidyverse |
56 | 76 | style guide (#722, #727).
|
57 |
| -- unary `+` before a function call does not give an error anymore, as before |
| 77 | + |
| 78 | +- unary `+` before a function call does not give an error anymore, as before |
58 | 79 | version 1.3.0 (#697).
|
59 |
| -- certain combinations of `stylerignore` markers and cached expressions now |
| 80 | + |
| 81 | +- certain combinations of `stylerignore` markers and cached expressions now |
60 | 82 | don't give an error anymore (#738).
|
| 83 | + |
61 | 84 | - cache is now correctly invalidated when style guide arguments change (#647).
|
| 85 | + |
62 | 86 | - empty lines are now removed between pipes and assignments (#645, #710).
|
63 |
| -- overhaul pgkdown site: Add search (#623), group function in Reference (#625). |
| 87 | + |
| 88 | +- multiple `@examples` roxygen tags in a code block of `#'` are no longer |
| 89 | + squashed (#748). |
| 90 | + |
| 91 | +- roxygen code examples starting on the same line as the `@examples` tag are no |
| 92 | + longer moved to the next line (#748). |
| 93 | + |
64 | 94 | - always strip trailing spaces and make cache insensitive to it (#626).
|
65 |
| -- `style_text()` can now style all input that `is.character()`, not just if it |
| 95 | + |
| 96 | +- `style_text()` can now style all input that `is.character()`, not just if it |
66 | 97 | inherits from classes `character`, `utf8` or `vertical` (#693).
|
| 98 | + |
67 | 99 | - logical operators within square braces are now moved from the start of a line
|
68 | 100 | to the end of the previous line (#709).
|
| 101 | + |
69 | 102 | - spaces are now removed before `[` and `[[` (#713).
|
70 |
| -- minor documentation improvements (#643, #618, #614, #677, #651, #667, #672, |
71 |
| - #687). |
72 |
| -- The internal `create_tree()` only used in testing of styler now works when the |
| 103 | + |
| 104 | +- The internal `create_tree()` only used in testing of styler now works when the |
73 | 105 | cache is activated (#688).
|
| 106 | + |
74 | 107 | - simplification of internals (#692).
|
75 |
| -- include `test-*` files in styling pre-commit hook (#724). |
76 | 108 |
|
77 | 109 | ## Infrastructure changes
|
78 | 110 |
|
79 | 111 | - switched from travis and AppVeyor to GitHub Actions (#653, #660).
|
80 |
| -- Added basic continuous benchmarking with [lorenzwalthert/touchstone](https://github.com/lorenzwalthert/touchstone) |
| 112 | + |
| 113 | +- Added basic continuous benchmarking with |
| 114 | + [lorenzwalthert/touchstone](https://github.com/lorenzwalthert/touchstone) |
81 | 115 | (#674, #684, #698).
|
82 | 116 |
|
| 117 | +- include `test-*` files in styling pre-commit hook (#724). |
| 118 | + |
| 119 | + |
| 120 | +Thanks to all the people who made this release possible: |
| 121 | + |
| 122 | +[@assignUser](https://github.com/assignUser), [@ColmanHumphrey](https://github.com/ColmanHumphrey), [@davidchall](https://github.com/davidchall), [@espinielli](https://github.com/espinielli), [@giko45](https://github.com/giko45), [@hadley](https://github.com/hadley), [@IndrajeetPatil](https://github.com/IndrajeetPatil), [@intiben](https://github.com/intiben), [@jamespeapen](https://github.com/jamespeapen), [@jthomasmock](https://github.com/jthomasmock), [@Kalaschnik](https://github.com/Kalaschnik), [@kevinushey](https://github.com/kevinushey), [@krlmlr](https://github.com/krlmlr), [@lcolladotor](https://github.com/lcolladotor), [@MichaelChirico](https://github.com/MichaelChirico), [@michaelquinn32](https://github.com/michaelquinn32), [@mine-cetinkaya-rundel](https://github.com/mine-cetinkaya-rundel), [@pat-s](https://github.com/pat-s), [@PMassicotte](https://github.com/PMassicotte), [@QuLogic](https://github.com/QuLogic), [@renkun-ken](https://github.com/renkun-ken), [@RichardJActon](https://github.com/RichardJActon), [@seed-of-apricot](https://github.com/seed-of-apricot), [@select-id-from-users](https://github.com/select-id-from-users), [@SimonDedman](https://github.com/SimonDedman), [@stefanoborini](https://github.com/stefanoborini), [@swsoyee](https://github.com/swsoyee), and [@Winterstorm-j](https://github.com/Winterstorm-j). |
| 123 | + |
83 | 124 | # styler 1.3.2
|
84 | 125 |
|
85 | 126 | Release upon request by the CRAN team.
|
@@ -172,7 +213,7 @@ Thanks to all contributors involved, in particular
|
172 | 213 | [@davidski](https://github.com/davidski),
|
173 | 214 | [@IndrajeetPatil](https://github.com/IndrajeetPatil),
|
174 | 215 | [@pat-s](https://github.com/pat-s), and
|
175 |
| -[@programming-wizard](https://github.com/programming-wizard). |
| 216 | +[@programming-wizard](https://github.com). |
176 | 217 |
|
177 | 218 | # styler 1.2.0
|
178 | 219 |
|
@@ -297,7 +338,7 @@ else you can use styler functionality:
|
297 | 338 | frames with `drake::drake_plan_source()`.
|
298 | 339 |
|
299 | 340 | * Adding styler as a fixer to the [ale
|
300 |
| - Plug-in](https://github.com/w0rp/ale/pull/2401#issuecomment-485942966) for |
| 341 | + Plug-in](https://github.com/dense-analysis/ale/pull/2401) for |
301 | 342 | VIM.
|
302 | 343 |
|
303 | 344 | Thanks to all contributors involved, in particular
|
|
0 commit comments