connectbase-client 6.6.0 → 6.6.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  본 SDK 의 모든 주요 변경사항을 [Keep a Changelog](https://keepachangelog.com/ko/1.1.0/) 형식으로 기록합니다.
4
4
  버전은 [Semantic Versioning](https://semver.org/lang/ko/) 을 따릅니다.
5
5
 
6
+ ## [6.6.1] - 2026-10-21
7
+
8
+ ### Fixed — 패키지 메타데이터(코드 변경 없음)
9
+
10
+ - **ESM 으로 import 하는 TypeScript 프로젝트가 CJS 타입을 받던 문제.** `exports` 가 import 와 require 모두에
11
+ `index.d.ts`(CJS 선언)를 줬다 — `moduleResolution: node16/nodenext` 에서 "Masquerading as CJS"(are-the-types-wrong).
12
+ 이제 import 는 `index.d.mts` + `index.mjs`, require 는 `index.d.ts` + `index.js` 를 받는다. `bundler` 와 `node10`
13
+ 해석은 그대로다.
14
+ - **`browser` 필드 제거.** 스크립트 태그용 UMD 번들을 가리켜, `exports` 를 모르는 옛 번들러(webpack 4 등)가 브라우저
15
+ 빌드에서 `main` 대신 UMD 를 가져갔다. CDN 기본 파일은 `unpkg`, `jsdelivr` 필드로 지정한다(바뀌지 않는다).
16
+ - `exports` 에 `./package.json` 추가 — 도구가 `require('connectbase-client/package.json')` 로 판을 읽을 수 있다.
17
+ - `engines.node` 를 `>=16` 에서 `>=20` 으로 바로잡았다. SDK 는 전역 `fetch` 와 `crypto.randomUUID` 를 써서 Node 16,
18
+ 18 에서는 원래 동작하지 않았다(Node 에서 실시간 WebSocket 은 전역 `WebSocket` 이 있는 22 이상).
19
+
6
20
  ## [6.6.0] - 2026-10-21
7
21
 
8
22
  ### Added — 카테고리 발행 정책: 방송인과 "위로만" 가는 메시지
package/dist/cli.js CHANGED
@@ -156,7 +156,7 @@ function handleTunnelError(msg, appId, localPort) {
156
156
  }
157
157
 
158
158
  // src/cli.ts
159
- var VERSION = "6.6.0" ? "6.6.0" : getPackageVersion();
159
+ var VERSION = "6.6.1" ? "6.6.1" : getPackageVersion();
160
160
  var DEFAULT_BASE_URL = "https://api.connectbase.world";
161
161
  var colors = {
162
162
  reset: "\x1B[0m",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connectbase-client",
3
- "version": "6.6.0",
3
+ "version": "6.6.1",
4
4
  "description": "Connect Base JavaScript/TypeScript SDK for browser and Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,18 +18,24 @@
18
18
  "main": "dist/index.js",
19
19
  "module": "dist/index.mjs",
20
20
  "types": "dist/index.d.ts",
21
- "browser": "dist/connect-base.umd.js",
22
21
  "unpkg": "dist/connect-base.umd.js",
22
+ "jsdelivr": "dist/connect-base.umd.js",
23
23
  "bin": {
24
24
  "connectbase": "dist/cli.js",
25
25
  "connectbase-client": "dist/cli.js"
26
26
  },
27
27
  "exports": {
28
28
  ".": {
29
- "types": "./dist/index.d.ts",
30
- "import": "./dist/index.mjs",
31
- "require": "./dist/index.js"
32
- }
29
+ "import": {
30
+ "types": "./dist/index.d.mts",
31
+ "default": "./dist/index.mjs"
32
+ },
33
+ "require": {
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.js"
36
+ }
37
+ },
38
+ "./package.json": "./package.json"
33
39
  },
34
40
  "files": [
35
41
  "dist",
@@ -73,6 +79,6 @@
73
79
  "vitest": "^3.2.4"
74
80
  },
75
81
  "engines": {
76
- "node": ">=16"
82
+ "node": ">=20"
77
83
  }
78
84
  }