Skip to content

Commit

Permalink
chore: Release 0.11.1 with Correlation Data Patch Fix (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase authored Dec 2, 2024
1 parent ec38dc1 commit 5c0a2a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## [0.11.1] - 2024-11-29

### Fixed
- Support setting `source` and `sourceVersion` correlation data via `Coinbase.configure()`

## [0.11.0] - 2024-11-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "ISC",
"description": "Coinbase Platform SDK",
"repository": "https://github.com/coinbase/coinbase-sdk-nodejs",
"version": "0.11.0",
"version": "0.11.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/coinbase/coinbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export class Coinbase {
* @param options.useServerSigner - Whether to use a Server-Signer or not. Defaults to false.
* @param options.debugging - If true, logs API requests and responses to the console. Defaults to false.
* @param options.basePath - The base path for the API. Defaults to BASE_PATH.
* @param options.source - Optional source string to be sent with the API requests. Defaults to `sdk`.
* @param options.sourceVersion - Optional source version string to be sent with the API requests.
* @returns A new instance of the Coinbase SDK.
*/
static configure({
Expand All @@ -191,13 +193,17 @@ export class Coinbase {
useServerSigner = false,
debugging = false,
basePath = BASE_PATH,
source = "sdk",
sourceVersion = undefined,
}: CoinbaseOptions) {
return new Coinbase({
apiKeyName,
privateKey,
useServerSigner,
debugging,
basePath,
source,
sourceVersion,
});
}

Expand Down

0 comments on commit 5c0a2a6

Please sign in to comment.