Skip to content

bump_version #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 89968bf0-a755-4d50-9acb-d47410010f05
management:
docChecksum: 711b3f6457c659edd2d9b9d7c32fc154
docVersion: 0.4.0
speakeasyVersion: 1.533.0
generationVersion: 2.578.0
releaseVersion: 4.0.0-rc.6
configChecksum: 8aab34a64fcf04089345ef332bd47460
speakeasyVersion: 1.531.3
generationVersion: 2.570.3
releaseVersion: 5.0.0-rc.1
configChecksum: 2a0ec6cae67f283e86f98022cfda3f43
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript
Expand Down
4 changes: 1 addition & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.533.0
speakeasyVersion: 1.531.3
sources:
my-source:
sourceNamespace: my-source
Expand All @@ -13,8 +13,6 @@ targets:
sourceNamespace: my-source
sourceRevisionDigest: sha256:a7553f9cadf93d6dec407cf1be5ba62d2dc356c0880236f05599b421725c1871
sourceBlobDigest: sha256:f9444653744aa4a4ca763e60284ec246889d5345d43d6544058196709ead8a39
codeSamplesNamespace: my-source-typescript-code-samples
codeSamplesRevisionDigest: sha256:376dffcbce175d84d133f8db2cfe690c1c855afaceb847b61254f129a34b49cd
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 4.0.0-rc.6
version: 5.0.0-rc.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
"version": "4.0.0-rc.6",
"version": "5.0.0-rc.1",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
"version": "4.0.0-rc.6",
"version": "5.0.0-rc.1",
"author": "Speakeasy",
"bin": {
"mcp": "bin/mcp-server.js"
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.4.0",
sdkVersion: "4.0.0-rc.6",
genVersion: "2.578.0",
sdkVersion: "5.0.0-rc.1",
genVersion: "2.570.3",
userAgent:
"speakeasy-sdk/typescript 4.0.0-rc.6 2.578.0 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
"speakeasy-sdk/typescript 5.0.0-rc.1 2.570.3 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
} as const;
20 changes: 0 additions & 20 deletions src/lib/matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { isPlainObject } from "./is-plain-object.js";
import { safeParse } from "./schemas.js";

export type Encoding =
| "jsonl"
| "json"
| "text"
| "bytes"
Expand All @@ -20,7 +19,6 @@ export type Encoding =
| "fail";

const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
jsonl: "application/jsonl",
json: "application/json",
text: "text/plain",
bytes: "application/octet-stream",
Expand Down Expand Up @@ -74,21 +72,6 @@ export function json<T>(
return { ...options, enc: "json", codes, schema };
}

export function jsonl<T>(
codes: StatusCodePredicate,
schema: Schema<T>,
options?: MatchOptions,
): ValueMatcher<T> {
return { ...options, enc: "jsonl", codes, schema };
}

export function jsonlErr<E>(
codes: StatusCodePredicate,
schema: Schema<E>,
options?: MatchOptions,
): ErrorMatcher<E> {
return { ...options, err: true, enc: "jsonl", codes, schema };
}
export function textErr<E>(
codes: StatusCodePredicate,
schema: Schema<E>,
Expand Down Expand Up @@ -221,9 +204,6 @@ export function match<T, E>(
case "json":
raw = await response.json();
break;
case "jsonl":
raw = response.body;
break;
case "bytes":
raw = new Uint8Array(await response.arrayBuffer());
break;
Expand Down
10 changes: 2 additions & 8 deletions src/lib/sdks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ export class ClientSDK {
}
}

const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
const jsonlLikeContentTypeRE =
/(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
const jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
async function logRequest(logger: Logger | undefined, req: Request) {
if (!logger) {
return;
Expand Down Expand Up @@ -366,13 +364,9 @@ async function logResponse(
logger.group("Body:");
switch (true) {
case matchContentType(res, "application/json")
|| jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
|| jsonLikeContentTypeRE.test(ct):
logger.log(await res.clone().json());
break;
case matchContentType(res, "application/jsonl")
|| jsonlLikeContentTypeRE.test(ct):
logger.log(await res.clone().text());
break;
case matchContentType(res, "text/event-stream"):
logger.log(`<${contentType}>`);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const routes = buildRouteMap({
export const app = buildApplication(routes, {
name: "mcp",
versionInfo: {
currentVersion: "4.0.0-rc.6",
currentVersion: "5.0.0-rc.1",
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function createMCPServer(deps: {
}) {
const server = new McpServer({
name: "Speakeasy",
version: "4.0.0-rc.6",
version: "5.0.0-rc.1",
});

const client = new SpeakeasyCore({
Expand Down