Skip to content

Commit 33a675c

Browse files
committed
refining the react component experience a bit
1 parent f3f5451 commit 33a675c

File tree

12 files changed

+134
-53
lines changed

12 files changed

+134
-53
lines changed

.speakeasy/gen.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 0.4.0
66
speakeasyVersion: 1.468.0
77
generationVersion: 2.492.3
8-
releaseVersion: 2.0.11
9-
configChecksum: 6131813611c165f99630ca021de715dc
8+
releaseVersion: 2.0.12
9+
configChecksum: c27aaa83187732b257c2a86fbfc4b1c5
1010
repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git
1111
installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts
1212
published: true

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: false
1717
oAuth2PasswordEnabled: false
1818
typescript:
19-
version: 2.0.11
19+
version: 2.0.12
2020
additionalDependencies:
2121
dependencies: {}
2222
devDependencies: {}
@@ -40,7 +40,7 @@ typescript:
4040
inputModelSuffix: input
4141
maxMethodParams: 1
4242
methodArguments: require-security-and-request
43-
moduleFormat: commonjs
43+
moduleFormat: esm
4444
outputModelSuffix: output
4545
packageName: '@speakeasyapi/code-samples'
4646
responseFormat: flat

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ speakeasyVersion: 1.468.0
22
sources:
33
speakeasy-OAS:
44
sourceNamespace: speakeasy-oas
5-
sourceRevisionDigest: sha256:771ed09dacf285d6f18e27f01e0492f45f9248110476d381d0a6768cb4021320
5+
sourceRevisionDigest: sha256:eccb5c0b494c102a3985fedd96b152ad956b8be90681e6f5f21b5756463f66ab
66
sourceBlobDigest: sha256:6d9de4a70686f4366747b9dbf16917300a43dea8857ad6583f35ef3531bffbdb
77
tags:
88
- latest
@@ -11,10 +11,10 @@ targets:
1111
code_samples_typescript_sdk:
1212
source: speakeasy-OAS
1313
sourceNamespace: speakeasy-oas
14-
sourceRevisionDigest: sha256:771ed09dacf285d6f18e27f01e0492f45f9248110476d381d0a6768cb4021320
14+
sourceRevisionDigest: sha256:eccb5c0b494c102a3985fedd96b152ad956b8be90681e6f5f21b5756463f66ab
1515
sourceBlobDigest: sha256:6d9de4a70686f4366747b9dbf16917300a43dea8857ad6583f35ef3531bffbdb
1616
codeSamplesNamespace: speakeasy-oas-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:12997450a71bf46eaf590c8da28f9c7599305c352f80814d77a29071c25a1f03
17+
codeSamplesRevisionDigest: sha256:b21e9f5e10bf036c791b2e888f9d5eb8177a85f23f84ebdd01bac5bc90f418f3
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ yarn add @tanstack/react-query react react-dom
8484
# Note that Yarn does not install peer dependencies automatically. You will need
8585
# to install zod as shown above.
8686
```
87+
88+
> [!NOTE]
89+
> This package is published as an ES Module (ESM) only. For applications using
90+
> CommonJS, use `await import("@speakeasyapi/code-samples")` to import and use this package.
8791
<!-- End SDK Installation [installation] -->
8892
8993
<!-- Start Requirements [requirements] -->

jsr.json

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

33
{
44
"name": "@speakeasyapi/code-samples",
5-
"version": "2.0.11",
5+
"version": "2.0.12",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/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: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,47 @@
11
{
22
"name": "@speakeasyapi/code-samples",
3-
"version": "2.0.11",
3+
"version": "2.0.12",
44
"author": "Speakeasy",
5-
"main": "./index.js",
5+
"type": "module",
6+
"main": "./esm/index.js",
7+
"exports": {
8+
".": {
9+
"source": "./src/index.ts",
10+
"types": "./esm/index.d.ts",
11+
"default": "./esm/index.js"
12+
},
13+
"./package.json": "./package.json",
14+
"./types": {
15+
"source": "./src/types/index.ts",
16+
"types": "./esm/types/index.d.ts",
17+
"default": "./esm/types/index.js"
18+
},
19+
"./models/errors": {
20+
"source": "./src/models/errors/index.ts",
21+
"types": "./esm/models/errors/index.d.ts",
22+
"default": "./esm/models/errors/index.js"
23+
},
24+
"./models/components": {
25+
"source": "./src/models/components/index.ts",
26+
"types": "./esm/models/components/index.d.ts",
27+
"default": "./esm/models/components/index.js"
28+
},
29+
"./models/operations": {
30+
"source": "./src/models/operations/index.ts",
31+
"types": "./esm/models/operations/index.d.ts",
32+
"default": "./esm/models/operations/index.js"
33+
},
34+
"./*.js": {
35+
"source": "./src/*.ts",
36+
"types": "./esm/*.d.ts",
37+
"default": "./esm/*.js"
38+
},
39+
"./*": {
40+
"source": "./src/*.ts",
41+
"types": "./esm/*.d.ts",
42+
"default": "./esm/*.js"
43+
}
44+
},
645
"sideEffects": false,
746
"repository": {
847
"type": "git",

src/index.extras.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@
55
export * from "./lib/config.js";
66
export * as files from "./lib/files.js";
77
export * from "./sdk/sdk.js";
8-
9-
export * from "./index.extras.js";

src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
5757
export const SDK_METADATA = {
5858
language: "typescript",
5959
openapiDocVersion: "0.4.0",
60-
sdkVersion: "2.0.11",
60+
sdkVersion: "2.0.12",
6161
genVersion: "2.492.3",
6262
userAgent:
63-
"speakeasy-sdk/typescript 2.0.11 2.492.3 0.4.0 @speakeasyapi/code-samples",
63+
"speakeasy-sdk/typescript 2.0.12 2.492.3 0.4.0 @speakeasyapi/code-samples",
6464
} as const;

0 commit comments

Comments
 (0)