|
1 | 1 | # usethis (development version)
|
2 | 2 |
|
3 |
| -* `browse_github_token()`, `browse_github_pat()`, and `github_token()` have been removed after being deprecated in usethis 2.0.0. `create_github_token()`, `gh::gh_token()`, and `gh_token_help()` should be used instead. |
| 3 | +# usethis 3.0.0 |
4 | 4 |
|
5 |
| -* `pr_pull_upstream()` and `pr_sync()` have been removed after being deprecated in usethis 2.0.0. `pr_merge_main()` and `pr_push()` should be used instead. |
| 5 | +## Transition to cli package for UI |
6 | 6 |
|
7 |
| -* `pr_merge_main()` now offers the choice to not open the files with merge conflicts (@olivroy, #1720). |
| 7 | +* The `ui_*()` functions have been marked as |
| 8 | + [superseded](https://lifecycle.r-lib.org/articles/stages.html#superseded). |
| 9 | + External users of these functions are encouraged to use the |
| 10 | + [cli package](https://cli.r-lib.org/) instead. |
| 11 | + The cli package did not have the required functionality when the |
| 12 | + `usethis::ui_*()` functions were first created, but it does now and it's the |
| 13 | + superior option. |
| 14 | + There is a cli vignette about how to make this transition: |
| 15 | + `vignette("usethis-ui", package = "cli")`. |
| 16 | + usethis no longer uses the `ui_*()` functions internally, in favor of new |
| 17 | + cli-based helpers that are not exported. |
| 18 | + |
| 19 | +## Deprecated function and argument removal |
| 20 | + |
| 21 | +We are removing functions and arguments that were deprecated as of usethis |
| 22 | +v2.0.0, which was released in December 2020. |
| 23 | + |
| 24 | +These changes have been in place for a long time now: |
| 25 | + |
| 26 | +* Switch from git2r to gert (+ credentials). |
| 27 | +* Use of git config and the gh package to infer, e.g., the target repo spec. |
| 28 | +* Pivot towards GitHub Actions and away from Travis and AppVeyor. |
| 29 | + |
| 30 | +Functions that are removed and, where applicable, what to use instead: |
| 31 | + |
| 32 | +* `git_credentials()` |
| 33 | +* `use_git_credentials()` |
| 34 | +* `browse_github_token()` (do `create_github_token()`) |
| 35 | +* `browse_github_pat()` (do `create_github_token()`) |
| 36 | +* `github_token()` (do `gh_token_help()` or `gh::gh_token()`) |
| 37 | +* `pr_pull_upstream()` (do `pr_merge_main()`) |
| 38 | +* `pr_sync()` (do `pr_merge_main(); pr_push()`) |
| 39 | +* `use_appveyor()` |
| 40 | +* `use_appveyor_badge()` |
| 41 | +* `use_travis()` |
| 42 | +* `use_travis_badge()` |
| 43 | +* `browse_travis()` |
| 44 | +* `use_pkgdown_travis()` |
| 45 | +* `use_tidy_ci()` *deprecated in v2.1.0* (do `use_tidy_github_actions()`) |
| 46 | +* `use_tidy_labels()` *deprecated in v2.1.0* (do `use_tidy_github_labels()`) |
| 47 | + |
| 48 | +Function arguments that are removed: |
| 49 | + |
| 50 | +* `create_from_github(auth_token =, credentials =)` |
| 51 | +* `use_github(auth_token =, credentials =)` |
| 52 | +* `use_github_labels(repo_spec =, host =, auth_token =)` |
| 53 | +* `use_github_links(auth_token =, host =)` |
| 54 | +* `use_github_release(host =, auth_token =)` |
| 55 | + |
| 56 | +## Other changes |
| 57 | + |
| 58 | +* `use_zip()` and `use_course()` are equipped to handle a ZIP where the parent |
| 59 | + folder is implicit (@burnsal, #1961). |
| 60 | + |
| 61 | +* `use_test_helper()` is a new function to create a test helper file |
| 62 | + (@olivroy, #1822). |
| 63 | + |
| 64 | +* `use_cpp11()` makes it easier to update `NAMESPACE` (@pachadotdev, #1921). |
| 65 | + |
| 66 | +* `pr_merge_main()` now offers the choice to not open the files with merge |
| 67 | + conflicts (@olivroy, #1720). |
8 | 68 |
|
9 | 69 | * `edit_rstudio_snippets()` now accepts yaml snippets (@olivroy, #1941).
|
10 | 70 |
|
11 | 71 | * `use_standalone()` inserts an improved header that includes the code needed to
|
12 | 72 | update the standalone file (@krlmlr, #1903).
|
13 | 73 |
|
14 |
| -* `use_release_issue()` and `use_upkeep()` behave better when the user has a |
15 |
| - fork. The user is asked just once to choose between `origin` and `upstream` as |
16 |
| - the target repo (#2023). |
| 74 | +* `use_release_issue()` and `use_upkeep_issue()` behave better when the user has |
| 75 | + a fork. The user is asked just once to choose between `origin` and `upstream` |
| 76 | + as the target repo (#2023). |
17 | 77 |
|
18 | 78 | * The README templates now recommend [pak](https://pak.r-lib.org) instead of
|
19 | 79 | devtools for package installation (@olivroy, #1723).
|
|
23 | 83 |
|
24 | 84 | * `use_git()` no longer asks if you want to restart RStudio when using Positron.
|
25 | 85 |
|
26 |
| -* `use_test()` and `use_r()` now work when you are in `tests/testthat/_snaps/{foo}.md` (@olivroy, #1988). |
| 86 | +* `use_test()` and `use_r()` now work when you are in |
| 87 | + `tests/testthat/_snaps/{foo}.md` (@olivroy, #1988). |
27 | 88 |
|
28 | 89 | * The URLs baked into the badge generated by `use_coverage(type = "codecov")`
|
29 |
| - no longer specify a branch (#2008). |
30 |
| - |
31 |
| -* The `ui_*()` functions have been marked as |
32 |
| - [superseded](https://lifecycle.r-lib.org/articles/stages.html#superseded). |
33 |
| - External users of these functions are encouraged to use the |
34 |
| - [cli package](https://cli.r-lib.org/) instead. |
35 |
| - The cli package did not have the required functionality when the |
36 |
| - `usethis::ui_*()` functions were first created, but it does now and it's the |
37 |
| - superior option. |
38 |
| - There is a cli vignette about how to make this transition: |
39 |
| - `vignette("usethis-ui", package = "cli")`. |
40 |
| - |
41 |
| - usethis no longer uses the `ui_*()` functions internally, in favor of new |
42 |
| - cli-based helpers that are not exported. |
| 90 | + are updated and no longer specify a branch(#2008). |
43 | 91 |
|
44 |
| -* `usethis::use_version()` now tolerates empty / blank lines preceding the |
| 92 | +* `usethis::use_version()` now tolerates empty lines preceding the |
45 | 93 | first section title in the package NEWS file. (#1976)
|
46 | 94 |
|
47 | 95 | # usethis 2.2.3
|
|
206 | 254 | * `use_tidy_logo()` is a new function that calls `use_logo()` on the appropriate
|
207 | 255 | hex sticker PNG file at <https://github.com/rstudio/hex-stickers> (#1871).
|
208 | 256 |
|
209 |
| -## Defunct functions |
| 257 | +## Deprecated functions |
210 | 258 |
|
211 |
| -* `use_tidy_eval()` is now defunct because it imports and re-exports a large |
| 259 | +* `use_tidy_eval()` is now deprecated because it imports and re-exports a large |
212 | 260 | number of functions that are no longer needed in order to do tidy
|
213 | 261 | evaluation (#1656).
|
214 | 262 |
|
215 | 263 | * `use_travis()`, `use_pkgdown_travis()`, `browse_travis()`, and `use_appveyor()`
|
216 |
| - are now defunct because we no longer recommend Travis or Appveyor. We |
| 264 | + are now deprecated because we no longer recommend Travis or Appveyor. We |
217 | 265 | recommend GitHub actions instead (#1517).
|
218 | 266 |
|
219 | 267 | # usethis 2.1.6
|
@@ -531,7 +579,7 @@ GitHub Actions is the preferred platform for continuous integration, because tha
|
531 | 579 |
|
532 | 580 | `use_tidy_pkgdown()` implements the complete pkgdown configuration used by the tidyverse team (#224).
|
533 | 581 |
|
534 |
| -`pr_sync()` is defunct and can be replicated by calling `pr_pull()`, `pr_merge_main()`, then `pr_push()`. |
| 582 | +`pr_sync()` is deprecated and can be replicated by calling `pr_pull()`, `pr_merge_main()`, then `pr_push()`. |
535 | 583 |
|
536 | 584 | ## Licensing improvements
|
537 | 585 |
|
@@ -1183,7 +1231,7 @@ build paths within it (#415, #425).
|
1183 | 1231 |
|
1184 | 1232 | * `create_from_github()`: the `repo` argument is renamed to `repo_spec`, since it takes input of the form "OWNER/REPO" (#376).
|
1185 | 1233 |
|
1186 |
| -* `use_depsy_badge()` is defunct. The Depsy project has officially concluded and is no longer being maintained (#354). |
| 1234 | +* `use_depsy_badge()` is deprecated. The Depsy project has officially concluded and is no longer being maintained (#354). |
1187 | 1235 |
|
1188 | 1236 | * `use_github()` fails earlier, with a more informative message, in the absence of a GitHub personal access token (PAT). Also looks for the PAT more proactively in the usual environment variables (i.e., GITHUB_PAT, GITHUB_TOKEN) (#320, #340, @cderv).
|
1189 | 1237 |
|
|
0 commit comments