Skip to content

Commit 87c4e34

Browse files
Merge pull request #13 from speakeasy-api/v5_major
bump_version
2 parents 6eb5b71 + 44f9fb0 commit 87c4e34

File tree

11 files changed

+17
-45
lines changed

11 files changed

+17
-45
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 89968bf0-a755-4d50-9acb-d47410010f05
33
management:
44
docChecksum: 711b3f6457c659edd2d9b9d7c32fc154
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.533.0
7-
generationVersion: 2.578.0
8-
releaseVersion: 4.0.0-rc.6
9-
configChecksum: 8aab34a64fcf04089345ef332bd47460
6+
speakeasyVersion: 1.531.3
7+
generationVersion: 2.570.3
8+
releaseVersion: 5.0.0-rc.1
9+
configChecksum: 2a0ec6cae67f283e86f98022cfda3f43
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript

.speakeasy/workflow.lock

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.533.0
1+
speakeasyVersion: 1.531.3
22
sources:
33
my-source:
44
sourceNamespace: my-source
@@ -13,8 +13,6 @@ targets:
1313
sourceNamespace: my-source
1414
sourceRevisionDigest: sha256:a7553f9cadf93d6dec407cf1be5ba62d2dc356c0880236f05599b421725c1871
1515
sourceBlobDigest: sha256:f9444653744aa4a4ca763e60284ec246889d5345d43d6544058196709ead8a39
16-
codeSamplesNamespace: my-source-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:376dffcbce175d84d133f8db2cfe690c1c855afaceb847b61254f129a34b49cd
1816
workflow:
1917
workflowVersion: 1.0.0
2018
speakeasyVersion: latest

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
typescript:
16-
version: 4.0.0-rc.6
16+
version: 5.0.0-rc.1
1717
additionalDependencies:
1818
dependencies: {}
1919
devDependencies: {}

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
5-
"version": "4.0.0-rc.6",
5+
"version": "5.0.0-rc.1",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
3-
"version": "4.0.0-rc.6",
3+
"version": "5.0.0-rc.1",
44
"author": "Speakeasy",
55
"bin": {
66
"mcp": "bin/mcp-server.js"

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6161
export const SDK_METADATA = {
6262
language: "typescript",
6363
openapiDocVersion: "0.4.0",
64-
sdkVersion: "4.0.0-rc.6",
65-
genVersion: "2.578.0",
64+
sdkVersion: "5.0.0-rc.1",
65+
genVersion: "2.570.3",
6666
userAgent:
67-
"speakeasy-sdk/typescript 4.0.0-rc.6 2.578.0 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
67+
"speakeasy-sdk/typescript 5.0.0-rc.1 2.570.3 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
6868
} as const;

src/lib/matchers.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { isPlainObject } from "./is-plain-object.js";
1010
import { safeParse } from "./schemas.js";
1111

1212
export type Encoding =
13-
| "jsonl"
1413
| "json"
1514
| "text"
1615
| "bytes"
@@ -20,7 +19,6 @@ export type Encoding =
2019
| "fail";
2120

2221
const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
23-
jsonl: "application/jsonl",
2422
json: "application/json",
2523
text: "text/plain",
2624
bytes: "application/octet-stream",
@@ -74,21 +72,6 @@ export function json<T>(
7472
return { ...options, enc: "json", codes, schema };
7573
}
7674

77-
export function jsonl<T>(
78-
codes: StatusCodePredicate,
79-
schema: Schema<T>,
80-
options?: MatchOptions,
81-
): ValueMatcher<T> {
82-
return { ...options, enc: "jsonl", codes, schema };
83-
}
84-
85-
export function jsonlErr<E>(
86-
codes: StatusCodePredicate,
87-
schema: Schema<E>,
88-
options?: MatchOptions,
89-
): ErrorMatcher<E> {
90-
return { ...options, err: true, enc: "jsonl", codes, schema };
91-
}
9275
export function textErr<E>(
9376
codes: StatusCodePredicate,
9477
schema: Schema<E>,
@@ -221,9 +204,6 @@ export function match<T, E>(
221204
case "json":
222205
raw = await response.json();
223206
break;
224-
case "jsonl":
225-
raw = response.body;
226-
break;
227207
case "bytes":
228208
raw = new Uint8Array(await response.arrayBuffer());
229209
break;

src/lib/sdks.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ export class ClientSDK {
298298
}
299299
}
300300

301-
const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
302-
const jsonlLikeContentTypeRE =
303-
/(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
301+
const jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
304302
async function logRequest(logger: Logger | undefined, req: Request) {
305303
if (!logger) {
306304
return;
@@ -366,13 +364,9 @@ async function logResponse(
366364
logger.group("Body:");
367365
switch (true) {
368366
case matchContentType(res, "application/json")
369-
|| jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
367+
|| jsonLikeContentTypeRE.test(ct):
370368
logger.log(await res.clone().json());
371369
break;
372-
case matchContentType(res, "application/jsonl")
373-
|| jsonlLikeContentTypeRE.test(ct):
374-
logger.log(await res.clone().text());
375-
break;
376370
case matchContentType(res, "text/event-stream"):
377371
logger.log(`<${contentType}>`);
378372
break;

src/mcp-server/mcp-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
1919
export const app = buildApplication(routes, {
2020
name: "mcp",
2121
versionInfo: {
22-
currentVersion: "4.0.0-rc.6",
22+
currentVersion: "5.0.0-rc.1",
2323
},
2424
});
2525

src/mcp-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function createMCPServer(deps: {
101101
}) {
102102
const server = new McpServer({
103103
name: "Speakeasy",
104-
version: "4.0.0-rc.6",
104+
version: "5.0.0-rc.1",
105105
});
106106

107107
const client = new SpeakeasyCore({

0 commit comments

Comments
 (0)