https://kotlinlang.org logo
#compose-web
Title
# compose-web
j

jw

02/27/2024, 6:21 PM
None of the 1.6 change logs have thus far mentioned that decoy generation was disabled and that recompilation of downstream libraries is required for JS targets. Please include it in the final 1.6 change log!
🙏 1
Or I just missed it, because I was mostly looking for "decoy" but no one would know wtf that is so it's probably not mentioned as such...
a

Ayfri

02/27/2024, 7:47 PM
What is it ? x)
j

jw

02/27/2024, 9:00 PM
It was a workaround for a Kotlin semi-bug in like 1.3 that was fixed in 1.4 (or something like that, i don't recall the timelines)
But since it's an ABI change we kept generating these decoys as the compilation mode of Compose or it would break everyone
but since the workaround was no longer needed at some point it makes sense to disable them, and Compose 1.6 is that time
👍 2
Anyone who is running the Compose compiler themselves on JS will know what it is because they will have had to enable them to get compilation to work. Now those people have to go and remove that flag. It's really easy, I just want to make sure it's called out. Here's an example: https://github.com/cashapp/molecule/commit/e4d20769a95222fef130251e150f594de7499ae5
k

Konstantin Tskhovrebov

02/28/2024, 8:31 AM
cc @Igor Demin
h

hfhbd

02/28/2024, 10:19 AM
So it does effect all compose JS libraries?
o

Oleksandr Karpovich [JB]

02/28/2024, 10:29 AM
yes, it affects all compose k/js libs. Those which use compose-multiplatform-gradle plugin don't really need to do anything, the change is applied automically
To rephrase: The compose k/js libraries need to be rebuilt with a dependency on 1.6.0 in order to be used in projects with new 1.6.0
i

Igor Demin

02/28/2024, 11:01 AM
Added to the changelog: https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.6.0 (search for
Web (k/js)
) Thanks!
j

jw

02/28/2024, 11:26 AM
Thank you!
s

SrSouza

03/01/2024, 2:11 AM
@Igor Demin special for the stable to stable release and for example 1.6.0-rc01 already had that change? Or this is starting from 1.6.0 stable ?
o

Oleksandr Karpovich [JB]

03/01/2024, 9:07 AM
1.6.0-rc01 already had that change
yes, beta and rc had this change too
4 Views