Skip to content

Commit ea626c2

Browse files
release: 0.1.0-alpha.2 (#2)
* feat(api): parent build id * feat(api): use correct hashes * feat(api): manual updates * chore(perf): faster base64 decoding * chore(ci): add timeout thresholds for CI jobs * chore(internal): codegen related update * chore(ci): only use depot for staging repos * feat(api): configs * feat(api): manual updates * feat(api): rename api key * chore(internal): refactor utils * feat(api): manual updates * feat(api): manual updates * docs(readme): fix typo * chore: bump go sdk version * fix: update request schema for Postman webhook * chore(internal): codegen related update * chore(internal): share typescript helpers * feat(api): enable macos publishing * feat(client): add withOptions helper * chore(client): drop support for EOL node versions * fix(client): always overwrite when merging headers * chore(package): remove engines * feat(api): add build compare to v0 * codegen metadata * release: 0.1.0-alpha.2 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent be552ee commit ea626c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4453
-293
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"postCreateCommand": "yarn install",
1010
"customizations": {
1111
"vscode": {
12-
"extensions": [
13-
"esbenp.prettier-vscode"
14-
]
12+
"extensions": ["esbenp.prettier-vscode"]
1513
}
1614
}
1715
}

.github/workflows/ci.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
jobs:
1212
lint:
13+
timeout-minutes: 10
1314
name: lint
14-
runs-on: ubuntu-latest
15+
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
1516
steps:
1617
- uses: actions/checkout@v4
1718

1819
- name: Set up Node
1920
uses: actions/setup-node@v4
2021
with:
21-
node-version: '18'
22+
node-version: '20'
2223

2324
- name: Bootstrap
2425
run: ./scripts/bootstrap
@@ -27,8 +28,9 @@ jobs:
2728
run: ./scripts/lint
2829

2930
build:
31+
timeout-minutes: 5
3032
name: build
31-
runs-on: ubuntu-latest
33+
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3234
permissions:
3335
contents: read
3436
id-token: write
@@ -38,7 +40,7 @@ jobs:
3840
- name: Set up Node
3941
uses: actions/setup-node@v4
4042
with:
41-
node-version: '18'
43+
node-version: '20'
4244

4345
- name: Bootstrap
4446
run: ./scripts/bootstrap
@@ -61,15 +63,16 @@ jobs:
6163
SHA: ${{ github.sha }}
6264
run: ./scripts/utils/upload-artifact.sh
6365
test:
66+
timeout-minutes: 10
6467
name: test
65-
runs-on: ubuntu-latest
68+
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6669
steps:
6770
- uses: actions/checkout@v4
6871

6972
- name: Set up Node
7073
uses: actions/setup-node@v4
7174
with:
72-
node-version: '18'
75+
node-version: '20'
7376

7477
- name: Bootstrap
7578
run: ./scripts/bootstrap

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ jobs:
1818
run: |
1919
bash ./bin/check-release-environment
2020
env:
21-

.release-please-manifest.json

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-9c4cbbd20ce1628e48129ad8e871b729c3f774c5d1ff4cbc560fca81db611d93.yml
3-
openapi_spec_hash: e511d8f4716a56182b97d139eb89b68a
4-
config_hash: 1bee02a0eeb902e1ea32aa032bc70f54
1+
configured_endpoints: 15
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-6707704fb4cbc87d367d0813979036b8acbcc7f6eff62f7f5e8b9f016920d3ad.yml
3+
openapi_spec_hash: 3af7623ae449e42f72c7319fa3f8e387
4+
config_hash: 28c1ddd1e9bdba67e018459acdfafc5b

CHANGELOG.md

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

