Skip to content
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

[JS] Release 0.9.1 #135

Merged
merged 2 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion js-chat/.pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
name: pubnub-js-chat
version: 0.9.0-dev
version: 0.9.1
scm: github.com/pubnub/js-chat
schema: 1
files:
- lib/dist/index.js
changelog:
- date: 2024-12-07
version: 0.9.1
changes:
- type: bug
text: "Fix ES module named exports that were broken in 0.9.0 ."
- date: 2024-12-06
version: 0.9.0-dev
changes:
Expand Down
4 changes: 4 additions & 0 deletions js-chat/main.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "../build/dist/js/productionLibrary/pubnub-chat.mjs"
export const INTERNAL_MODERATION_PREFIX = "PUBNUB_INTERNAL_MODERATION_"
import PubNub from "pubnub"
export let CryptoModule = PubNub.CryptoModule
8,577 changes: 0 additions & 8,577 deletions js-chat/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion js-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"react-native": "dist/index.es.js",
"version": "0.9.0-dev",
"version": "0.9.1",
"name": "@pubnub/chat",
"dependencies": {
"pubnub": "8.2.8",
Expand Down
6 changes: 2 additions & 4 deletions js-chat/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import pkg from "./package.json" assert { type: "json" }
import terser from "@rollup/plugin-terser"
import commonjs from "@rollup/plugin-commonjs"

export default [
{
input: "../build/dist/js/productionLibrary/pubnub-chat.js",
input: "./main.mjs",
external: ["pubnub", "format-util"],
output: [
{
Expand All @@ -17,8 +16,7 @@ export default [
},
],
plugins: [
terser(),
commonjs()
terser()
],
},
]
5 changes: 0 additions & 5 deletions pubnub-chat-impl/src/jsMain/kotlin/ChatJs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,3 @@ class ChatJs internal constructor(val chat: ChatInternal, val config: ChatConfig
}
}
}

@OptIn(ExperimentalStdlibApi::class)
@JsExport
@EagerInitialization
val INTERNAL_MODERATION_PREFIX = "PUBNUB_INTERNAL_MODERATION_"
5 changes: 0 additions & 5 deletions pubnub-chat-impl/src/jsMain/kotlin/CryptoUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,3 @@ external interface DecryptParams {
val message: MessageJs
val decryptor: (String) -> Any
}

@OptIn(ExperimentalStdlibApi::class)
@JsExport
@EagerInitialization
val CryptoModule = PubNub.CryptoModule
1 change: 1 addition & 0 deletions pubnub-chat-impl/src/jsMain/kotlin/MessageDraftV1Js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ fun range(start: Int, stop: Int, step: Int = 1): List<Int> {
}

@JsExport
@JsName("MessageDraft")
class MessageDraftV1Js(private val chat: ChatJs, private val channel: ChannelJs, config: MessageDraftConfig? = null) {
private var previousValue = ""
private val mentionedUsers: MutableMap<Int, UserJs> = mutableMapOf()
Expand Down
Loading