Skip to content

v1.300 🌈

Compare
Choose a tag to compare
@bitwiseman bitwiseman released this 22 Nov 00:59
· 970 commits to main since this release

πŸš€ Features

Deprecated all uses of HttpUrlConnection

This release deprecates all classes and interfaces that use HttpUrlConnection and implements replacements that do not depend on HttpUrlConnection. Here is a list of the deprecated classes and interfaces and their replacements.

  • HttpConnector: GithubConnector, GithubConnectorRequest, GithubConnectorResponse
  • extras.okhttp3.OkHttpConnector: extras.okhttp3.OkHttpGitHubConnector
  • AbuseLimitHandler: GitHubAbuseLimitHandler
  • RateLimitHandler: GitHubRateLimitHandler

Multi-release JAR

This release converts the library's JAR file to multi-release format. This means users running different versions of Java may see different behavior. The immediate example of this is HttpClientGitHubConnector.

HttpClientGitHubConnector for Java 11+

This release adds support for the Java 11 HttpClient. Users running the library with Java 11 or greater will have their default connector set to an instance of HttpClientGitHubConnector. This will remove the need to workaround illegal reflection warnings or errors in more recent version of Java.

Modern GitHubConnector implementations incompatible with GitHub.getConnector()

Switching to ``OkHttpGitHubConnectororHttpClientGitHubConnector` is not completely backward compatible. If either of those connectors are used, `GitHub.getConnector()` will throw an exception. The default connector also implements `HttpConnector` to preserve backward compatibility. These two modern `GitHubConnector` implementers do not, as doing so would defeat the point of having them.

Changes

Dependencies