Skip to contents

fastRhockey 1.0.0

Breaking Changes

  • Version 1.0.0 signals API stability for NHL and PWHL endpoints.
  • All PHF functions are formally deprecated via lifecycle. The Premier Hockey Federation ceased operations; use PWHL functions instead. Functions will be removed in a future release.
  • Consolidated new NHL API functions into existing NHL function names rather than creating _v2 variants, since the original API endpoints were deprecated by the NHL. This means nhl_game_feed(), nhl_game_boxscore(), nhl_schedule(), nhl_teams(), nhl_teams_roster(), and nhl_player_info() now use the new api-web.nhle.com endpoints directly.

New PWHL Functions

Bug Fixes

  • Fixed nhl_draft_year() – NHL API removed the /v1/draft/picks/{year} endpoint. The function now iterates over rounds 1-7 using /v1/draft/picks/{year}/{round}.
  • Fixed pwhl_stats() – resolved “object ‘players’ not found” error when API calls failed. Fixed team ID resolution for skater stats.
  • Fixed pwhl_schedule() – the season column was inadvertently dropped from the output. It is now included.
  • Fixed refresh_xg_models() – resolved “cannot change value of locked binding” error by storing xG models in a package environment (.xg_env) instead of top-level bindings.
  • Fixed NAMESPACE: removed import(tidyverse) which violated CRAN policy. Individual packages (dplyr, tidyr, etc.) are already imported.

Improvements

  • pwhl_season_id() now retrieves season data dynamically from the HockeyTech API instead of using a hardcoded lookup table. Falls back to hardcoded data when the API is unavailable.
  • Added internal helpers .pwhl_api(), .pwhl_modulekit_url(), .pwhl_gc_url(), and .pwhl_resolve_season_id() to reduce JSONP parsing boilerplate across PWHL functions.
  • Added lifecycle package for formal deprecation management.
  • Updated testthat dependency to >= 3.0.0.
  • Complete test coverage for all 95 exported functions (482 tests).
  • Added environment-controlled test toggles (RUN_NHL_TESTS, RUN_PHF_TESTS, RUN_PWHL_TESTS) via tests/testthat/helper-skip.R.
  • CI workflow environment variables now match helper-skip.R names.
  • Updated test expectations to match current API responses.
  • nhl_where_to_watch() returns NULL gracefully when the NHL /v1/where-to-watch endpoint is unavailable.
  • Updated _pkgdown.yml with reorganized reference sections and deprecated function categories.

Documentation & Infrastructure

  • Updated CONTRIBUTING.md with naming conventions, testing environment variables, conventional commits guide, and deprecation process.
  • Updated PR and issue templates.
  • Updated CLAUDE.md and .github/copilot-instructions.md to reflect v1.0.0 changes and new PWHL endpoints.
  • Added data-raw/pr_devel.md development scratchpad.
  • Added cran_comments.md for CRAN submission.
  • Updated _pkgdown.yml with reorganized PWHL reference sections.
  • Added R CMD check CI workflow and pkgdown deployment workflow.

fastRhockey 0.7.0

PWHL functions added

fastRhockey 0.6.0

  • Improved resiliency for several PHF functions, updates under the hood.

fastRhockey 0.5.0

  • Major improvements to NHL Game PBP Data parsing with shifts in-line via nhl_game_pbp() function added to match hockeyR.

fastRhockey 0.4.2

fastRhockey 0.4.1

  • Minor logic addition for pbp parsing.
  • More under the hood changes to adapt to tidyselect new version guidelines.
  • load_phf_rosters() function added.
  • load_nhl_rosters() function added.

fastRhockey 0.4.0

CRAN release: 2022-10-25

  • Updates logic to add Montreal Force to teams lists/parsing.
  • Under the hood changes to adapt to tidyselect new version guidelines.

fastRhockey 0.3.1

CRAN release: 2022-08-28

  • Updates documentation per CRAN’s request.

fastRhockey 0.3.0

CRAN release: 2022-03-25

  • Add print method for all functions with a time stamp and description of the data.
  • Add phf_team_logos dataset to package for reference.

fastRhockey 0.2.1

  • hotfix to helper_phf_pbp_data() penalty code.
  • add try() to function examples.

fastRhockey 0.2.0

fastRhockey 0.1.0

CRAN release: 2021-12-10

  • Prepped for CRAN.

fastRhockey 0.0.4

Loader functions for PHF

Player and Team Stats, Leaderboards

fastRhockey 0.0.3

Function naming convention normalization

fastRhockey 0.0.2

  • Added NHL functions from powerplay to fastRhockey.

fastRhockey 0.0.1

  • Added a NEWS.md file to track changes to the package.