Skip to content

Commit ca07215

Browse files
committed
docs: update NEWS.md and cran-comments.md for v3.0.0
- Add HTTP Backend Migration section - Add Messaging Migration (usethis to cli) section - Add Social Branding (Twitter to X) section - Update TOC entries for new sections
1 parent 750130b commit ca07215

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

.Rbuildignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ CLAUDE\.md$
2525
^\.lintr$
2626
nba_pbp_db
2727
mbb_pbp_db
28+
^\.claude$
29+
^\.vscode$
2830
^\\.claude$
29-
^\\.vscode$
31+
^\\.vscode$

NEWS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
44

55
- [**hoopR 3.0.0**](#hoopr-300)
6+
- [**HTTP Backend Migration**](#http-backend-migration)
7+
- [**Messaging Migration (usethis → cli)**](#messaging-migration-usethis--cli)
8+
- [**Social Branding (Twitter → X)**](#social-branding-twitter--x)
69
- [**Stability and Test Robustness**](#stability-and-test-robustness)
710
- [**CI and Check Improvements**](#ci-and-check-improvements)
811
- [**NBA Play-by-Play V3**](#nba-play-by-play-v3)
@@ -66,6 +69,28 @@
6669

6770
# **hoopR 3.0.0**
6871

72+
### **HTTP Backend Migration**
73+
74+
- **Breaking**: Replaced `httr` with `httr2` as the HTTP backend for all API requests across the package.
75+
- Removed `httr` from package dependencies (`Imports`).
76+
- `request_with_proxy()` now uses `httr2` request/retry pipeline instead of `rvest::session()` with `httr` config arguments, resolving segfaults on systems with libcurl >= 8.x / curl R package >= 7.0.0.
77+
- All ESPN, NBA Stats, NBA G-League, NCAA, and KenPom HTTP calls now use shared internal helpers (`.retry_request()`, `.resp_text()`) backed by `httr2`.
78+
- `check_status()` now uses `httr2::resp_status()` instead of `httr::status_code()`.
79+
- KenPom (`kp_*`) functions now use `httr2` cookie jar authentication via `login()`, `.kp_get_page()`, and `.kp_request()` helpers.
80+
81+
### **Messaging Migration (usethis → cli)**
82+
83+
- Replaced all `usethis::ui_*()` messaging calls in database builder and loader functions with `cli` equivalents.
84+
- `usethis::ui_stop()``cli::cli_abort()`, `usethis::ui_oops()``cli::cli_alert_danger()`, `usethis::ui_todo()``cli::cli_ul()`, `usethis::ui_info()``cli::cli_alert_info()`.
85+
- Inline markup converted: `usethis::ui_value()``{.val}`, `usethis::ui_path()``{.file}`, `usethis::ui_code()``{.code}`.
86+
- Moved `usethis` from `Imports` to `Suggests` (retained for `usethis::edit_r_environ()` documentation references).
87+
88+
### **Social Branding (Twitter → X)**
89+
90+
- Updated all social media links and badges from Twitter to X across README, pkgdown site, and vignettes.
91+
- Shields.io badge `logo=twitter``logo=x`; profile URLs `twitter.com``x.com`.
92+
- pkgdown navbar icon updated from `fa-twitter` to `fa-x-twitter`.
93+
6994
### **Stability and Test Robustness**
7095

7196
- Hardened API-facing tests against live schema drift and intermittent empty payloads.

cran-comments.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
44

55
- [Release summary](#release-summary)
6+
- [HTTP Backend Migration](#http-backend-migration)
7+
- [Messaging Migration (usethis → cli)](#messaging-migration-usethis--cli)
8+
- [Social Branding (Twitter → X)](#social-branding-twitter--x)
69
- [NBA Play-by-Play V3](#nba-play-by-play-v3)
710
- [NBA Boxscore Summary V3](#nba-boxscore-summary-v3)
811
- [New NBA Stats API Endpoint Wrappers](#new-nba-stats-api-endpoint-wrappers)
@@ -18,6 +21,21 @@
1821

1922
This is a major release (v3.0.0) with the following changes:
2023

24+
### HTTP Backend Migration
25+
- Replaced `httr` with `httr2` as the sole HTTP backend for all API requests.
26+
- Removed `httr` from package dependencies, resolving compatibility issues with libcurl >= 8.x.
27+
- All HTTP calls now use `httr2` request/retry pipelines via shared internal helpers.
28+
- KenPom functions now use `httr2` cookie jar authentication.
29+
30+
### Messaging Migration (usethis → cli)
31+
- Replaced all `usethis::ui_*()` calls in load/database functions with `cli` equivalents (`cli::cli_abort()`, `cli::cli_alert_info()`, `cli::cli_ul()`, `cli::cli_alert_danger()`).
32+
- Moved `usethis` from `Imports` to `Suggests`.
33+
34+
### Social Branding (Twitter → X)
35+
- Updated all social media links and badges from Twitter to X across README, pkgdown site, and vignettes.
36+
- Profile URLs `twitter.com``x.com`; shields badge logos updated to X.
37+
- pkgdown navbar icon updated from `fa-twitter` to `fa-x-twitter`.
38+
2139
### NBA Play-by-Play V3
2240
- `nba_playbyplayv3()` function added -- dedicated wrapper for the NBA Stats PlayByPlayV3 endpoint.
2341
- `nba_pbp()` and `nba_pbps()` now default to `version = "v3"` (previously `"v2"`).

0 commit comments

Comments
 (0)