Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for IDs #4

Merged
merged 9 commits into from
Jan 15, 2025
Merged

Add support for IDs #4

merged 9 commits into from
Jan 15, 2025

Conversation

JulianVennen
Copy link
Member

@JulianVennen JulianVennen commented Jan 8, 2025

This is a draft because it contains a regression until HangarMC/Hangar#1437 is merged.

Changelog

Breaking Changes

HangarApiClient:

  • Rename getProjectVersion to getVersion
  • Rename getDailyProjectVersionStats to getDailyVersionStats
    • Replace version object parameter with project slug/ID and version name/ID

VersionSearchOptions

  • Replace getProjectSlug with getProjectSlugOrId
  • Replace setProjectSlug with setProjectSlugOrId
  • Make parameter for setProject non-nullable

Version

  • Replace getProjectSlug with getProjectSlugOrId

Additions

  • Add IDs to models
  • Accept IDs in API endpoints
  • Use IDs internally
  • Add getProjectByVersionHash
  • Add getLatestReleaseVersion
  • Add getLatestVersion
  • Add getVersionById
  • Add getDailyVersionStatsById

@JulianVennen JulianVennen marked this pull request as ready for review January 15, 2025 11:11
@JulianVennen JulianVennen merged commit e4c0aaf into master Jan 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant