Support async createClientConfig for per-request client configuration#3445
Support async createClientConfig for per-request client configuration#3445
createClientConfig for per-request client configuration#3445Conversation
|
|
🦋 Changeset detectedLatest commit: 54a4c47 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
createClientConfig for per-request client configuration
|
Leaping into action... |
|
@copilot CI fails, please fix. |
…e return type Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Fixed in b02c4f6. The CI was failing because the bundled |
|
@copilot CI is still failing, fix |
…type in CreateClientConfig Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
|
@copilot now tests are failing, fix itttt |
…n CreateClientConfig
Fixed in 54a4c47. The test snapshot files for the angular client ( |
@hey-api/codegen-core
@hey-api/json-schema-ref-parser
@hey-api/nuxt
@hey-api/openapi-ts
@hey-api/shared
@hey-api/types
@hey-api/vite-plugin
commit: |
|
This should not have been released, you cannot expect all use cases to support top level await. |
|
I am also a bit shocked on how much copilot is used in this project. |
Can you share your use case? |


CreateClientConfigtype inpackages/custom-client/src/types.tsto allow returningPromise<Config<...>>types.tsfiles (client-fetch, client-axios, client-ky, client-next, client-nuxt, client-ofetch, client-angular) to allow returningPromise<Config<...>>packages/openapi-ts/src/plugins/@hey-api/client-core/createClientConfig.tsto generate the new type with| Promise<...>return typepackages/openapi-ts/src/plugins/@hey-api/client-core/client.tsto useawaitwhen callingcreateClientConfigCreateClientConfigtypeclient/client/types.gen.tsfiles in all examplesclient-angularbundletypes.tstypes.gen.tstest snapshots (2.0.x, 3.0.x, 3.1.x) that were missed when the angular bundle was updated lateOriginal prompt
createClientConfigfor per-request client configuration (multi-tenant / SSR) #3444✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.