anthropic-sdk-typescript sdk-v0.136.0
- Source
- github.com
- Publisher
- Anthropic
- Author
- anthropic-sdks-releaser[bot]Top Viber
- Date

Context
Version 0.136.0 of Anthropic's TypeScript SDK, the @anthropic-ai/sdk package for calling Anthropic's API from JavaScript and TypeScript, was published on October 20 (release notes). Its two bug fixes are small but concrete: one keeps an AWS out of debug logs, and the other stops the SDK's memory tool from altering text that contains dollar signs. The other entries, such as making User Profiles generally available and adding fields to analytics report pages and workspace rate-limit updates to the Admin API, are listed without further description. The SDK reached version 1.0.0 the next day.
The logging fix matters to anyone who turns the SDK's log level up to debug (the default is warn). At that level the SDK logs the details of each request and replaces the values of sensitive headers, such as , x-api-key and cookie, with "***". This release adds x-amz-security-token to that list (commit). AWS requests signed with temporary credentials carry the session token in that header or in the query string (AWS documentation), and the SDK's AWS accepts a session token for temporary credentials. Before the change, a debug log of a request carrying that header would have printed its value as is.
The memory tool fix is in the helper that stores the files of Claude's memory tool on the local disk. Its str_replace command swaps one piece of text for another, and it did so by passing the new text to JavaScript's replace method as a string. In that form, JavaScript treats sequences such as $$, $& and $' as special patterns, for example inserting the matched text in place of $& (MDN), so new text containing them, like a formula written as $$x^2$$, was written incorrectly. The fix passes the new text through a , whose result JavaScript inserts literally, and a new test checks that "$$x^2$$ $& $` $'" is saved unchanged (commit).
- Credential — Something presented with a request to prove that the sender is a particular identity, such as a password or a generated key.
- Authorization — The check that an authenticated identity is permitted to perform a particular operation on a particular resource.
- Client — The program that sends a request to a server and receives its response.
- Function — A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.






