@cg-devcenter/rtc-fpnn-webjs-sdk 1.0.0-cg.6 → 1.0.0-cg.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -11
- package/dist/rtm.d.cts +3 -0
- package/dist/rtm.d.mts +40 -0
- package/dist/rtm.d.ts +51 -23
- package/dist/rtm.min.js +5 -5
- package/dist/rtm.mjs +17 -0
- package/dist/rtm.shared-worker.js +6 -6
- package/dist/rtm.vite-plugin.d.mts +8 -0
- package/dist/rtm.vite-plugin.mjs +23 -0
- package/dist/rtm.vite.d.ts +27 -0
- package/dist/rtm.vite.mjs +13 -15
- package/dist/rtm.webpack4-adapter.cjs +29 -0
- package/dist/rtm.webpack4-plugin.cjs +50 -0
- package/dist/rtm.webpack4-plugin.d.cts +5 -0
- package/docs/CAPABILITIES.md +8 -8
- package/docs/Chat.md +7 -5
- package/docs/Data.md +2 -0
- package/docs/EventProcess.md +2 -0
- package/docs/Files.md +2 -0
- package/docs/Friends.md +2 -0
- package/docs/Groups.md +2 -0
- package/docs/Messages.md +4 -1
- package/docs/NPM_MODERNIZATION_PLAN.md +474 -0
- package/docs/PROTOCOL_MIGRATION.md +6 -5
- package/docs/RTM_MIGRATION.md +205 -0
- package/docs/Rooms.md +2 -0
- package/docs/System.md +2 -0
- package/docs/USAGE.md +70 -27
- package/docs/Users.md +2 -0
- package/docs/ValueAdded.md +10 -4
- package/package.json +29 -7
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cg-devcenter/rtc-fpnn-webjs-sdk",
|
|
3
|
-
"version": "1.0.0-cg.
|
|
3
|
+
"version": "1.0.0-cg.7",
|
|
4
4
|
"description": "Browser RTM SDK with FPNN and TLV v1 MessagePack WebSocket transports",
|
|
5
5
|
"main": "./dist/rtm.min.js",
|
|
6
6
|
"browser": "./dist/rtm.min.js",
|
|
7
|
+
"module": "./dist/rtm.mjs",
|
|
7
8
|
"types": "./dist/rtm.d.ts",
|
|
8
9
|
"unpkg": "./dist/rtm.min.js",
|
|
9
10
|
"jsdelivr": "./dist/rtm.min.js",
|
|
@@ -14,6 +15,8 @@
|
|
|
14
15
|
"docs/CAPABILITIES.md",
|
|
15
16
|
"docs/TLV_LIVE_E2E_TEST.md",
|
|
16
17
|
"docs/USAGE.md",
|
|
18
|
+
"docs/RTM_MIGRATION.md",
|
|
19
|
+
"docs/NPM_MODERNIZATION_PLAN.md",
|
|
17
20
|
"docs/PROTOCOL_MIGRATION.md",
|
|
18
21
|
"docs/Users.md",
|
|
19
22
|
"docs/Groups.md",
|
|
@@ -29,15 +32,30 @@
|
|
|
29
32
|
],
|
|
30
33
|
"exports": {
|
|
31
34
|
".": {
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/rtm.d.mts",
|
|
37
|
+
"default": "./dist/rtm.mjs"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/rtm.d.cts",
|
|
41
|
+
"default": "./dist/rtm.min.js"
|
|
42
|
+
}
|
|
35
43
|
},
|
|
36
44
|
"./vite": {
|
|
37
45
|
"types": "./dist/rtm.vite.d.ts",
|
|
38
46
|
"import": "./dist/rtm.vite.mjs",
|
|
39
47
|
"default": "./dist/rtm.vite.mjs"
|
|
40
48
|
},
|
|
49
|
+
"./vite-plugin": {
|
|
50
|
+
"types": "./dist/rtm.vite-plugin.d.mts",
|
|
51
|
+
"import": "./dist/rtm.vite-plugin.mjs",
|
|
52
|
+
"default": "./dist/rtm.vite-plugin.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./webpack4": {
|
|
55
|
+
"types": "./dist/rtm.webpack4-plugin.d.cts",
|
|
56
|
+
"require": "./dist/rtm.webpack4-plugin.cjs",
|
|
57
|
+
"default": "./dist/rtm.webpack4-plugin.cjs"
|
|
58
|
+
},
|
|
41
59
|
"./shared-worker": "./dist/rtm.shared-worker.js",
|
|
42
60
|
"./dist/*": "./dist/*",
|
|
43
61
|
"./package.json": "./package.json"
|
|
@@ -45,10 +63,12 @@
|
|
|
45
63
|
"author": "Dixun",
|
|
46
64
|
"license": "MIT",
|
|
47
65
|
"scripts": {
|
|
48
|
-
"
|
|
66
|
+
"prebuild": "node scripts/check-build-node.mjs",
|
|
67
|
+
"build": "webpack --mode production && webpack --config webpack.shared-worker.config.js --mode production && node scripts/build-modern.mjs",
|
|
49
68
|
"test": "npm run test:unit && npm run test:package",
|
|
50
|
-
"test:unit": "node test/tlv/run.js && node test/tlv/documentation.js && node test/demo-workflows.js && node test/vue-demo-state.js",
|
|
51
|
-
"test:package": "npm run build && node test/package-smoke.js",
|
|
69
|
+
"test:unit": "node test/tlv/run.js && node test/tlv/documentation.js && node test/migration-compatibility.js && node test/demo-workflows.js && node test/vue-demo-state.js",
|
|
70
|
+
"test:package": "npm run build && node test/package-files.js && node test/package-tarball.js && node test/package-smoke.js && node test/package-esm-smoke.mjs && node test/package-webpack4.js && npm run test:types",
|
|
71
|
+
"test:types": "tsc --noEmit --module NodeNext --moduleResolution NodeNext --target ES2020 test/package-types/esm.mts test/package-types/cjs.cts",
|
|
52
72
|
"demo:tlv-basic": "node examples/tlv-basic-demo/server.js",
|
|
53
73
|
"demo:shared-worker": "node examples/shared-worker-demo/server.js",
|
|
54
74
|
"prepack": "npm run build"
|
|
@@ -60,7 +80,9 @@
|
|
|
60
80
|
"babel-preset-es2015": "^6.24.1",
|
|
61
81
|
"babel-preset-stage-2": "^6.24.1",
|
|
62
82
|
"buffer": "^5.1.0",
|
|
83
|
+
"esbuild": "^0.25.12",
|
|
63
84
|
"int64-buffer": "^0.1.10",
|
|
85
|
+
"typescript": "^5.8.3",
|
|
64
86
|
"webpack": "^4.1.1",
|
|
65
87
|
"webpack-cli": "^3.3.12"
|
|
66
88
|
},
|