Skip to content

Releases: aternosorg/php-hangar-api

v5.1.1

20 Jan 15:50
f20976a
Compare
Choose a tag to compare

Fixes

  • Bump generator artifact version (Default user agent)

Full Changelog: v5.1.0...v5.1.1

v5.1.0

20 Jan 15:01
bf0472b
Compare
Choose a tag to compare

Additions

  • Add project id to PluginDependency
  • Add user id to ProjectMember

Fixes

  • Solve PHP 8.4 Deprecation warnings

Full Changelog: v5.0.0...v5.1.0

v5.0.0

15 Jan 11:22
e4c0aaf
Compare
Choose a tag to compare

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

Full Changelog: v4.0.0...v5.0.0

v4.0.0

06 Dec 18:06
f78f233
Compare
Choose a tag to compare

Changes:

  • Changes return type for APIKeysApi->getKeys() from \Aternos\HangarApi\Model\ApiKey to \Aternos\HangarApi\Model\ApiKey[]
  • Removes parameter platform_version from VersionsAPI->listVersions()
  • Removes parameter platformVersion from CompactProject->getVersions()
  • Removes parameter platformVersion from Project->getVersions()
  • Removes member platformVersion from VersionSearchOptions
  • Adds property description to ProjectCompact
  • Adds model for Tag
  • Changes type of property tags in ProjectSettings from string[] to \Aternos\HangarApi\Model\Tag[]

v3.3.1

03 Sep 15:26
8fc4f70
Compare
Choose a tag to compare

Fixes

  • Prevent PHP Warning for array to string conversion when fetching project versions

v3.3.0

17 Jul 12:37
0e436db
Compare
Choose a tag to compare

v3.2.0

08 Jan 16:31
21a0e75
Compare
Choose a tag to compare
  • Add sort order to project search

v3.1.1

22 Dec 15:08
ddb0225
Compare
Choose a tag to compare

Fixes

  • Add extends doc comment to ProjectMemberList

This fixes the annotated return type of all methods of the ProjectMemberList class.

v3.1.0

22 Dec 15:01
7bec629
Compare
Choose a tag to compare

New Features

  • Add method ResultList->getResultsFromFollowingPages to get the results from all pages

v3.0.0

21 Dec 18:23
b1e2758
Compare
Choose a tag to compare

Version 3.0.0 continues the transition from namespaces to unique slugs and also fixes the name of a parameter that was changed.

Breaking Changes

  • Methods that previously accepted a ProjectNamespace now only accept the project slug.This includes:
    • getProjectWatchers
    • getProjectStarGazers
    • getProjectMembers
  • The following methods previously accepted a Project or ProjectNamespace and now accept a Project or slug:
    • getProjectVersions
    • getProjectVersion
  • VersionSearchOptions->projectNamespace has also been replaced with the projectSlug
  • The project search option 'order with relevance' was renamed to 'prioritize exact match'. Version 2.0.0 already changed the option passed to the hangar API and this change makes the name in our code base match the behaviour.

New Features

  • Add shorthand getSlug() to Project and CompactProject
  • Add setter for a custom HTTPClient
  • Add constructor parameters for api key and user agent