Skip to content

Commit 63571df

Browse files
authored
Merge pull request #1145 from cloudflare/release-please--branches--main--changes--next--components--cloudflare
2 parents 754f34c + 446fb6b commit 63571df

File tree

1,445 files changed

+107929
-46824
lines changed

Some content is hidden

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

1,445 files changed

+107929
-46824
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,30 @@ jobs:
2626
with:
2727
node-version: '18'
2828

29-
- name: Install dependencies
30-
run: yarn install
29+
- name: Bootstrap
30+
run: ./scripts/bootstrap
3131

3232
- name: Check types
3333
run: ./scripts/lint
34+
35+
build:
36+
name: build
37+
runs-on: ubuntu-latest
38+
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Set up Node
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '18'
47+
48+
- name: Bootstrap
49+
run: ./scripts/bootstrap
50+
51+
- name: Check build
52+
run: ./scripts/build
3453
test:
3554
name: test
3655
runs-on: ubuntu-latest
@@ -71,4 +90,4 @@ jobs:
7190
CLOUDFLARE_ZONE_ID: 0da42c8d2132a9ddaf714f9e7c92011
7291
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
7392
run: |
74-
yarn tsn ./examples/workers/ai/demo.ts
93+
yarn tsn ./examples/ai/demo.ts

.github/workflows/release-doctor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release Doctor
22
on:
33
pull_request:
4+
branches:
5+
- main
46
workflow_dispatch:
57

68
concurrency:
@@ -22,3 +24,4 @@ jobs:
2224
bash ./bin/check-release-environment
2325
env:
2426
NPM_TOKEN: ${{ secrets.CLOUDFLARE_NPM_TOKEN || secrets.NPM_TOKEN }}
27+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ yarn-error.log
44
codegen.log
55
Brewfile.lock.json
66
dist
7-
/deno
7+
dist-deno
88
/*.tgz
99
.idea/
1010

.release-please-manifest.json

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

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1256
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-923d8c7667b68c786e6c026c4f4851798943c7d68ea055c0043d9253413c5847.yml
1+
configured_endpoints: 1493
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-292d86018649794a0921751cee7162cb618358a55576fe9e18995601ad7484cc.yml

CHANGELOG.md

Lines changed: 255 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
## Setting up the environment
22

3-
This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable).
3+
This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install).
44
Other package managers may work but are not officially supported for development.
55

66
To set up the repository, run:
77

8-
```bash
9-
yarn
10-
yarn build
8+
```sh
9+
$ yarn
10+
$ yarn build
1111
```
1212

1313
This will install all the required dependencies and build output files to `dist/`.
1414

1515
## Modifying/Adding code
1616

17-
Most of the SDK is generated code, and any modified code will be overridden on the next generation. The
18-
`src/lib/` and `examples/` directories are exceptions and will never be overridden.
17+
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
18+
result in merge conflicts between manual patches and changes from the generator. The generator will never
19+
modify the contents of the `src/lib/` and `examples/` directories.
1920

2021
## Adding and running examples
2122

22-
All files in the `examples/` directory are not modified by the Stainless generator and can be freely edited or
23-
added to.
23+
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
2424

25-
```bash
25+
```ts
2626
// add an example to examples/<your-example>.ts
2727

2828
#!/usr/bin/env -S npm run tsn -T
2929
3030
```
3131

32-
```
33-
chmod +x examples/<your-example>.ts
32+
```sh
33+
$ chmod +x examples/<your-example>.ts
3434
# run the example against your api
35-
yarn tsn -T examples/<your-example>.ts
35+
$ yarn tsn -T examples/<your-example>.ts
3636
```
3737

3838
## Using the repository from source
@@ -41,38 +41,38 @@ If you’d like to use the repository from source, you can either install from g
4141

4242
To install via git:
4343

44-
```bash
45-
npm install git+ssh://[email protected]:cloudflare/cloudflare-typescript.git
44+
```sh
45+
$ npm install git+ssh://[email protected]:cloudflare/cloudflare-typescript.git
4646
```
4747

4848
Alternatively, to link a local copy of the repo:
4949

50-
```bash
50+
```sh
5151
# Clone
52-
git clone https://www.github.com/cloudflare/cloudflare-typescript
53-
cd cloudflare-typescript
52+
$ git clone https://www.github.com/cloudflare/cloudflare-typescript
53+
$ cd cloudflare-typescript
5454

5555
# With yarn
56-
yarn link
57-
cd ../my-package
58-
yarn link cloudflare
56+
$ yarn link
57+
$ cd ../my-package
58+
$ yarn link cloudflare
5959

6060
# With pnpm
61-
pnpm link --global
62-
cd ../my-package
63-
pnpm link -—global cloudflare
61+
$ pnpm link --global
62+
$ cd ../my-package
63+
$ pnpm link -—global cloudflare
6464
```
6565

6666
## Running tests
6767

6868
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
6969

70-
```bash
71-
npx prism mock path/to/your/openapi.yml
70+
```sh
71+
$ npx prism mock path/to/your/openapi.yml
7272
```
7373

74-
```bash
75-
yarn run test
74+
```sh
75+
$ yarn run test
7676
```
7777

7878
## Linting and formatting
@@ -82,14 +82,14 @@ This repository uses [prettier](https://www.npmjs.com/package/prettier) and
8282

8383
To lint:
8484

85-
```bash
86-
yarn lint
85+
```sh
86+
$ yarn lint
8787
```
8888

8989
To format and fix all lint issues automatically:
9090

91-
```bash
92-
yarn fix
91+
```sh
92+
$ yarn fix
9393
```
9494

9595
## Publishing and releases

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 2024 Cloudflare
189+
Copyright 2025 Cloudflare
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.

0 commit comments

Comments
 (0)