Skip to content

⚠️ Remove deprecated Project::getVersions(), Author::getProjects() and Version::getProject() - #25

Merged
pavog merged 1 commit into
mainfrom
remove-deprecated-get-methods
Oct 20, 2026
Merged

pavog merged 1 commit into
mainfrom
remove-deprecated-get-methods

Conversation

@pavog

@pavog pavog commented Oct 19, 2026

Copy link
Copy Markdown
Member

The deprecated aliases of the fetch* methods are removed. Methods that send a request to the SpigotMC API are only available with the fetch prefix now, so a get* method on a wrapper never sends a request.

Breaking changes

Removed Use instead
Project::getVersions() Project::fetchVersions()
Author::getProjects() Author::fetchProjects()
Version::getProject() Version::fetchProject()

The replacements have the same parameters and return types, so migrating only means renaming the call:

// before
$versions = $project->getVersions();

// after
$versions = $project->fetchVersions();

@pavog pavog added this to the 3.0.0 milestone Oct 19, 2026
@pavog
pavog merged commit ed93d39 into main Oct 20, 2026
5 checks passed
@pavog
pavog deleted the remove-deprecated-get-methods branch October 20, 2026 10:32
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