Skip to content

aadarsh-st/SK-2812: Public Interface Cleanup#309

Merged
aadarsh-st merged 34 commits into
release/26.1.4from
aadarsh-st/SK-2812-clean
May 20, 2026
Merged

aadarsh-st/SK-2812: Public Interface Cleanup#309
aadarsh-st merged 34 commits into
release/26.1.4from
aadarsh-st/SK-2812-clean

Conversation

@aadarsh-st
Copy link
Copy Markdown
Collaborator

Summary

SK-2812: Public interface cleanup — standardizes naming conventions, adds deprecation warnings for renamed APIs, and improves internal code quality.

Naming convention changes (camelCase standardization)

Deprecated (old) | New -- | -- request_ID | requestId skyflow_id (response) | skyflowId clientID | clientId keyID | keyId tokenURI | tokenUri roleIDs | roleIds setDownloadURL() / getDownloadURL() | setDownloadUrl() / getDownloadUrl()

All old names still work but emit a [DEPRECATED] warning at runtime. Will be removed in v3.

FileUpload API change

FileUploadRequest(table, skyflowId, columnName) constructor deprecated — use FileUploadRequest(table, columnName) + FileUploadOptions.setSkyflowId(skyflowId) instead.

Other improvements

  • Refactored service-account JWT generation: uses clientId, keyId, tokenUri consistently; added normalizeTokenOptions for backward compat
  • Improved error handling in vault/detect controllers (async/await cleanup, null safety)
  • Added warn-once utility to suppress repeated deprecation log spam
  • Validation improvements in validateInsertInput, validateDetokenizeInput
  • Updated all samples, README, CHANGELOG, and API contract snapshots

aadarsh-st and others added 30 commits May 20, 2026 13:23
removeComments:true stripped @deprecated/@internal JSDoc from .d.ts
files, so api-extractor couldn't read them — generating a report that
differed from the committed snapshot.

Set removeComments:false so JSDoc annotations are preserved in compiled
output and api-extractor produces a consistent report across local and CI
builds.

Also update test to match enumerable:true on the request_ID deprecated alias.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previous snapshot was generated with removeComments:false, causing CI
mismatch. Regenerated with removeComments:true to match CI build output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aadarsh-st aadarsh-st merged commit 385c843 into release/26.1.4 May 20, 2026
2 checks 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