v3.0.0-pre3
Pre-release
Pre-release
What's Changed
- Breaking: Changed the custom PokeApi instance initialization method from
PokeApi(...)
toPokeApi.Custom(...)
to play nicely with some restrictions on APIs exposed to JS and Java - Breaking: Reverted the
Result<T>
response typing back to exceptions, becauseResult
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 Javafun getBerryBlocking(id: Int): Berry
on Javafun getBerryAsync(id: Int): Promise<Berry>
on JS
- Update API models to the latest schema
- Revise the demo app to display pokemon images
Full Changelog: v3.0.0-pre2...v3.0.0-pre3