Skip to content

v0.9.9 🦝

Compare
Choose a tag to compare
@oldratlee oldratlee released this 25 Apr 05:45
· 297 commits to main since this release

shifu

Note

💗 Happy with cffu! 🦝 and be a "shifu"~ 😆

☘️ Features

  • add combineFastFail extension methods for CompletableFuture 🍩
  • add covariance to methods of CffuFactory/CompletableFutureUtils/CompletableFutureExtensions 🧬
  • rename methods of CompletableFutureUtils/CffuFactory/Cffu/CompletableFutureExtensions 🍬
    • allOfWithResult*methods -> allResultsOf* methods
    • remove anyOfWithType* methods, covariant anyof* methods is enough 🎉
    • remove prefix cffu
      • CompletableFutureUtils#cffuState -> state, cffuJoin -> join
      • Cffu#cffuState#cffuJoin -> join
      • CffuFactory#cffuAllOf* -> allResultsOf*
      • ...

🛠 Refactor/Improvements

  • use normal array list instead of immutable(Collections#emptyList) or fixed-size(Arrays#asList) list ⛑️
  • simplify the type parameter of CffuFactory.dummy() ⌨️
  • fix wrong element index in exception msg ℹ️

📚 Documentation

  • improve user guide/javadoc 📚
  • upgrade java link of javadoc to java 21

🚜 Build/Chore

  • check pom version format ✅
  • check bytecode version of dependencies ✅
    • add bytecode version verification plugin
  • update CI jdk: use java 21, add java 22 ☕️
  • use jdk 21 as default build jdk ☕️
  • upgrade kotlin support to 1.6+ 🍩
  • update .gitignore 🫷
  • upgrade dependencies/plugins 🛠️
  • upgrade maven wrapper to 3.9.6 🪶

🔌 API Doc

🍪 Maven dependency

cffu core lib, including cffu enhancement for Java CompletableFuture:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu</artifactId>
    <version>0.9.9</version>
</dependency>

cffu Kotlin support lib:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu-kotlin</artifactId>
    <version>0.9.9</version>
</dependency>

cffu bom:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu-bom</artifactId>
    <version>0.9.9</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

cffu executor wrapper SPI implementation for 📌 TransmittableThreadLocal(TTL):

<dependency>
  <groupId>io.foldright</groupId>
  <artifactId>cffu-ttl-executor-wrapper</artifactId>
  <version>0.9.9</version>
  <scope>runtime</scope>
</dependency>