|
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. |
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. |
6 | | - |
7 | 3 | * `pr_merge_main()` now offers the choice to not open the files with merge conflicts (@olivroy, #1720). |
8 | 4 |
|
9 | 5 | * `edit_rstudio_snippets()` now accepts yaml snippets (@olivroy, #1941). |
|
44 | 40 | * `usethis::use_version()` now tolerates empty / blank lines preceding the |
45 | 41 | first section title in the package NEWS file. (#1976) |
46 | 42 |
|
| 43 | +## Deprecated function and argument removal |
| 44 | + |
| 45 | +We are removing functions and arguments that were deprecated as of usethis |
| 46 | +v2.0.0, which was released in December 2020. |
| 47 | + |
| 48 | +These changes have been in place for a long time now: |
| 49 | + |
| 50 | +* Switch from git2r to gert (+ credentials). |
| 51 | +* Use of git config and the gh package to infer, e.g., the target repo spec. |
| 52 | +* Pivot towards GitHub Actions and away from Travis and AppVeyor. |
| 53 | + |
| 54 | +Functions that are removed and, where applicable, what to use instead: |
| 55 | + |
| 56 | +* `git_credentials()` |
| 57 | +* `use_git_credentials()` |
| 58 | +* `browse_github_token()` (do `create_github_token()`) |
| 59 | +* `browse_github_pat()` (do `create_github_token()`) |
| 60 | +* `github_token()` (do `gh_token_help()` or `gh::gh_token()`) |
| 61 | +* `pr_pull_upstream()` (do `pr_merge_main()`) |
| 62 | +* `pr_sync()` (do `pr_merge_main(); pr_push()`) |
| 63 | +* `use_appveyor()` |
| 64 | +* `use_appveyor_badge()` |
| 65 | +* `use_travis()` |
| 66 | +* `use_travis_badge()` |
| 67 | +* `browse_travis()` |
| 68 | +* `use_pkgdown_travis()` |
| 69 | +* `use_tidy_ci()` *deprecated in v2.1.0* (do `use_tidy_github_actions()`) |
| 70 | +* `use_tidy_labels()` *deprecated in v2.1.0* (do `use_tidy_github_labels()`) |
| 71 | + |
| 72 | +Function arguments that are removed: |
| 73 | + |
| 74 | +* `create_from_github(auth_token =, credentials =)` |
| 75 | +* `use_github(auth_token =, credentials =)` |
| 76 | +* `use_github_labels(repo_spec =, host =, auth_token =)` |
| 77 | +* `use_github_links(auth_token =, host =)` |
| 78 | +* `use_github_release(host =, auth_token =)` |
| 79 | + |
47 | 80 | # usethis 2.2.3 |
48 | 81 |
|
49 | 82 | * Patch release with changes to `.Rd` files requested by CRAN. |
|
206 | 239 | * `use_tidy_logo()` is a new function that calls `use_logo()` on the appropriate |
207 | 240 | hex sticker PNG file at <https://github.com/rstudio/hex-stickers> (#1871). |
208 | 241 |
|
209 | | -## Defunct functions |
| 242 | +## Deprecated functions |
210 | 243 |
|
211 | | -* `use_tidy_eval()` is now defunct because it imports and re-exports a large |
| 244 | +* `use_tidy_eval()` is now deprecated because it imports and re-exports a large |
212 | 245 | number of functions that are no longer needed in order to do tidy |
213 | 246 | evaluation (#1656). |
214 | 247 |
|
215 | 248 | * `use_travis()`, `use_pkgdown_travis()`, `browse_travis()`, and `use_appveyor()` |
216 | | - are now defunct because we no longer recommend Travis or Appveyor. We |
| 249 | + are now deprecated because we no longer recommend Travis or Appveyor. We |
217 | 250 | recommend GitHub actions instead (#1517). |
218 | 251 |
|
219 | 252 | # usethis 2.1.6 |
@@ -531,7 +564,7 @@ GitHub Actions is the preferred platform for continuous integration, because tha |
531 | 564 |
|
532 | 565 | `use_tidy_pkgdown()` implements the complete pkgdown configuration used by the tidyverse team (#224). |
533 | 566 |
|
534 | | -`pr_sync()` is defunct and can be replicated by calling `pr_pull()`, `pr_merge_main()`, then `pr_push()`. |
| 567 | +`pr_sync()` is deprecated and can be replicated by calling `pr_pull()`, `pr_merge_main()`, then `pr_push()`. |
535 | 568 |
|
536 | 569 | ## Licensing improvements |
537 | 570 |
|
@@ -1183,7 +1216,7 @@ build paths within it (#415, #425). |
1183 | 1216 |
|
1184 | 1217 | * `create_from_github()`: the `repo` argument is renamed to `repo_spec`, since it takes input of the form "OWNER/REPO" (#376). |
1185 | 1218 |
|
1186 | | -* `use_depsy_badge()` is defunct. The Depsy project has officially concluded and is no longer being maintained (#354). |
| 1219 | +* `use_depsy_badge()` is deprecated. The Depsy project has officially concluded and is no longer being maintained (#354). |
1187 | 1220 |
|
1188 | 1221 | * `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 | 1222 |
|
|
0 commit comments