Skip to content

Releases: leviroth/ocaml-reddit-api

0.2.1

06 Jan 03:43
5b16f86
Compare
Choose a tag to compare

CHANGES:

Removed

  • A comment in the reddit_api_kernel opam file.

0.2.0

06 Jan 03:07
44f74f8
Compare
Choose a tag to compare

CHANGES:

Added

  • Add Endpoint.user_trophies to view trophies by user.
  • Add Thing.Link.Contents.t variant for distinguishing self and link
    submissions.
  • Add Thing.Comment.link_title to view the title of the link for a comment in
    the modqueue.
  • Add support for OAuth2 userless (app-only) flow. Both public clients and
    confidential clients are supported. See Connection.Credentials.t.
  • Add support for OAuth2 refresh token credentials.
  • Add handling of failed access token requests.
  • Add automatic retries when an endpoint request fails due to an expired access
    token.

Changed

  • Require dune >= 2.8.
  • Require cohttp >= 5.0.0.
  • Add a case to Endpoint.Error representing Reddit's JSON error responses.
  • Change Connection.Credentials.t from record to variant that supports
    OAuth2 userless (app-only) flow, so if you serialize the variant,
    a constructor name will be prepended to the sexp.
  • Restructure Rate_limiter and added expect tests.
  • Reorganize error types in Connection and Retry_manager to distinguish
    errors in fetching an access token.
  • Bump Connection.Remote protocol to version 2.
  • Rename Api to Endpoint and Api.Api_error to Api.Error.
  • Remove Endpoint.with_param_override type.
    • This changes the type of each endpoint value.
    • HTTP request parameters can instead be tweaked by simply editing the
      Endpoint.request field.

0.1.1

31 Dec 04:19
547e904
Compare
Choose a tag to compare

Added

  • Add lots of documentation.

Changed

  • Increase the minimum delay between HTTP requests from 10ms to 100ms.
  • Return a special Inbox_item.Comment.t value instead of a Thing.Comment.t
    for inbox endpoints.

Removed

  • Remove unused optional subreddit parameter from Api.info.
  • Remove Bounded_set from the public interface of reddit_api_async.

0.1.0

31 Dec 04:20
31768be
Compare
Choose a tag to compare

Initial opam release