Skip to content

feat: Console SDK update for version 11.0.0#85

Merged
ChiragAgg5k merged 3 commits intomainfrom
dev
Apr 23, 2026
Merged

feat: Console SDK update for version 11.0.0#85
ChiragAgg5k merged 3 commits intomainfrom
dev

Conversation

@premtsd-code
Copy link
Copy Markdown
Contributor

@premtsd-code premtsd-code commented Apr 16, 2026

This PR contains updates to the SDK for version 11.0.0.

What's Changed

  • Breaking: Switched Realtime subscriptions to subscribe message lifecycle flow.
  • Breaking: Updated project policy endpoints and examples under singular project paths.
  • Added: Added detection runtime and framework enums for repository analysis.
  • Updated: Updated X-Appwrite-Response-Format header to 1.9.2.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 16, 2026

Greptile Summary

This PR upgrades the Console SDK to v11.0.0 targeting Appwrite server 1.9.2, with a major refactor of the Realtime layer (subscription management moved from URL query parameters to WebSocket subscribe/unsubscribe messages with client-generated UUIDs), new policy management endpoints in project.ts, removal of SMS template endpoints and enums, and several breaking model field renames.

  • P1 — client.ts unsubscribe leaks server-side subscription: The cleanup closure returned by Client.subscribe() removes the subscription locally but never sends an unsubscribe WebSocket message to the server when other subscriptions are still active. The server keeps pushing events for the cancelled subscription indefinitely. realtime.ts handles this correctly via sendUnsubscribeMessage() — the same pattern needs to be applied in client.ts.

Confidence Score: 4/5

Safe to merge after fixing the missing server-side unsubscribe in client.ts.

One confirmed P1 bug: the cleanup closure in Client.subscribe() never sends an unsubscribe message to the server, causing server-side resource leaks for multi-subscription sessions. The rest of the changes — new endpoints, enum renames, model field additions, and the realtime.ts refactor — look correct and consistent.

src/client.ts — the subscribe cleanup closure (lines 869-882) needs a server-side unsubscribe call.

Important Files Changed

Filename Overview
src/client.ts Major Realtime refactor: subscription management moved to WebSocket subscribe/unsubscribe messages with client-generated UUIDs; the returned cleanup closure is missing the server-side unsubscribe call (P1).
src/services/realtime.ts Substantial refactor matching the new subscribe-message protocol; correctly sends unsubscribe messages and re-subscribes on reconnect; new update() and disconnect() APIs look sound.
src/models.ts Breaking field renames (smtpReplyTo → smtpReplyToEmail, EmailTemplate.type → templateId, replyTo → replyToEmail) and SmsTemplate model removal consistent with v11.0.0 intent; new membership/SMTP fields added.
src/services/project.ts Large batch of new policy management and email-template endpoints added; patterns consistent with existing service style.
src/services/projects.ts SMS template and legacy auth endpoints removed; remaining endpoints refactored to match new v11 API surface.
src/index.ts Exports updated: SMTPSecure/SmsTemplateType/SmsTemplateLocale removed, Secure/DetectionFrameworkType/DetectionRuntimeType added; mirrors enum file changes.
src/enums/secure.ts New Secure enum replacing smtp-secure.ts with Tls/Ssl values; clean rename.

Reviews (3): Last reviewed commit: "chore: update Console SDK to 11.0.0" | Re-trigger Greptile

Comment thread CHANGELOG.md
Comment thread README.md Outdated
@ChiragAgg5k ChiragAgg5k changed the title feat: Console SDK update for version 10.0.0 feat: Console SDK update for version 11.0.0 Apr 22, 2026
Comment thread src/client.ts
@ChiragAgg5k ChiragAgg5k merged commit b80071d into main Apr 23, 2026
1 check passed
@ChiragAgg5k ChiragAgg5k deleted the dev branch April 23, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants