Skip to content

Commit 2c421e9

Browse files
release: 3.0.0-beta.12 (#199)
* feat(api): OpenAPI spec update via Stainless API (#198) * feat(api): update via SDK Studio (#200) * release: 3.0.0-beta.12 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 406c5f6 commit 2c421e9

File tree

7 files changed

+18
-6
lines changed

7 files changed

+18
-6
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-
".": "3.0.0-beta.11"
2+
".": "3.0.0-beta.12"
33
}

CHANGELOG.md

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

3+
## 3.0.0-beta.12 (2024-03-25)
4+
5+
Full Changelog: [v3.0.0-beta.11...v3.0.0-beta.12](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.11...v3.0.0-beta.12)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#198](https://github.com/cloudflare/cloudflare-typescript/issues/198)) ([43c36f0](https://github.com/cloudflare/cloudflare-typescript/commit/43c36f088f706993a245834c06e932f5088e4ad7))
10+
* **api:** update via SDK Studio ([#200](https://github.com/cloudflare/cloudflare-typescript/issues/200)) ([5c14122](https://github.com/cloudflare/cloudflare-typescript/commit/5c14122cc5cd9d628c438de2b908cc423535f2d2))
11+
312
## 3.0.0-beta.11 (2024-03-22)
413

514
Full Changelog: [v3.0.0-beta.10...v3.0.0-beta.11](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.10...v3.0.0-beta.11)

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.0.0-beta.11",
3+
"version": "3.0.0-beta.12",
44
"description": "The official TypeScript library for the Cloudflare API",
55
"author": "Cloudflare <[email protected]>",
66
"types": "dist/index.d.ts",

src/core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,8 @@ const getPlatformProperties = (): PlatformProperties => {
802802
'X-Stainless-OS': normalizePlatform(Deno.build.os),
803803
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
804804
'X-Stainless-Runtime': 'deno',
805-
'X-Stainless-Runtime-Version': Deno.version,
805+
'X-Stainless-Runtime-Version':
806+
typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
806807
};
807808
}
808809
if (typeof EdgeRuntime !== 'undefined') {

src/resources/workers/ai.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export namespace AIRunResponse {
5858
export interface SpeechRecognition {
5959
text: string;
6060

61+
vtt?: string;
62+
6163
word_count?: number;
6264

6365
words?: Array<SpeechRecognition.Word>;

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '3.0.0-beta.11'; // x-release-please-version
1+
export const VERSION = '3.0.0-beta.12'; // x-release-please-version

tests/api-resources/workers/ai.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('resource ai', () => {
1414
test.skip('run: only required params', async () => {
1515
const responsePromise = cloudflare.workers.ai.run('string', {
1616
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
17-
text: 'string',
17+
text: 'x',
1818
});
1919
const rawResponse = await responsePromise.asResponse();
2020
expect(rawResponse).toBeInstanceOf(Response);
@@ -29,7 +29,7 @@ describe('resource ai', () => {
2929
test.skip('run: required and optional params', async () => {
3030
const response = await cloudflare.workers.ai.run('string', {
3131
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
32-
text: 'string',
32+
text: 'x',
3333
});
3434
});
3535
});

0 commit comments

Comments
 (0)