Conversation
Greptile SummaryThis PR bumps the Node.js SDK to version 26.1.0, adding new service methods and a broad architectural change that moves the
Confidence Score: 4/5Safe to merge for standard SDK consumers; the header refactor is consistently applied across all service files and the new methods follow established patterns. The header architecture change is intentional and consistently implemented across every touched service file. The two noted issues are minor: a test fixture uses the wrong
Important Files Changed
|
| setProject(value: string): this { | ||
| this.headers['X-Appwrite-Project'] = value; | ||
| this.config.project = value; | ||
| return this; | ||
| } |
There was a problem hiding this comment.
getHeaders() no longer includes X-Appwrite-Project
setKey(), setJWT(), setLocale(), and several other setters still write to this.headers, so getHeaders() continues to return those values. setProject() now only writes to this.config.project, so getHeaders() will silently omit the project header. Any consumer that calls client.getHeaders() to build a downstream request (e.g., forwarding headers or diagnostic logging) will receive an incomplete set and may produce requests that are rejected by the server for missing the project context. The asymmetry with the other setter methods makes this easy to miss.
This PR contains updates to the Node.js SDK for version 26.1.0.
What's Changed
createSesProviderandupdateSesProvidertomessagingupdateOAuth2Servertoprojectfor OAuth2 server settingsupdatePasswordStrengthPolicyandPolicyPasswordStrengthtoprojectgetAuditsDBhealth check tohealthpassword-strengthtoProjectPolicyIdapps.readandapps.writetoProjectKeyScopes