chore: upgrade @hey-api/openapi-ts to v0.95.0#24
Merged
lewisjared merged 6 commits intomainfrom Apr 13, 2026
Merged
Conversation
- Remove standalone @hey-api/client-fetch dependency (bundled since v0.73.0) - Update openapi-ts.config.ts to use explicit plugin list instead of defaultPlugins - Regenerate client SDK with new bundled client runtime - Fix HttpValidationError type mismatch in executionLogContainer
✅ Deploy Preview for climate-ref ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
* origin/main: (27 commits) Bump version: 0.2.2 → 0.2.3 docs: add changelog entry for PR #28 fix(security): address high-priority vulnerabilities from security audit chore: Cleanup some files fix: Use non-root user in Docker runtime image Bump version: 0.2.1 → 0.2.2 fix: Pin astral-sh/setup-uv to v8.0.0 fix: Use astral-sh/setup-uv@v7 (v8 major tag not yet available) chore: Add changelog entry for PR #27 chore: Update GitHub Actions to Node.js 24 compatible versions Bump version: 0.2.0 → 0.2.1 docs: add changelog entry for #26 fix: allow missing ref.toml by falling back to environment defaults Bump version: 0.1.0 → 0.2.0 fix: Update the fire chart chore: cleanups fix: auto-select first available filter value when no default matches feat: add region filter dropdown to annual cycle explorer cards fix: resolve infinite re-render loop and broken include_unverified toggle fix: width of pagination control ... # Conflicts: # frontend/src/client/@tanstack/react-query.gen.ts # frontend/src/client/schemas.gen.ts # frontend/src/client/types.gen.ts
There was a problem hiding this comment.
Pull request overview
Upgrades the OpenAPI TypeScript code generator to a newer @hey-api/openapi-ts version and regenerates the frontend SDK with the now-bundled fetch client runtime.
Changes:
- Bumps
@hey-api/openapi-tsto^0.95.0and removes standalone@hey-api/client-fetchdependency. - Regenerates the SDK output, including bundled
client/andcore/runtime code and updated TanStack Query helpers. - Adjusts error rendering in
ExecutionLogContainerand stabilizesapiEndpointtests againstVITE_BASE_URLleakage.
Reviewed changes
Copilot reviewed 22 out of 23 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/lib/apiEndpoint.test.ts | Clears/restores import.meta.env.VITE_BASE_URL to make endpoint tests deterministic. |
| frontend/src/components/execution/executionLogs/executionLogContainer.tsx | Updates UI error rendering to handle non-Error API error shapes. |
| frontend/src/client/types.gen.ts | Regenerated API types (new/renamed collection types, validation error types, etc.). |
| frontend/src/client/sdk.gen.ts | Regenerated SDK functions targeting the bundled local fetch client runtime. |
| frontend/src/client/schemas.gen.ts | Regenerated JSON schema constants for request/response validation. |
| frontend/src/client/index.ts | Switches to explicit re-exports for SDK functions and types. |
| frontend/src/client/core/utils.gen.ts | Adds generated URL/path/body utilities used by the bundled client runtime. |
| frontend/src/client/core/types.gen.ts | Adds generated core client/shared type helpers. |
| frontend/src/client/core/serverSentEvents.gen.ts | Adds generated SSE support for the bundled runtime. |
| frontend/src/client/core/queryKeySerializer.gen.ts | Adds generated deterministic query-key serialization helpers. |
| frontend/src/client/core/pathSerializer.gen.ts | Adds generated path/query serialization utilities. |
| frontend/src/client/core/params.gen.ts | Adds generated argument-to-request-slot mapping utility. |
| frontend/src/client/core/bodySerializer.gen.ts | Adds generated body/query serializer implementations. |
| frontend/src/client/core/auth.gen.ts | Adds generated auth token helpers. |
| frontend/src/client/client/utils.gen.ts | Adds generated fetch-client runtime utilities (config, headers, interceptors, auth). |
| frontend/src/client/client/types.gen.ts | Adds generated fetch-client runtime types (request/result/options/config). |
| frontend/src/client/client/index.ts | Exposes the bundled runtime public surface (createClient, serializers, types). |
| frontend/src/client/client/client.gen.ts | Adds generated fetch client implementation (request pipeline, parsing, SSE hook-up). |
| frontend/src/client/client.gen.ts | Updates the default exported client factory wiring to use the bundled runtime. |
| frontend/src/client/@tanstack/react-query.gen.ts | Regenerates TanStack Query queryOptions/infiniteQueryOptions helpers with new error typing. |
| frontend/package.json | Removes @hey-api/client-fetch dep and upgrades @hey-api/openapi-ts. |
| frontend/package-lock.json | Lockfile update reflecting the generator upgrade and dependency graph changes. |
| frontend/openapi-ts.config.ts | Replaces defaultPlugins spread with an explicit plugin list to stabilize generation output across versions. |
Files not reviewed (1)
- frontend/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add type guard and formatter to display HttpValidationError detail messages instead of a generic "Validation error" string. Falls back to JSON.stringify for other non-Error values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@hey-api/openapi-tsfrom0.67.1to0.95.0@hey-api/client-fetchdependency (bundled into openapi-ts since v0.73.0)defaultPluginsspread with explicit plugin list (@hey-api/typescript,@hey-api/sdk,@hey-api/client-fetch,@hey-api/schemas,@tanstack/react-query) sincedefaultPluginscontents changed across versionsclient/andcore/directories containing the bundled client runtimeHttpValidationErrortype mismatch inexecutionLogContainer.tsx(error type from query hooks changed from genericErrorto API-specific error type)Test plan
tsc --noEmit)