Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove :client-events and :transcoder, working directly with CompletableFutures. #67

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Aug 8, 2023

  1. Remove :client-events and :transcoder, working directly with `Com…

    …pletableFuture`s.
    
    ### Removed
    
    * Remove the `funcool/promesa` dependency.
      * This doesn't affect the return values, they remain `java.util.concurrent.CompletableFuture` as before.
      * This reduces the libraries dependencies without sacrificing its functionality.
    * Remove the `:client-events` from the options map per client and per operation.
      The return values are `java.util.concurrent.CompletableFuture`, and the client is feel to compose additional
      functionally on top of these futures.
      * The previous `on-success` can be achieved with `CompletableFuture.thenApply` or `CompletableFuture.thenCompose`.
      * The previous `on-failure` can be achieved with `CompletableFuture.exceptionally`
        or `CompletableFuture.exceptionallyCompose`.
    * Remove the `:transcoder` from the options map per client and per operation.
      * Mapping the response can be achieved with `CompletableFuture.thenApply` or `CompletableFuture.thenCompose`.
      * To map the request's payload, supply a different payload.
    * Remove the `advanced-async-hooks.md`.
    
    ### Changed
    
    * Update the [README.md](README.md) and the [tutorial.md](doc/tutorial.md) to reflect the above changes.
    * Bump `clj-kondo`: `2022.04.25` -> `2023.07.13`.
    * Move `batch-record->map` from `aerospike-clj.client` to `aerospike-clj.aerospike-record`.
    * All async continuation functions are now reified and assigned as a `def` at compile-time.
      * This should reduce the number of allocations due to the removal of `(p/then' (fn [...))`.
    evg-tso committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    ca3978b View commit details
    Browse the repository at this point in the history
  2. Fix linter warnings

    evg-tso committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    f39896e View commit details
    Browse the repository at this point in the history
  3. Use Java 8 APIs

    evg-tso committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    0fd6c95 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. V4.0.0 SNAPSHOT

    evg-tso committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    851bc21 View commit details
    Browse the repository at this point in the history