Skip to content

Commit 8eb4c5b

Browse files
authored
Merge pull request #4 from brapi-dev/release-please--branches--main--changes--next--components--brapi
release: 1.0.3
2 parents 883f7c8 + 4a92a49 commit 8eb4c5b

File tree

7 files changed

+75
-18
lines changed

7 files changed

+75
-18
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.2"
2+
".": "1.0.3"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/alisson%2Fbrapi-11630ce70d2f2c187912989dd9004b10828eaab889f617ba39d5a7a8e4b03b62.yml
3-
openapi_spec_hash: 4198e5f7a76f3002723c113663465c00
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/alisson%2Fbrapi-76a60a630b8eaac37bdec27ffec5cbdf6640fb884186adb08211f1b81832c075.yml
3+
openapi_spec_hash: 51fab4b9fd59ce7421f3fdf03644c987
44
config_hash: 6f10a67950f65bf850612b59838ad03b

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 1.0.3 (2026-01-09)
4+
5+
Full Changelog: [v1.0.2...v1.0.3](https://github.com/brapi-dev/brapi-typescript/compare/v1.0.2...v1.0.3)
6+
7+
### Chores
8+
9+
* break long lines in snippets into multiline ([0ad21db](https://github.com/brapi-dev/brapi-typescript/commit/0ad21db412ef19e1bfaa289dade2d847841e4340))
10+
* **internal:** codegen related update ([7f1e27e](https://github.com/brapi-dev/brapi-typescript/commit/7f1e27ee7cef8d6e1d85c6aef27aa59b8b15c3c9))
11+
312
## 1.0.2 (2025-12-06)
413

514
Full Changelog: [v1.0.1...v1.0.2](https://github.com/brapi-dev/brapi-typescript/compare/v1.0.1...v1.0.2)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Brapi
189+
Copyright 2026 Brapi
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brapi",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "The official TypeScript library for the Brapi API",
55
"author": "Brapi <contact@brapi.dev>",
66
"types": "dist/index.d.ts",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '1.0.2'; // x-release-please-version
1+
export const VERSION = '1.0.3'; // x-release-please-version

tests/index.test.ts

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ describe('instantiate client', () => {
8787
error: jest.fn(),
8888
};
8989

90-
const client = new Brapi({ logger: logger, logLevel: 'debug', apiKey: 'My API Key' });
90+
const client = new Brapi({
91+
logger: logger,
92+
logLevel: 'debug',
93+
apiKey: 'My API Key',
94+
});
9195

9296
await forceAPIResponseForClient(client);
9397
expect(debugMock).toHaveBeenCalled();
@@ -107,7 +111,11 @@ describe('instantiate client', () => {
107111
error: jest.fn(),
108112
};
109113

110-
const client = new Brapi({ logger: logger, logLevel: 'info', apiKey: 'My API Key' });
114+
const client = new Brapi({
115+
logger: logger,
116+
logLevel: 'info',
117+
apiKey: 'My API Key',
118+
});
111119

112120
await forceAPIResponseForClient(client);
113121
expect(debugMock).not.toHaveBeenCalled();
@@ -157,7 +165,11 @@ describe('instantiate client', () => {
157165
};
158166

159167
process.env['BRAPI_LOG'] = 'debug';
160-
const client = new Brapi({ logger: logger, logLevel: 'off', apiKey: 'My API Key' });
168+
const client = new Brapi({
169+
logger: logger,
170+
logLevel: 'off',
171+
apiKey: 'My API Key',
172+
});
161173

162174
await forceAPIResponseForClient(client);
163175
expect(debugMock).not.toHaveBeenCalled();
@@ -173,7 +185,11 @@ describe('instantiate client', () => {
173185
};
174186

175187
process.env['BRAPI_LOG'] = 'not a log level';
176-
const client = new Brapi({ logger: logger, logLevel: 'debug', apiKey: 'My API Key' });
188+
const client = new Brapi({
189+
logger: logger,
190+
logLevel: 'debug',
191+
apiKey: 'My API Key',
192+
});
177193
expect(client.logLevel).toBe('debug');
178194
expect(warnMock).not.toHaveBeenCalled();
179195
});
@@ -267,7 +283,11 @@ describe('instantiate client', () => {
267283
return new Response(JSON.stringify({}), { headers: { 'Content-Type': 'application/json' } });
268284
};
269285

270-
const client = new Brapi({ baseURL: 'http://localhost:5000/', apiKey: 'My API Key', fetch: testFetch });
286+
const client = new Brapi({
287+
baseURL: 'http://localhost:5000/',
288+
apiKey: 'My API Key',
289+
fetch: testFetch,
290+
});
271291

272292
await client.patch('/foo');
273293
expect(capturedRequest?.method).toEqual('PATCH');
@@ -320,7 +340,11 @@ describe('instantiate client', () => {
320340
`"Ambiguous URL; The \`baseURL\` option (or BRAPI_BASE_URL env var) and the \`environment\` option are given. If you want to use the environment you must pass baseURL: null"`,
321341
);
322342

323-
const client = new Brapi({ apiKey: 'My API Key', baseURL: null, environment: 'production' });
343+
const client = new Brapi({
344+
apiKey: 'My API Key',
345+
baseURL: null,
346+
environment: 'production',
347+
});
324348
expect(client.baseURL).toEqual('https://brapi.dev');
325349
});
326350

@@ -358,7 +382,11 @@ describe('instantiate client', () => {
358382

359383
describe('withOptions', () => {
360384
test('creates a new client with overridden options', async () => {
361-
const client = new Brapi({ baseURL: 'http://localhost:5000/', maxRetries: 3, apiKey: 'My API Key' });
385+
const client = new Brapi({
386+
baseURL: 'http://localhost:5000/',
387+
maxRetries: 3,
388+
apiKey: 'My API Key',
389+
});
362390

363391
const newClient = client.withOptions({
364392
maxRetries: 5,
@@ -398,7 +426,11 @@ describe('instantiate client', () => {
398426
});
399427

400428
test('respects runtime property changes when creating new client', () => {
401-
const client = new Brapi({ baseURL: 'http://localhost:5000/', timeout: 1000, apiKey: 'My API Key' });
429+
const client = new Brapi({
430+
baseURL: 'http://localhost:5000/',
431+
timeout: 1000,
432+
apiKey: 'My API Key',
433+
});
402434

403435
// Modify the client properties directly after creation
404436
client.baseURL = 'http://localhost:6000/';
@@ -544,7 +576,11 @@ describe('retries', () => {
544576
return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } });
545577
};
546578

547-
const client = new Brapi({ apiKey: 'My API Key', timeout: 10, fetch: testFetch });
579+
const client = new Brapi({
580+
apiKey: 'My API Key',
581+
timeout: 10,
582+
fetch: testFetch,
583+
});
548584

549585
expect(await client.request({ path: '/foo', method: 'get' })).toEqual({ a: 1 });
550586
expect(count).toEqual(2);
@@ -574,7 +610,11 @@ describe('retries', () => {
574610
return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } });
575611
};
576612

577-
const client = new Brapi({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 });
613+
const client = new Brapi({
614+
apiKey: 'My API Key',
615+
fetch: testFetch,
616+
maxRetries: 4,
617+
});
578618

579619
expect(await client.request({ path: '/foo', method: 'get' })).toEqual({ a: 1 });
580620

@@ -598,7 +638,11 @@ describe('retries', () => {
598638
capturedRequest = init;
599639
return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } });
600640
};
601-
const client = new Brapi({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 });
641+
const client = new Brapi({
642+
apiKey: 'My API Key',
643+
fetch: testFetch,
644+
maxRetries: 4,
645+
});
602646

603647
expect(
604648
await client.request({
@@ -660,7 +704,11 @@ describe('retries', () => {
660704
capturedRequest = init;
661705
return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } });
662706
};
663-
const client = new Brapi({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 });
707+
const client = new Brapi({
708+
apiKey: 'My API Key',
709+
fetch: testFetch,
710+
maxRetries: 4,
711+
});
664712

665713
expect(
666714
await client.request({

0 commit comments

Comments
 (0)