Skip to content

Commit

Permalink
Merge pull request #15 from clear-street/release-please--branches--ma…
Browse files Browse the repository at this point in the history
…in--changes--next--components--studio-sdk

release: 0.1.0-alpha.4
  • Loading branch information
sachnk authored Jul 10, 2024
2 parents 8a8694a + 6b47fb6 commit 7399c2e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.3"
".": "0.1.0-alpha.4"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.4 (2024-07-10)

Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/clear-street/studio-sdk-node/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

### Features

* **api:** update via SDK Studio ([#14](https://github.com/clear-street/studio-sdk-node/issues/14)) ([e36f6f4](https://github.com/clear-street/studio-sdk-node/commit/e36f6f4ec4d991bc59513570285b00edf4847262))

## 0.1.0-alpha.3 (2024-07-10)

Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/clear-street/studio-sdk-node/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import StudioSDK from '@clear-street/studio-sdk';
const studioSDK = new StudioSDK();

async function main() {
const entity = await studioSDK.entities.retrieve('REPLACE_ME');
const entity = await studioSDK.entities.retrieve('<your-entity-id>');

console.log(entity.entity_id);
}
Expand All @@ -44,7 +44,7 @@ import StudioSDK from '@clear-street/studio-sdk';
const studioSDK = new StudioSDK();

async function main() {
const entity: StudioSDK.Entity = await studioSDK.entities.retrieve('REPLACE_ME');
const entity: StudioSDK.Entity = await studioSDK.entities.retrieve('<your-entity-id>');
}

main();
Expand All @@ -61,7 +61,7 @@ a subclass of `APIError` will be thrown:
<!-- prettier-ignore -->
```ts
async function main() {
const entity = await studioSDK.entities.retrieve('REPLACE_ME').catch(async (err) => {
const entity = await studioSDK.entities.retrieve('<your-entity-id>').catch(async (err) => {
if (err instanceof StudioSDK.APIError) {
console.log(err.status); // 400
console.log(err.name); // BadRequestError
Expand Down Expand Up @@ -104,7 +104,7 @@ const studioSDK = new StudioSDK({
});

// Or, configure per-request:
await studioSDK.entities.retrieve('REPLACE_ME', {
await studioSDK.entities.retrieve('<your-entity-id>', {
maxRetries: 5,
});
```
Expand All @@ -121,7 +121,7 @@ const studioSDK = new StudioSDK({
});

// Override per-request:
await studioSDK.entities.retrieve('REPLACE_ME', {
await studioSDK.entities.retrieve('<your-entity-id>', {
timeout: 5 * 1000,
});
```
Expand All @@ -142,11 +142,11 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
```ts
const studioSDK = new StudioSDK();

const response = await studioSDK.entities.retrieve('REPLACE_ME').asResponse();
const response = await studioSDK.entities.retrieve('<your-entity-id>').asResponse();
console.log(response.headers.get('X-My-Header'));
console.log(response.statusText); // access the underlying Response object

const { data: entity, response: raw } = await studioSDK.entities.retrieve('REPLACE_ME').withResponse();
const { data: entity, response: raw } = await studioSDK.entities.retrieve('<your-entity-id>').withResponse();
console.log(raw.headers.get('X-My-Header'));
console.log(entity.entity_id);
```
Expand Down Expand Up @@ -252,7 +252,7 @@ const studioSDK = new StudioSDK({
});

// Override per-request:
await studioSDK.entities.retrieve('REPLACE_ME', {
await studioSDK.entities.retrieve('<your-entity-id>', {
httpAgent: new http.Agent({ keepAlive: false }),
});
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clear-street/studio-sdk",
"version": "0.1.0-alpha.3",
"version": "0.1.0-alpha.4",
"description": "The official TypeScript library for the Studio SDK API",
"author": "Studio SDK <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-alpha.3'; // x-release-please-version
export const VERSION = '0.1.0-alpha.4'; // x-release-please-version

0 comments on commit 7399c2e

Please sign in to comment.