nhle-api 0.5.1 → 0.5.2

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,49 @@ 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.1] - 2025-12-01
9
+
10
+ ### Release Notes
11
+
12
+ 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.
13
+
14
+ ### Added
15
+
16
+ - Team schedule interfaces for season, month, and week data structures
17
+ - PostalCode and PostalCodeInfo type definitions
18
+ - GameMeta and PlayoffSeriesMeta interfaces for enhanced game data structures
19
+ - PartnerGameInfo interface for partner game data
20
+
21
+ ### Changed
22
+
23
+ - Refactored API endpoint functions from arrow functions to named function declarations for better debugging
24
+ - Consolidated API paths into a single `_paths.ts` file for improved maintainability
25
+ - Updated ScheduleParams to include month parameter with default value
26
+ - Simplified type definitions and removed DefaultWithTranslations for clarity
27
+ - Updated GameScheduleState type definition for improved consistency
28
+ - Improved draft rankings function error handling and response structure when using `all()`
29
+ - Enhanced Game Center API documentation with detailed JSDoc comments
30
+ - Updated team statistics functions for improved clarity and consistency
31
+
32
+ ### Fixed
33
+
34
+ - Corrected pptReplay endpoints to use correct parameters
35
+ - Updated PostalCode validation regex to accommodate optional space
36
+ - Changed birthCountry type from CountryTLA to string for simplicity
37
+ - Renamed Suggestions type to IncompleteOptions for consistency
38
+ - Renamed PartnerGame interface to PartnerGameInfo
39
+ - Removed erroneous import from game.ts
40
+ - Updated NHL_START_DATE and NHL_END_DATE to reflect accurate season dates
41
+ - Improved type validator definitions
42
+ - Fixed ScheduleParams handling in team.schedule endpoint
43
+ - Removed unused WADL check script from package.json
44
+
45
+ ### Technical
46
+
47
+ - Added comprehensive schedule endpoint tests
48
+ - Enhanced type safety across Game Center responses
49
+ - Improved module descriptions and parameter documentation
50
+
8
51
  ## [0.5.0] - 2025-11-10
9
52
 
10
53
  ### Added
@@ -30,12 +73,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
73
  - Configured dual ESM/CJS package exports
31
74
  - Added MIT license
32
75
  - 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