Skip to content

v3.0.0-pre3

Pre-release
Pre-release

Choose a tag to compare

@sargunv sargunv released this 30 Jun 03:11
· 20 commits to main since this release
c490b0c

What's Changed

  • Breaking: Changed the custom PokeApi instance initialization method from PokeApi(...) to PokeApi.Custom(...) to play nicely with some restrictions on APIs exposed to JS and Java
  • Breaking: Reverted the Result<T> response typing back to exceptions, because Result wasn't well supported by https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin
  • Added Java-friendly and JS-friendly APIs using that compiler plugin. For example, suspend fun getBerry(id: Int): Berry now also has corresponding methods:
    • fun getBerryAsync(id: Int): CompletableFuture<Berry> on Java
    • fun getBerryBlocking(id: Int): Berry on Java
    • fun getBerryAsync(id: Int): Promise<Berry> on JS
  • Update API models to the latest schema
  • Revise the demo app to display pokemon images

@sargunv

Full Changelog: v3.0.0-pre2...v3.0.0-pre3