Skip to content

Commit 5c0a2a6

Browse files
chore: Release 0.11.1 with Correlation Data Patch Fix (#328)
1 parent ec38dc1 commit 5c0a2a6

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
## [0.11.1] - 2024-11-29
6+
7+
### Fixed
8+
- Support setting `source` and `sourceVersion` correlation data via `Coinbase.configure()`
9+
510
## [0.11.0] - 2024-11-27
611

712
### Added

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "ISC",
55
"description": "Coinbase Platform SDK",
66
"repository": "https://github.com/coinbase/coinbase-sdk-nodejs",
7-
"version": "0.11.0",
7+
"version": "0.11.1",
88
"main": "dist/index.js",
99
"types": "dist/index.d.ts",
1010
"scripts": {

src/coinbase/coinbase.ts

+6
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ export class Coinbase {
183183
* @param options.useServerSigner - Whether to use a Server-Signer or not. Defaults to false.
184184
* @param options.debugging - If true, logs API requests and responses to the console. Defaults to false.
185185
* @param options.basePath - The base path for the API. Defaults to BASE_PATH.
186+
* @param options.source - Optional source string to be sent with the API requests. Defaults to `sdk`.
187+
* @param options.sourceVersion - Optional source version string to be sent with the API requests.
186188
* @returns A new instance of the Coinbase SDK.
187189
*/
188190
static configure({
@@ -191,13 +193,17 @@ export class Coinbase {
191193
useServerSigner = false,
192194
debugging = false,
193195
basePath = BASE_PATH,
196+
source = "sdk",
197+
sourceVersion = undefined,
194198
}: CoinbaseOptions) {
195199
return new Coinbase({
196200
apiKeyName,
197201
privateKey,
198202
useServerSigner,
199203
debugging,
200204
basePath,
205+
source,
206+
sourceVersion,
201207
});
202208
}
203209

0 commit comments

Comments
 (0)