Releases: skyflowapi/skyflow-node
2.1.0
What's Changed
-
Public interface cleanup (snake_case → camelCase) —
SkyflowError/ISkyflowError
fields renamed:
http_code→httpCode,
http_status→httpStatus,
grpc_code→grpcCode,
request_ID→requestId.
Legacy field names continue to work and emit deprecation warnings. -
setDownloadUrl()/getDownloadUrl()— new canonical methods on
DetokenizeOptionsandGetOptions; legacysetDownloadURL()/getDownloadURL()retained as deprecated delegates. -
FileUploadRequestconstructor normalization — canonical constructor is now:
new FileUploadRequest(table, columnName).
The legacy 3-argument formnew FileUploadRequest(table, skyflowId, columnName)is deprecated.
skyflowIdshould now be configured throughFileUploadOptions.setSkyflowId()/getSkyflowId(). -
roleIdsnormalization —BearerTokenOptions.roleIDsrenamed toroleIds.
LegacyroleIDsis automatically remapped internally and emits a deprecation warning.
If both are provided,roleIdstakes precedence. -
Credential field aliases — credential JSON files now accept camelCase keys (
clientId,keyId,tokenUri) alongside legacy forms (clientID,keyID,tokenURI).
Existing credential files continue to work unchanged. -
SkyflowRecordError.requestId— new canonical field;
legacyrequest_IDretained as a deprecated alias with warning emission. -
invokeConnectioncontent-type handling — request and response payloads now correctly handle:
application/json,
application/x-www-form-urlencoded,
text/plain,
multipart/form-data,
text/xml,
application/xml,
andtext/html.
Previously, mismatched request/response content-types could cause incorrect serialization behavior. -
Custom
tokenUrisupport —BearerTokenOptions,
SignedDataTokensOptions, andCredentialsnow accept atokenUrifield to override the default token endpoint URL
when generating bearer tokens. -
Response type tightening
InsertResponse.insertedFieldsis now guaranteed to be non-null ([]instead ofnull)DeleteResponse.deletedIdsis now guaranteed to be defined ([]instead ofundefined)DeidentifyFileResponseandDeidentifyTextResponsenow include:
errors: Array<SkyflowRecordError> | null
Deprecations
| Deprecated | Replacement |
|---|---|
error.http_code / http_status / grpc_code / request_ID |
error.httpCode / httpStatus / grpcCode / requestId |
setDownloadURL() / getDownloadURL() |
setDownloadUrl() / getDownloadUrl() |
new FileUploadRequest(table, skyflowId, columnName) |
new FileUploadRequest(table, columnName) + FileUploadOptions.setSkyflowId() |
BearerTokenOptions.roleIDs |
roleIds |
clientID / keyID / tokenURI in credentials |
clientId / keyId / tokenUri |
record.request_ID on SkyflowRecordError |
record.requestId |
skyflow_id in record/response objects |
skyflowId |
InsertResponse.insertedFields === null checks |
Use [] — field is never null |
DeleteResponse.deletedIds === undefined checks |
Use [] — field is never undefined |
All deprecated forms continue to work and emit a
WARN-level log message.
They will be removed in a future major release.
Full Changelog: 2.0.4...2.1.0
2.0.4
What's Changed
- Reduced repeated client initialisation overhead to improve SDK performance and efficiency.
Full Changelog: 2.0.3...2.0.4
2.0.3
What's Changed
- Fixed a crash in deidentifyFile when waitTime is exceeded before processing completes.
- Updated npm publishing strategy so v1.x releases continue under the v1 dist-tag while latest points to v2 releases.
Full Changelog: 2.0.2...2.0.3
1.14.3
2.0.2
What's Changed
- Added support for JSON object context in vault credentials
Full Changelog: 2.0.1...2.0.2
2.0.1
What's Changed
- Added support for JSON objects in ctx during bearer token generation requests.
Full Changelog: 2.0.0...2.0.1
1.14.2
What's Changed
- SK-2196 fix critical vulnerabilities by @skyflow-shravan in #239
- SK-2328 fix critical vulnerabilities by @skyflow-shravan in #252
Full Changelog: 1.14.1...1.14.2
2.0.0
What's Changed
- SK-1729: Public Release V2 by @saileshwar-skyflow in #247
Full Changelog: 1.14.1...2.0.0
2.2.1-beta.1
What's Changed
- SK-2198: Update with latest Detect API changes (v4.0) by @saileshwar-skyflow in #240
Full Changelog: 2.2.0-beta.1...2.2.1-beta.1
2.2.0-beta.1
What's Changed
- SK-2134 include file path and file object in request response by @skyflow-shravan in #230
Full Changelog: 1.14.1...2.2.0-beta.1