This PR removes the deprecated InstanceV1 endpoint and data class. With this change, we would only be able to support Mastodon 4.0+ which is very much in line with Mastodon’s supported versions which, as I’m writing this, look as follows:
Version
Supported
4.2.x
Yes
4.1.x
Yes
< 4.1
No
Closes #424
Easier review
Reviewing commit by commit will probably make the review process easier as I needed to remove code in multiple places and not all the changes were entirely related, but still relate to the general removal of the InstanceV1 endpoint.
Type of Change
Refactoring / cleanup
Documentation
Breaking Changes
The previously already marked deprecated call to GET /api/v1/instance has been removed. You can no longer get instance information for Mastodon server versions prior to Mastodon 4.0 which needed the v1 variant. Please use the v2 variant GET /api/v2/instance which is available via InstanceMethods#getInstance.
How Has This Been Tested?
Updated unit tests
Mandatory Checklist
[x] I ran gradle check and there were no errors reported
[x] I have performed a self-review of my code
[ ] I have added tests that prove my fix is effective or that my feature works
[x] All tests pass locally with my changes
[x] I have added KDoc documentation to all public methods
Optional checks
[x] Did you also update the documentation in the /docs folder (e.g. API Coverage page)?
Description
This PR removes the deprecated InstanceV1 endpoint and data class. With this change, we would only be able to support Mastodon 4.0+ which is very much in line with Mastodon’s supported versions which, as I’m writing this, look as follows:
Closes #424
Easier review
Reviewing commit by commit will probably make the review process easier as I needed to remove code in multiple places and not all the changes were entirely related, but still relate to the general removal of the InstanceV1 endpoint.
Type of Change
Breaking Changes
GET /api/v1/instance
has been removed. You can no longer get instance information for Mastodon server versions prior to Mastodon 4.0 which needed the v1 variant. Please use the v2 variantGET /api/v2/instance
which is available viaInstanceMethods#getInstance
.How Has This Been Tested?
Updated unit tests
Mandatory Checklist
gradle check
and there were no errors reportedOptional checks
/docs
folder (e.g. API Coverage page)?