Skip to content

Commit 85e1261

Browse files
author
tecvan
committed
chore: upgrade rslib version
1 parent ad4c087 commit 85e1261

File tree

19 files changed

+2264
-1071
lines changed

19 files changed

+2264
-1071
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,5 @@ examples/coze-js-node/src/config/config.ts
173173
packages/chat-sdk/.env.development
174174

175175
/tmp
176+
177+
.rollup-cache
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/api",
5+
"comment": "upgrade rslib version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/api",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/api",
5+
"comment": "update version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/api",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/api",
5+
"comment": "reset",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/api",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/api",
5+
"comment": "fix build error",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/api",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/realtime-api",
5+
"comment": "upgrade rslib version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/realtime-api",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/realtime-api",
5+
"comment": "fix build error",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/realtime-api",
10+
"email": "[email protected]"
11+
}

common/config/subspaces/default/pnpm-lock.yaml

Lines changed: 1757 additions & 1042 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/coze-js-web/src/pages/chat-x/use-ws-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { config } from './config';
1717
const wavRecorder = new WavRecorder({ sampleRate: 24000 });
1818
const wavStreamPlayer = new WavStreamPlayer({ sampleRate: 24000 });
1919

20+
// eslint-disable-next-line max-lines-per-function
2021
const useWsAPI = (
2122
clientRef: MutableRefObject<CozeAPI | null>,
2223
onTranscription: (data: CreateTranscriptionsWsRes) => void,

packages/coze-js/package.json

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"author": "Leeight <[email protected]>",
2424
"exports": {
2525
".": "./src/index.ts",
26-
"./ws-tools": "./src/ws-tools/index.ts"
26+
"./ws-tools": "./src/ws-tools/index.ts",
27+
"./speech": "./src/ws-tools/speech/index.ts"
2728
},
2829
"main": "src/index.ts",
2930
"unpkg": "dist/umd/index.js",
@@ -41,7 +42,10 @@
4142
"dist/types/index.d.ts"
4243
],
4344
"ws-tools": [
44-
"dist/types/ws-tools/ws-tools/index.d.ts"
45+
"dist/types/ws-tools/index.d.ts"
46+
],
47+
"speech": [
48+
"dist/types/ws-tools/speech/index.d.ts"
4549
]
4650
}
4751
},
@@ -55,7 +59,8 @@
5559
"build": "rslib build",
5660
"format": "prettier --write .",
5761
"lint": "eslint ./ --cache --quiet",
58-
"start": "rslib build -w",
62+
"start": "rollup -c -w",
63+
"start:rslib": "rslib build -w",
5964
"test": "vitest",
6065
"test:cov": "vitest --coverage --run"
6166
},
@@ -74,7 +79,12 @@
7479
"@coze-infra/eslint-config": "workspace:*",
7580
"@coze-infra/ts-config": "workspace:*",
7681
"@coze-infra/vitest-config": "workspace:*",
77-
"@rslib/core": "0.0.18",
82+
"@rollup/plugin-commonjs": "^28.0.2",
83+
"@rollup/plugin-json": "^6.1.0",
84+
"@rollup/plugin-node-resolve": "^15.3.0",
85+
"@rollup/plugin-replace": "^6.0.2",
86+
"@rollup/plugin-typescript": "^12.1.2",
87+
"@rslib/core": "^0.16.0",
7888
"@swc/core": "^1.3.14",
7989
"@types/jsonwebtoken": "^9.0.0",
8090
"@types/node": "^20",
@@ -84,6 +94,10 @@
8494
"@types/ws": "^8.5.1",
8595
"@vitest/coverage-v8": "~2.1.9",
8696
"axios": "^1.7.7",
97+
"rollup": "^4.31.0",
98+
"rollup-plugin-dts": "^6.1.1",
99+
"rollup-plugin-node-externals": "^7.1.3",
100+
"tslib": "^2.8.1",
87101
"typescript": "^5.5.3",
88102
"vitest": "~2.1.9"
89103
},
@@ -104,7 +118,12 @@
104118
"./ws-tools": {
105119
"require": "./dist/cjs/ws-tools/index.js",
106120
"import": "./dist/esm/ws-tools/index.mjs",
107-
"types": "./dist/types/ws-tools/ws-tools/index.d.ts"
121+
"types": "./dist/types/ws-tools/index.d.ts"
122+
},
123+
"./speech": {
124+
"require": "./dist/cjs/ws-tools/speech/index.js",
125+
"import": "./dist/esm/ws-tools/speech/index.mjs",
126+
"types": "./dist/types/ws-tools/speech/index.d.ts"
108127
}
109128
},
110129
"main": "dist/cjs/index.js",

0 commit comments

Comments
 (0)