You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(api): update via SDK Studio (#182)
* feat(api): update via SDK Studio (#184)
* feat(api): update via SDK Studio (#185)
* feat(api): OpenAPI spec update via Stainless API (#186)
* feat(api): OpenAPI spec update via Stainless API (#187)
* feat(api): OpenAPI spec update via Stainless API (#188)
* feat(api): OpenAPI spec update via Stainless API (#189)
* feat(api): OpenAPI spec update via Stainless API (#190)
* feat(api): OpenAPI spec update via Stainless API (#191)
* feat(api): OpenAPI spec update via Stainless API (#192)
* feat(api): OpenAPI spec update via Stainless API (#193)
* feat(api): update via SDK Studio (#194)
* release: 3.0.0-beta.10
---------
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,24 @@
1
1
# Changelog
2
2
3
+
## 3.0.0-beta.10 (2024-03-22)
4
+
5
+
Full Changelog: [v3.0.0-beta.9...v3.0.0-beta.10](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.9...v3.0.0-beta.10)
6
+
7
+
### Features
8
+
9
+
***api:** OpenAPI spec update via Stainless API ([#186](https://github.com/cloudflare/cloudflare-typescript/issues/186)) ([024ba76](https://github.com/cloudflare/cloudflare-typescript/commit/024ba7680bff3727e2a36bf69927986241d5d917))
10
+
***api:** OpenAPI spec update via Stainless API ([#187](https://github.com/cloudflare/cloudflare-typescript/issues/187)) ([5b84f38](https://github.com/cloudflare/cloudflare-typescript/commit/5b84f380e47f8b651bbfc6c85fb61fe520ca3c1d))
11
+
***api:** OpenAPI spec update via Stainless API ([#188](https://github.com/cloudflare/cloudflare-typescript/issues/188)) ([3b4fe72](https://github.com/cloudflare/cloudflare-typescript/commit/3b4fe72c2a4d292d99ff4f429267e92ee9f37527))
12
+
***api:** OpenAPI spec update via Stainless API ([#189](https://github.com/cloudflare/cloudflare-typescript/issues/189)) ([354cf29](https://github.com/cloudflare/cloudflare-typescript/commit/354cf29b191629b5a8aea8421adbb84fc4b2e6e1))
13
+
***api:** OpenAPI spec update via Stainless API ([#190](https://github.com/cloudflare/cloudflare-typescript/issues/190)) ([9bbb0b2](https://github.com/cloudflare/cloudflare-typescript/commit/9bbb0b225fd0491df79cdf79a3176741dc88ce78))
14
+
***api:** OpenAPI spec update via Stainless API ([#191](https://github.com/cloudflare/cloudflare-typescript/issues/191)) ([588680a](https://github.com/cloudflare/cloudflare-typescript/commit/588680a0980dca8f5f3fcb9bfce85b13820aeddf))
15
+
***api:** OpenAPI spec update via Stainless API ([#192](https://github.com/cloudflare/cloudflare-typescript/issues/192)) ([3506528](https://github.com/cloudflare/cloudflare-typescript/commit/3506528c28e585dc6c4b9304d245f78543b33299))
16
+
***api:** OpenAPI spec update via Stainless API ([#193](https://github.com/cloudflare/cloudflare-typescript/issues/193)) ([282f368](https://github.com/cloudflare/cloudflare-typescript/commit/282f36847679192774a9e3b80610212b54f0e509))
17
+
***api:** update via SDK Studio ([#182](https://github.com/cloudflare/cloudflare-typescript/issues/182)) ([2274ba0](https://github.com/cloudflare/cloudflare-typescript/commit/2274ba02940a382c2958504eaf31a7a1cd66efd7))
18
+
***api:** update via SDK Studio ([#184](https://github.com/cloudflare/cloudflare-typescript/issues/184)) ([84eba2c](https://github.com/cloudflare/cloudflare-typescript/commit/84eba2cd4b8d375f0eed13319d79f7fcbda74005))
19
+
***api:** update via SDK Studio ([#185](https://github.com/cloudflare/cloudflare-typescript/issues/185)) ([3ba723d](https://github.com/cloudflare/cloudflare-typescript/commit/3ba723d01f2bf9a90c90b640fa3e8c42ad6b8f39))
20
+
***api:** update via SDK Studio ([#194](https://github.com/cloudflare/cloudflare-typescript/issues/194)) ([5fd3ecf](https://github.com/cloudflare/cloudflare-typescript/commit/5fd3ecfd964ab6623c37bf01a979b57b0623745a))
21
+
3
22
## 3.0.0-beta.9 (2024-03-20)
4
23
5
24
Full Changelog: [v3.0.0-beta.8...v3.0.0-beta.9](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.8...v3.0.0-beta.9)
Copy file name to clipboardExpand all lines: README.md
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ This library provides convenient access to the Cloudflare REST API from server-s
6
6
7
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).
8
8
9
+
It is generated with [Stainless](https://www.stainlessapi.com/).
This library is typed for convenient access to the documented API. If you need to access undocumented
209
+
endpoints, params, or response properties, the library can still be used.
210
+
211
+
#### Undocumented endpoints
212
+
213
+
To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
214
+
Options on the client, such as retries, will be respected when making these requests.
215
+
216
+
```ts
217
+
awaitclient.post('/some/path', {
218
+
body: { some_prop: 'foo' },
219
+
query: { some_query_arg: 'bar' },
220
+
});
221
+
```
222
+
223
+
#### Undocumented params
224
+
225
+
To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
226
+
parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
227
+
send will be sent as-is.
228
+
229
+
```ts
230
+
client.foo.create({
231
+
foo: 'my_param',
232
+
bar: 12,
233
+
// @ts-expect-error baz is not yet public
234
+
baz: 'undocumented option',
235
+
});
236
+
```
237
+
238
+
For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
239
+
extra param in the body.
240
+
241
+
If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
242
+
options.
243
+
244
+
#### Undocumented properties
245
+
246
+
To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
247
+
the response object, or cast the response object to the requisite type. Like the request params, we do not
248
+
validate or strip extra properties from the response from the API.
249
+
250
+
### Customizing the fetch client
205
251
206
252
By default, this library uses `node-fetch` in Node, and expects a global `fetch` function in other environments.
207
253
@@ -219,6 +265,8 @@ import Cloudflare from 'cloudflare';
219
265
To do the inverse, add `import "cloudflare/shims/node"` (which does import polyfills).
220
266
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/cloudflare/cloudflare-typescript/tree/main/src/_shims#readme)).
221
267
268
+
### Logging and middleware
269
+
222
270
You may also provide a custom `fetch` function when instantiating the client,
223
271
which can be used to inspect or alter the `Request` or `Response` before/after each request:
224
272
@@ -239,7 +287,7 @@ const client = new Cloudflare({
239
287
Note that if given a `DEBUG=true` environment variable, this library will log all requests and responses automatically.
240
288
This is intended for debugging purposes only and may change in the future without notice.
241
289
242
-
## Configuring an HTTP(S) Agent (e.g., for proxies)
290
+
###Configuring an HTTP(S) Agent (e.g., for proxies)
243
291
244
292
By default, this library uses a stable agent for all http/https requests to reuse TCP connections, eliminating many TCP & TLS handshakes and shaving around 100ms off most requests.
0 commit comments