3+
## 0.1.0-alpha.2 (2025-05-13)
4+
5+
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
6+
7+
### Features
8+
9+
* **api:** add build compare to v0 ([2e583d1](https://github.com/stainless-api/stainless-api-typescript/commit/2e583d15ebcd52bfe43196fe58dac79f45761e08))
10+
* **api:** configs ([021eac6](https://github.com/stainless-api/stainless-api-typescript/commit/021eac6182c5f01bf9dd2c31f5277fa6cd159a1b))
11+
* **api:** enable macos publishing ([77ebd7c](https://github.com/stainless-api/stainless-api-typescript/commit/77ebd7c56b71f35e78921d3376b8daf568e39c50))
12+
* **api:** manual updates ([118d1d1](https://github.com/stainless-api/stainless-api-typescript/commit/118d1d15878c6737307d4796535a74a8a5fab39a))
13+
* **api:** manual updates ([41114a1](https://github.com/stainless-api/stainless-api-typescript/commit/41114a19b3bd85fc0cc5ba7a5655275f5ac97b99))
14+
* **api:** manual updates ([056d6bf](https://github.com/stainless-api/stainless-api-typescript/commit/056d6bf0862e908fddabea49cee3ec4e35985060))
15+
* **api:** manual updates ([54866aa](https://github.com/stainless-api/stainless-api-typescript/commit/54866aa84f9bf8e27acfc948b94175975af61551))
16+
* **api:** parent build id ([894f36b](https://github.com/stainless-api/stainless-api-typescript/commit/894f36b21905f492a5354b0a1d87f3f30346fae4))
17+
* **api:** rename api key ([642780a](https://github.com/stainless-api/stainless-api-typescript/commit/642780a0c31945be6b2186abf07bb24f6d2013c2))
18+
* **api:** use correct hashes ([df1c791](https://github.com/stainless-api/stainless-api-typescript/commit/df1c791cc9fece7a26b60ea5f17a0b4a5772b289))
19+
* **client:** add withOptions helper ([e7ec49d](https://github.com/stainless-api/stainless-api-typescript/commit/e7ec49d3c6f8fe87ad5d11c77da697e50fa9e9fb))
20+
21+
22+
### Bug Fixes
23+
24+
* **client:** always overwrite when merging headers ([4d180e0](https://github.com/stainless-api/stainless-api-typescript/commit/4d180e0da23b27c22f8e8632a5f842448ac0cdc5))
25+
* update request schema for Postman webhook ([2c590eb](https://github.com/stainless-api/stainless-api-typescript/commit/2c590eb86e83dcc54d30b3104a2e7de9299c35b6))
26+
27+
28+
### Chores
29+
30+
* bump go sdk version ([b7f0264](https://github.com/stainless-api/stainless-api-typescript/commit/b7f02648ab3791d3a566a1d790b17d40dae10e9a))
31+
* **ci:** add timeout thresholds for CI jobs ([7d94fbd](https://github.com/stainless-api/stainless-api-typescript/commit/7d94fbd1d7173a27d554ff6e4d033e8c76a45e35))
32+
* **ci:** only use depot for staging repos ([5cd101b](https://github.com/stainless-api/stainless-api-typescript/commit/5cd101b5e1e8088d589f377a637f5a9dd2d6ac34))
33+
* **client:** drop support for EOL node versions ([8a3c07b](https://github.com/stainless-api/stainless-api-typescript/commit/8a3c07bbf7a0e87abaf0ebf453b2ff33181bf197))
34+
* **internal:** codegen related update ([d9bd40e](https://github.com/stainless-api/stainless-api-typescript/commit/d9bd40e22f070cbda2d5dad163c50dd1a3ecc369))
35+
* **internal:** codegen related update ([79c9751](https://github.com/stainless-api/stainless-api-typescript/commit/79c9751e084e40662779c187eedc8720d2ddd291))
36+
* **internal:** refactor utils ([c033a80](https://github.com/stainless-api/stainless-api-typescript/commit/c033a8026d5757a33ae4e4540e1aac51c861ed37))
37+
* **internal:** share typescript helpers ([b41cddd](https://github.com/stainless-api/stainless-api-typescript/commit/b41cddd3715e545ad5917ac1328a81fd3ddbe5b1))
38+
* **package:** remove engines ([c089302](https://github.com/stainless-api/stainless-api-typescript/commit/c08930299ad02892bd6a3714c76ac4969cbb78db))
39+
* **perf:** faster base64 decoding ([f7b9d5d](https://github.com/stainless-api/stainless-api-typescript/commit/f7b9d5d50fff5205d247d3c5987ad000f08f4f6e))
40+
41+
42+
### Documentation
43+
44+
* **readme:** fix typo ([412d6bc](https://github.com/stainless-api/stainless-api-typescript/commit/412d6bc1f9f1816ed3cffd6412572245ce9cc6f2))
45+
346
## 0.1.0-alpha.1 (2025-04-21)
447

548
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/stainless-api/stainless-api-typescript/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function main() {
8585
main();
8686
```
8787

88-
Error codes are as followed:
88+
Error codes are as follows:
8989

9090
| Status Code | Error Type |
9191
| ----------- | -------------------------- |
@@ -362,7 +362,7 @@ TypeScript >= 4.9 is supported.
362362
The following runtimes are supported:
363363

364364
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
365-
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
365+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
366366
- Deno v1.28.0 or higher.
367367
- Bun 1.0 or later.
368368
- Cloudflare Workers.

api.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ Types:
44

55
- <code><a href="./src/resources/projects/projects.ts">ProjectRetrieveResponse</a></code>
66
- <code><a href="./src/resources/projects/projects.ts">ProjectUpdateResponse</a></code>
7+
- <code><a href="./src/resources/projects/projects.ts">ProjectListResponse</a></code>
78

89
Methods:
910

1011
- <code title="get /v0/projects/{projectName}">client.projects.<a href="./src/resources/projects/projects.ts">retrieve</a>(projectName) -> ProjectRetrieveResponse</code>
1112
- <code title="patch /v0/projects/{projectName}">client.projects.<a href="./src/resources/projects/projects.ts">update</a>(projectName, { ...params }) -> ProjectUpdateResponse</code>
13+
- <code title="get /v0/projects">client.projects.<a href="./src/resources/projects/projects.ts">list</a>({ ...params }) -> ProjectListResponse</code>
1214

1315
## Branches
1416

@@ -21,19 +23,43 @@ Methods:
2123
- <code title="post /v0/projects/{project}/branches">client.projects.branches.<a href="./src/resources/projects/branches.ts">create</a>(project, { ...params }) -> ProjectBranch</code>
2224
- <code title="get /v0/projects/{project}/branches/{branch}">client.projects.branches.<a href="./src/resources/projects/branches.ts">retrieve</a>(branch, { ...params }) -> ProjectBranch</code>
2325

26+
## Configs
27+
28+
Types:
29+
30+
- <code><a href="./src/resources/projects/configs.ts">ConfigRetrieveResponse</a></code>
31+
- <code><a href="./src/resources/projects/configs.ts">ConfigGuessResponse</a></code>
32+
33+
Methods:
34+
35+
- <code title="get /v0/projects/{project}/configs">client.projects.configs.<a href="./src/resources/projects/configs.ts">retrieve</a>(project, { ...params }) -> ConfigRetrieveResponse</code>
36+
- <code title="post /v0/projects/{project}/configs/guess">client.projects.configs.<a href="./src/resources/projects/configs.ts">guess</a>(project, { ...params }) -> ConfigGuessResponse</code>
37+
38+
## Snippets
39+
40+
Types:
41+
42+
- <code><a href="./src/resources/projects/snippets.ts">SnippetCreateRequestResponse</a></code>
43+
44+
Methods:
45+
46+
- <code title="post /v0/projects/{projectName}/snippets/request">client.projects.snippets.<a href="./src/resources/projects/snippets.ts">createRequest</a>(projectName, { ...params }) -> SnippetCreateRequestResponse</code>
47+
2448
# Builds
2549

2650
Types:
2751

2852
- <code><a href="./src/resources/builds.ts">BuildObject</a></code>
2953
- <code><a href="./src/resources/builds.ts">BuildTarget</a></code>
3054
- <code><a href="./src/resources/builds.ts">BuildListResponse</a></code>
55+
- <code><a href="./src/resources/builds.ts">BuildCompareResponse</a></code>
3156

3257
Methods:
3358

3459
- <code title="post /v0/builds">client.builds.<a href="./src/resources/builds.ts">create</a>({ ...params }) -> BuildObject</code>
3560
- <code title="get /v0/builds/{buildId}">client.builds.<a href="./src/resources/builds.ts">retrieve</a>(buildID) -> BuildObject</code>
3661
- <code title="get /v0/builds">client.builds.<a href="./src/resources/builds.ts">list</a>({ ...params }) -> BuildListResponse</code>
62+
- <code title="post /v0/builds/compare">client.builds.<a href="./src/resources/builds.ts">compare</a>({ ...params }) -> BuildCompareResponse</code>
3763

3864
# BuildTargetOutputs
3965

@@ -44,3 +70,15 @@ Types:
4470
Methods:
4571

4672
- <code title="get /v0/build_target_outputs">client.buildTargetOutputs.<a href="./src/resources/build-target-outputs.ts">retrieve</a>({ ...params }) -> BuildTargetOutputRetrieveResponse</code>
73+
74+
# Orgs
75+
76+
Types:
77+
78+
- <code><a href="./src/resources/orgs.ts">OrgRetrieveResponse</a></code>
79+
- <code><a href="./src/resources/orgs.ts">OrgListResponse</a></code>
80+
81+
Methods:
82+
83+
- <code title="get /v0/orgs/{orgName}">client.orgs.<a href="./src/resources/orgs.ts">retrieve</a>(orgName) -> OrgRetrieveResponse</code>
84+
- <code title="get /v0/orgs">client.orgs.<a href="./src/resources/orgs.ts">list</a>() -> OrgListResponse</code>

package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stainless-v0",
3-
"version": "0.1.0-alpha.1",
3+
"version": "0.1.0-alpha.2",
44
"description": "The official TypeScript library for the Stainless V0 API",
55
"author": "Stainless V0 <>",
66
"types": "dist/index.d.ts",
@@ -17,7 +17,7 @@
1717
"test": "./scripts/test",
1818
"build": "./scripts/build",
1919
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
20-
"format": "prettier --write --cache --cache-strategy metadata . !dist",
20+
"format": "./scripts/format",
2121
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
2222
"tsn": "ts-node -r tsconfig-paths/register",
2323
"lint": "./scripts/lint",
@@ -30,9 +30,9 @@
3030
"@swc/jest": "^0.2.29",
3131
"@types/jest": "^29.4.0",
3232
"@types/node": "^20.17.6",
33-
"typescript-eslint": "^8.24.0",
34-
"@typescript-eslint/eslint-plugin": "^8.24.0",
35-
"@typescript-eslint/parser": "^8.24.0",
33+
"typescript-eslint": "8.31.1",
34+
"@typescript-eslint/eslint-plugin": "8.31.1",
35+
"@typescript-eslint/parser": "8.31.1",
3636
"eslint": "^9.20.1",
3737
"eslint-plugin-prettier": "^5.2.3",
3838
"eslint-plugin-unused-imports": "^4.1.4",
@@ -42,17 +42,13 @@
4242
"publint": "^0.2.12",
4343
"ts-jest": "^29.1.0",
4444
"ts-node": "^10.5.0",
45-
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.3/tsc-multi.tgz",
45+
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.4/tsc-multi-1.1.4.tgz",
4646
"tsconfig-paths": "^4.0.0",
47-
"typescript": "^4.8.2"
47+
"typescript": "5.8.3"
4848
},
4949
"resolutions": {
5050
"synckit": "0.8.8"
5151
},
52-
"browser": {
53-
"./internal/shims/getBuiltinModule.mjs": "./internal/shims/nullGetBuiltinModule.mjs",
54-
"./internal/shims/getBuiltinModule.js": "./internal/shims/nullGetBuiltinModule.js"
55-
},
5652
"imports": {
5753
"stainless-v0": ".",
5854
"stainless-v0/*": "./src/*"

release-please-config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@
6060
}
6161
],
6262
"release-type": "node",
63-
"extra-files": [
64-
"src/version.ts",
65-
"README.md"
66-
]
63+
"extra-files": ["src/version.ts", "README.md"]
6764
}

0 commit comments

Comments
 (0)