Releases: aternosorg/php-hangar-api
Releases · aternosorg/php-hangar-api
v5.1.1
v5.1.0
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
Breaking Changes
HangarApiClient:
- Rename
getProjectVersion
togetVersion
- Rename
getDailyProjectVersionStats
togetDailyVersionStats
- Replace version object parameter with project slug/ID and version name/ID
VersionSearchOptions
- Replace
getProjectSlug
withgetProjectSlugOrId
- Replace
setProjectSlug
withsetProjectSlugOrId
- Make parameter for
setProject
non-nullable
Version
- Replace
getProjectSlug
withgetProjectSlugOrId
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
Changes:
- Changes return type for
APIKeysApi->getKeys()
from\Aternos\HangarApi\Model\ApiKey
to\Aternos\HangarApi\Model\ApiKey[]
- Removes parameter
platform_version
fromVersionsAPI->listVersions()
- Removes parameter
platformVersion
fromCompactProject->getVersions()
- Removes parameter
platformVersion
fromProject->getVersions()
- Removes member
platformVersion
fromVersionSearchOptions
- Adds property
description
toProjectCompact
- Adds model for Tag
- Changes type of property
tags
inProjectSettings
fromstring[]
to\Aternos\HangarApi\Model\Tag[]
v3.3.1
Fixes
- Prevent PHP Warning for array to string conversion when fetching project versions
v3.3.0
v3.2.0
- Add sort order to project search
v3.1.1
Fixes
- Add extends doc comment to ProjectMemberList
This fixes the annotated return type of all methods of the ProjectMemberList class.
v3.1.0
New Features
- Add method ResultList->getResultsFromFollowingPages to get the results from all pages
v3.0.0
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