Skip to content

Commit 48219c8

Browse files
authored
Merge pull request #1020 from cloudflare/release-please--branches--main--changes--next--components--cloudflare
release: 3.5.0
2 parents bfebf03 + c879614 commit 48219c8

File tree

735 files changed

+8216
-13551
lines changed

Some content is hidden

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

735 files changed

+8216
-13551
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- main
9+
- next
910

1011
jobs:
1112
lint:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.prism.log
12
node_modules
23
yarn-error.log
34
codegen.log

.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.4.0"
2+
".": "3.5.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: 1348
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml
1+
configured_endpoints: 1256
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-923d8c7667b68c786e6c026c4f4851798943c7d68ea055c0043d9253413c5847.yml

CHANGELOG.md

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This library provides convenient access to the Cloudflare REST API from server-side TypeScript or JavaScript.
66

7-
The REST API documentation can be found [on developers.cloudflare.com](https://developers.cloudflare.com/api). The full API of this library can be found in [api.md](api.md).
7+
The REST API documentation can be found on [developers.cloudflare.com](https://developers.cloudflare.com/api). The full API of this library can be found in [api.md](api.md).
88

99
## Installation
1010

@@ -328,6 +328,7 @@ TypeScript >= 4.5 is supported.
328328

329329
The following runtimes are supported:
330330

331+
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
331332
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
332333
- Deno v1.28.0 or higher, using `import Cloudflare from "npm:cloudflare"`.
333334
- Bun 1.0 or later.

api.md

Lines changed: 128 additions & 597 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloudflare",
3-
"version": "3.4.0",
3+
"version": "3.5.0",
44
"description": "The official TypeScript library for the Cloudflare API",
55
"author": "Cloudflare <[email protected]>",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from './core';
43
import * as Errors from './error';
5-
import { type Agent } from './_shims/index';
64
import * as Uploads from './uploads';
5+
import { type Agent } from './_shims/index';
76
import * as qs from 'qs';
7+
import * as Core from './core';
88
import * as Pagination from './pagination';
99
import * as API from './resources/index';
1010

@@ -86,7 +86,9 @@ export interface ClientOptions {
8686
defaultQuery?: Core.DefaultQuery;
8787
}
8888

89-
/** API Client for interfacing with the Cloudflare API. */
89+
/**
90+
* API Client for interfacing with the Cloudflare API.
91+
*/
9092
export class Cloudflare extends Core.APIClient {
9193
apiToken: string | null;
9294
apiKey: string | null;
@@ -134,6 +136,7 @@ export class Cloudflare extends Core.APIClient {
134136
maxRetries: options.maxRetries,
135137
fetch: options.fetch,
136138
});
139+
137140
this._options = options;
138141

139142
this.apiToken = apiToken;
@@ -226,6 +229,7 @@ export class Cloudflare extends Core.APIClient {
226229
eventNotifications: API.EventNotifications = new API.EventNotifications(this);
227230
aiGateway: API.AIGateway = new API.AIGateway(this);
228231
iam: API.IAM = new API.IAM(this);
232+
cloudConnector: API.CloudConnector = new API.CloudConnector(this);
229233

230234
protected override defaultQuery(): Core.DefaultQuery | undefined {
231235
return this._options.defaultQuery;
@@ -328,7 +332,7 @@ export class Cloudflare extends Core.APIClient {
328332
}
329333

330334
protected override stringifyQuery(query: Record<string, unknown>): string {
331-
return qs.stringify(query, { arrayFormat: 'repeat' });
335+
return qs.stringify(query, { allowDots: true, arrayFormat: 'repeat' });
332336
}
333337

334338
static Cloudflare = this;
@@ -560,6 +564,8 @@ export namespace Cloudflare {
560564

561565
export import IAM = API.IAM;
562566

567+
export import CloudConnector = API.CloudConnector;
568+
563569
export import ASN = API.ASN;
564570
export import AuditLog = API.AuditLog;
565571
export import CertificateCA = API.CertificateCA;

src/resources/accounts/accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import * as Core from '../../core';
43
import { APIResource } from '../../resource';
54
import { isRequestOptions } from '../../core';
5+
import * as Core from '../../core';
66
import * as MembersAPI from './members';
77
import * as RolesAPI from './roles';
88
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination';

0 commit comments

Comments
 (0)