nhle-api 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,65 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.3] - 2025-12-03
9
+
10
+ ### Added
11
+
12
+ - Expanded Game Center response type coverage (player, team, and game detail structures), completing response types for all endpoints
13
+
14
+ ### Changed
15
+
16
+ - Updated internal API import paths for game, player, and score modules to align with path consolidation work
17
+
18
+ ### Fixed
19
+
20
+ - Corrected `playoffSeries` path to include missing `carousel` segment
21
+ - Updated player spotlight endpoint return type to use an array of `PlayerSpotlight`
22
+ - Removed duplicate `PositionCode` import from Game Center types
23
+
24
+ ## [0.5.2] - 2025-12-01
25
+
26
+ ### Release Notes
27
+
28
+ This release addresses some partial refactors to improve the codebase for myself, as well as a few bug fixes and enhancements. Response types are still a work in progress and will be further improved in future releases - the target for 0.6.0 is to have all endpoints fully typed.
29
+
30
+ ### Added
31
+
32
+ - Team schedule interfaces for season, month, and week data structures
33
+ - PostalCode and PostalCodeInfo type definitions
34
+ - GameMeta and PlayoffSeriesMeta interfaces for enhanced game data structures
35
+ - PartnerGameInfo interface for partner game data
36
+
37
+ ### Changed
38
+
39
+ - Refactored API endpoint functions from arrow functions to named function declarations for better debugging
40
+ - Consolidated API paths into a single `_paths.ts` file for improved maintainability
41
+ - Updated ScheduleParams to include month parameter with default value
42
+ - Simplified type definitions and removed DefaultWithTranslations for clarity
43
+ - Updated GameScheduleState type definition for improved consistency
44
+ - Improved draft rankings function error handling and response structure when using `all()`
45
+ - Enhanced Game Center API documentation with detailed JSDoc comments
46
+ - Updated team statistics functions for improved clarity and consistency
47
+
48
+ ### Fixed
49
+
50
+ - Corrected pptReplay endpoints to use correct parameters
51
+ - Updated PostalCode validation regex to accommodate optional space
52
+ - Changed birthCountry type from CountryTLA to string for simplicity
53
+ - Renamed Suggestions type to IncompleteOptions for consistency
54
+ - Renamed PartnerGame interface to PartnerGameInfo
55
+ - Removed erroneous import from game.ts
56
+ - Updated NHL_START_DATE and NHL_END_DATE to reflect accurate season dates
57
+ - Improved type validator definitions
58
+ - Fixed ScheduleParams handling in team.schedule endpoint
59
+ - Removed unused WADL check script from package.json
60
+
61
+ ### Technical
62
+
63
+ - Added comprehensive schedule endpoint tests
64
+ - Enhanced type safety across Game Center responses
65
+ - Improved module descriptions and parameter documentation
66
+
8
67
  ## [0.5.0] - 2025-11-10
9
68
 
10
69
  ### Added
@@ -30,12 +89,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
89
  - Configured dual ESM/CJS package exports
31
90
  - Added MIT license
32
91
  - Added changelog
33
-
34
- ## [Unreleased]
35
-
36
- ### Planned
37
-
38
- - Additional API endpoint coverage
39
- - Enhanced error handling
40
- - More comprehensive examples and documentation
41
- - Enhanced response types for better type safety