-
Notifications
You must be signed in to change notification settings - Fork 91
Support Kotlin/JS #775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Kotlin/JS #775
Conversation
- Use bundles for js dependencies - Disable InstantInEpochMillisecondsSerializerTest for now
- Add test-kit - Add samples - Move HttpEngine to common
|
@DRSchlaubi we should update the PR description to include migration issues/steps (artifact changes, member to extension conversions), then it's good to go |
|
about annotation retention, this is how kxser does it, should we do it like this too? @MustBeDocumented
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS, AnnotationTarget.TYPE)
//@Retention(AnnotationRetention.RUNTIME) // Runtime is the default retention, also see KT-41082
public annotation class Serializable(
val with: KClass<out KSerializer<*>> = KSerializer::class // Default value indicates that auto-generated serializer is used
)it would mean that it's still available at runtime on jvm at least, i.e. no breaking change |
|
IMO these annotations shouldn't have been on runtime to begin with |
but now they are, so why not keep it that way? |
|
I don't really see the benefit of keeping it |
|
alright, it's fine for me |
This PR attempts to provide Kotlin/JS support for Kord (see #69)
Breaking Changes
dev.kord.common.Locale.asJavaLocale->import dev.kord.common.asJavaLocaledev.kord.core.cache.KordCacheBuilder.lruCache->import dev.kord.core.cache.lruCachedev.kord.rest.builder.message.create.MessageCreateBuilder.addFile->import dev.kord.rest.builder.message.create.addFiledev.kord.rest.builder.message.modify.MessageModifyBuilder.addFile->import dev.kord.rest.builder.message.modify.addFiledev.kord.rest.request.RequestBuilder.file->import dev.kord.rest.request.filejava.util.Localetodev.kord.common.Locale(if you really need to use the Java class, use theasJavaLocaleextension):dev.kord.core.entity.Guild.preferredLocaledev.kord.rest.builder.guild.GuildModifyBuilder.preferredLocaledev.kord.common.annotationand thedev.kord.gateway.PrivilegedIntentannotation now haveBINARYinstead ofRUNTIMEretention. This means they are no longer visible for reflection.-jvmto their artifact IDs forkord-common,kord-rest,kord-gatewayandkord-core.core-voicecapability has been removed, please use thekord-core-voiceartifact instead.