connectbase-client 3.37.0 → 3.39.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,46 @@
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.39.0] - 2026-06-25
7
+
8
+ ### Removed (BREAKING) — 게스트/익명 로그인 제거
9
+
10
+ 게스트 멤버 로그인과 익명 플랫폼 로그인을 제거했다. 웹 클라이언트 코드 실수(예: 렌더마다
11
+ 게스트 로그인 호출)로 게스트 멤버가 대량 생성되는 문제를 차단하기 위함이다.
12
+
13
+ - **제거**: `cb.auth.signInAsGuestMember()`, `cb.auth.clearGuestMemberTokens()`,
14
+ `SignInAsGuestMemberOptions`, `GuestMemberSignInResponse`, `GuestSessionConflictError`.
15
+ - **제거**: `AuthSettingsResponse.allow_guest_login` 필드 (백엔드 `/v1/public/auth-settings`
16
+ 가 더 이상 반환하지 않음). 백엔드 엔드포인트 `POST /v1/public/app-members`(게스트 생성),
17
+ `POST /v1/auth/signin/anonymous`(익명) 도 함께 제거됐다.
18
+ - **보존**: 기존 게스트 멤버 데이터는 그대로 유지되며, `getMe()` 의 `is_guest` /
19
+ `auth_provider` 로 계속 식별 가능하다.
20
+ - **마이그레이션**: 비로그인/익명 사용자가 필요하면 정식 회원가입(`signUpMember`) 또는 소셜
21
+ 로그인을 사용할 것.
22
+
23
+ ## [3.38.0] - 2026-06-25
24
+
25
+ ### Added — `cb.push.sendToTopic` (토픽 구독자 전체 발송, service_role 지원)
26
+
27
+ 토픽 구독자 전체에게 푸시를 보내는 `push.sendToTopic(appId, topicName, payload)` 를 추가했다.
28
+ `sendToMembers`(3.36.0)와 동일한 위임 가드(`hasPublicKey() && !hasJWT()`)를 적용해, 콘솔 JWT /
29
+ User Secret Key(`cb_sk_`) / service_role(`ctx.cbAdmin`) 인증으로 호출할 수 있고 순수 브라우저
30
+ Public Key(`cb_pk_`) 단독 인스턴스에서는 차단된다. 백엔드 라우트
31
+ `POST /v1/apps/:appID/push/send-to-topic` 는 이미 dual-auth(service_role 포함)를 지원한다.
32
+
33
+ - 대표 유스케이스: ConnectBase Function 스케줄러가 **시크릿 키 발급 없이** `ctx.cbAdmin` 으로
34
+ 정기 토픽 알림(일일 리마인더 등)을 발송. 콘솔에서 `cb_sk_` 를 만들어 함수 secret 에 넣던
35
+ 단계가 사라져 "MCP/Functions 만으로 끝까지" 자동화가 가능해진다.
36
+ - 새 타입 `SendToTopicPayload` 추가 (`SendToMembersPayload` 와 동일 옵션, 대상만 토픽).
37
+
38
+ ```ts
39
+ await ctx.cbAdmin.push.sendToTopic(ctx.appId, 'daily-0900', {
40
+ title: '오늘의 학습 리마인더',
41
+ body: '잊지 말고 학습을 이어가세요!',
42
+ data: { route: '/today' },
43
+ })
44
+ ```
45
+
6
46
  ## [3.37.0] - 2026-06-25
7
47
 
8
48
  ### Changed (Breaking) — `cb.video.sendSuperChat` 시그니처 변경
package/README.md CHANGED
@@ -107,7 +107,7 @@ try {
107
107
  ## Features
108
108
 
109
109
  - **Real-time Game Server**: WebSocket-based multiplayer game state synchronization
110
- - **Authentication**: ID/Password, guest login, and OAuth social login support
110
+ - **Authentication**: ID/Password and OAuth social login support
111
111
  - **Database**: JSON-based NoSQL database with real-time queries
112
112
  - **Storage**: File storage with CDN support
113
113
  - **Push Notifications**: Cross-platform push notification support
@@ -525,9 +525,6 @@ const result = await cb.auth.signInMember({
525
525
  password: 'password123'
526
526
  })
527
527
 
528
- // Guest login
529
- const guest = await cb.auth.signInAsGuestMember()
530
-
531
528
  // OAuth login (redirect - recommended)
532
529
  await cb.oauth.signIn('google', 'https://myapp.com/oauth/callback')
533
530