connectbase-client 3.35.2 → 3.36.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 CHANGED
@@ -3,6 +3,25 @@
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
+ ## [3.36.0] - 2026-06-24
7
+
8
+ ### Added — Functions 에서 시크릿 키 없이 푸시 발송 (service_role / act-as-member)
9
+
10
+ 서버사이드 함수가 별도 시크릿 키(`cb_sk_`) 발급 없이 `ctx.cbAdmin`(service_role) 또는
11
+ `ctx.cb`(act-as-member)로 푸시를 보낼 수 있도록 `push.sendToMembers` 의 호출 가드를 완화했다.
12
+ 백엔드 dual-auth(`POST /v1/apps/:appID/push/send`)가 service_role 토큰을 받도록 함께 확장됐다.
13
+
14
+ - **`push.sendToMembers` 위임 Bearer 허용** — 기존 가드 `if (hasPublicKey()) throw` 는
15
+ `cbWithToken`(ctx.cbAdmin/ctx.cb) 클라이언트가 앱 식별용 `cb_pk_` 를 함께 보내는 탓에
16
+ 위임 호출까지 차단했다. 가드를 **`hasPublicKey() && !hasJWT()`** 로 변경해, 순수 브라우저
17
+ (Public Key 단독) 인스턴스만 차단하고 위임 Bearer 토큰을 가진 인스턴스는 통과시킨다.
18
+ 공개 API 시그니처·타입 표면은 동일하다.
19
+
20
+ ```ts
21
+ // service_role: true 함수에서 — 시크릿 키 불필요
22
+ await ctx.cbAdmin.push.sendToMembers(ctx.appId, [memberId], { title, body, data })
23
+ ```
24
+
6
25
  ## [3.35.2] - 2026-06-22
7
26
 
8
27
  ### Changed — 문서·타입 폴리시 (런타임 동작 변화 없음)