Skip to content

chore: upgrade @hey-api/openapi-ts to v0.95.0#24

Merged
lewisjared merged 6 commits intomainfrom
dependency
Apr 13, 2026
Merged

chore: upgrade @hey-api/openapi-ts to v0.95.0#24
lewisjared merged 6 commits intomainfrom
dependency

Conversation

@lewisjared
Copy link
Copy Markdown
Contributor

Summary

  • Upgrade @hey-api/openapi-ts from 0.67.1 to 0.95.0
  • Remove standalone @hey-api/client-fetch dependency (bundled into openapi-ts since v0.73.0)
  • Replace defaultPlugins spread with explicit plugin list (@hey-api/typescript, @hey-api/sdk, @hey-api/client-fetch, @hey-api/schemas, @tanstack/react-query) since defaultPlugins contents changed across versions
  • Regenerate client SDK — now includes local client/ and core/ directories containing the bundled client runtime
  • Fix HttpValidationError type mismatch in executionLogContainer.tsx (error type from query hooks changed from generic Error to API-specific error type)

Test plan

  • TypeScript compiles cleanly (tsc --noEmit)
  • Vite production build succeeds
  • All 163 frontend tests pass
  • Pre-commit hooks pass (Biome lint/format, TypeScript typecheck)

- 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
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2026

Deploy Preview for climate-ref ready!

Name Link
🔨 Latest commit f80f5d2
🔍 Latest deploy log https://app.netlify.com/projects/climate-ref/deploys/69d905391aa57500086851dd
😎 Deploy Preview https://deploy-preview-24--climate-ref.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ts to ^0.95.0 and removes standalone @hey-api/client-fetch dependency.
  • Regenerates the SDK output, including bundled client/ and core/ runtime code and updated TanStack Query helpers.
  • Adjusts error rendering in ExecutionLogContainer and stabilizes apiEndpoint tests against VITE_BASE_URL leakage.

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.
@lewisjared lewisjared merged commit 87b4235 into main Apr 13, 2026
8 checks passed
@lewisjared lewisjared deleted the dependency branch April 13, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants