connectbase-client 4.1.0 → 4.2.0
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 +28 -0
- package/dist/connect-base.umd.js +5 -5
- package/dist/index.d.mts +98 -6
- package/dist/index.d.ts +98 -6
- package/dist/index.js +129 -0
- package/dist/index.mjs +129 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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
|
+
## [4.2.0] - 2026-07-25
|
|
7
|
+
|
|
8
|
+
### Added — 패키징 앱 네이티브 API 보강 (`cb.native.*`)
|
|
9
|
+
|
|
10
|
+
앱 패키징(React Native/Electron) 셸이 제공하는 브릿지를 SDK 에서 그대로 쓸 수 있도록 빠져 있던
|
|
11
|
+
네임스페이스를 채웠다. 전부 additive — 기존 코드는 변경 없이 동작한다.
|
|
12
|
+
|
|
13
|
+
- `cb.native.location.watchPosition(onUpdate, options?)` / 반환된 핸들의 `clear()` — 위치 추적.
|
|
14
|
+
모바일 패키징 앱에서는 네이티브가 `nativeLocationUpdate` 이벤트로 갱신을 스트리밍하고, 웹/데스크톱은
|
|
15
|
+
Geolocation `watchPosition` 으로 폴백한다. (기존에는 SDK 에 watch 래퍼가 아예 없었고, 브릿지는
|
|
16
|
+
위치 갱신을 요청-응답으로 보내 첫 좌표 이후가 전부 유실됐다.)
|
|
17
|
+
- `cb.native.push.*` — `getToken()`(raw APNS/FCM 토큰, `cb.push.registerDevice` 에 그대로 사용) /
|
|
18
|
+
`requestPermission()` / `scheduleLocal()` / `setBadgeCount()`.
|
|
19
|
+
- `cb.native.getAppInfo()` — 패키징 앱의 플랫폼·OS·앱 버전·웹 URL (웹에서는 `null`).
|
|
20
|
+
- `cb.native.isNativeApp()` — 패키징 앱 안에서 실행 중인지.
|
|
21
|
+
- `NativeAppInfo`, `LocationWatch` 타입 export.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- `cb.native.notification.show()` — 모바일 패키징 앱에서 WebView 가 지원하지 않는 Web Notification
|
|
26
|
+
API 대신 네이티브 로컬 알림으로 전달한다(푸시 기능이 켜진 앱). 기존에는 모바일에서 조용히 실패했다.
|
|
27
|
+
- `cb.native.shell.openExternal()` — 모바일 패키징 앱에서 `window.open` 대신 시스템 브라우저로 연다.
|
|
28
|
+
- `cb.native.filesystem.saveFile()` — 모바일에서 파일명만 넘기면 앱 문서 디렉터리에 저장된다
|
|
29
|
+
(네이티브 셸이 상대 경로를 해석). 기존에는 절대 URI 가 아니라 저장이 실패했다.
|
|
30
|
+
- `NativeBridgeInterface` 타입에 `os` / `isNative` / `call` / `app.getInfo` / `app.reload` /
|
|
31
|
+
`browser.openExternal` / `filesystem.getDirectories` / `filesystem.getAppDir` /
|
|
32
|
+
`push.setBadgeCount` 추가 — 패키징 셸의 실제 브릿지 표면과 일치시켰다.
|
|
33
|
+
|
|
6
34
|
## [4.1.0] - 2026-07-25
|
|
7
35
|
|
|
8
36
|
### Added — 결제 자격증명 test/live 모드 (`payment_mode`)
|