arrow-kt / arrow

Λrrow - Functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
6.18k stars 452 forks source link

["Bug"] Arrow core 1.2.4 not compatible with Kotlin WASM JS #3407

Closed ILIYANGERMANOV closed 5 months ago

ILIYANGERMANOV commented 6 months ago

What version are you currently using? 1.2.4

What would you like to see? Be able to use Arrow in my Kotlin Multiplatform project. Repo: (I reverted the arrow commit) https://github.com/Ivy-Apps/learn

Repro:

  1. Try adding arrow as a dependency to the :composeApp module.
Could not resolve io.arrow-kt:arrow-core:1.2.4.
  Required by:
      project :composeApp
   > No matching variant of io.arrow-kt:arrow-core:1.2.4 was found. The consumer was configured to find a library for use during 'kotlin-api', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm', attribute 'org.jetbrains.kotlin.wasm.target' with value 'js' but:
serras commented 6 months ago

Unfortunately, we had to postpone publishing artifacts for WebAssembly until 2.0 :(

ILIYANGERMANOV commented 6 months ago

No worries, WebAssembly won't be production ready anytime soon so that's totally fine. Thanks for maintaining this awesome library!

serras commented 5 months ago

Since #3416, we build the library with Wasm JS too. So the new version would definitely contain those artifacts :)

fethij commented 1 month ago

@serras any eta on the next release that includes #3416 ?