Skip to content

feat: SDK update for version 15.2.0#103

Merged
ArnabChatterjee20k merged 2 commits into
mainfrom
dev
Jun 25, 2026
Merged

feat: SDK update for version 15.2.0#103
ArnabChatterjee20k merged 2 commits into
mainfrom
dev

Conversation

@ArnabChatterjee20k

@ArnabChatterjee20k ArnabChatterjee20k commented Jun 24, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 15.2.0.

What's Changed

  • Added: Realtime connections now send the configured JWT for authentication.

@ArnabChatterjee20k ArnabChatterjee20k changed the title feat: Console SDK update for version 15.2.0 feat: SDK update for version 15.2.0 Jun 24, 2026
@greptile-apps

greptile-apps Bot commented Jun 24, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the Console SDK to version 15.2.0, adding JWT authentication support to realtime WebSocket connections and documenting a new resource dimension for the Usage API.

  • JWT in realtime URLs: Both client.ts and realtime.ts now append the configured JWT as an encodeURIComponent-encoded query parameter to the WebSocket URL when config.jwt is set. The two code paths are independent (each manages its own WebSocket instance), so there is no double-encoding risk.
  • Usage dimensions doc update: resource is added to the allowed dimensions list in the usage.ts JSDoc for both call signatures.
  • Version bump: package.json, package-lock.json, client.ts header, README.md CDN URL, and CHANGELOG.md are all updated to 15.2.0.

Confidence Score: 5/5

Safe to merge — changes are narrowly scoped to appending a JWT query parameter to the WebSocket URL and a documentation update.

The JWT is properly guarded by a truthiness check and encoded with encodeURIComponent in both realtime code paths. The two paths (client.ts and realtime.ts) create independent WebSocket connections, so there is no duplication. The usage.ts change is documentation-only. No logic regressions are visible in the diff.

No files require special attention.

Important Files Changed

Filename Overview
src/client.ts Version header bumped to 15.2.0; JWT appended as an encoded query parameter to the realtime WebSocket URL when present in config
src/services/realtime.ts JWT appended as an encoded query parameter to the WebSocket URL in createSocketLocked(), mirroring the same change in client.ts
src/services/usage.ts JSDoc updated to add 'resource' as an allowed value for the dimensions parameter in both the params-object and positional overloads
CHANGELOG.md Added 15.2.0 changelog entry noting JWT support in realtime connections
package.json Version bumped from 15.1.1 to 15.2.0

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

Comment thread CHANGELOG.md
Comment thread src/services/realtime.ts
@ArnabChatterjee20k ArnabChatterjee20k changed the title feat: SDK update for version 15.2.0 feat: Console SDK update for version 15.2.0 Jun 25, 2026
@ArnabChatterjee20k ArnabChatterjee20k changed the title feat: Console SDK update for version 15.2.0 feat: SDK update for version 15.2.0 Jun 25, 2026
@ArnabChatterjee20k ArnabChatterjee20k merged commit 93e1ded into main Jun 25, 2026
1 check passed
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.

2 participants