fix: inline fetch client so consumer types resolve#3
Open
Ooscaar wants to merge 2 commits into
Open
Conversation
dist/index.d.ts referenced @hey-api/client-fetch, but the package wasn't a declared dependency. Consumers without it installed silently received `any` for the entire SDK surface. - @hey-api/openapi-ts 0.61 → 0.97 with file-based config - Drop @hey-api/client-fetch (now inlined under src/generated/) - Remove dead `_shims/*` from package.json exports - tsup → tsdown; update exports for .cjs/.d.cts extensions - Add DOM lib for inlined fetch client globals Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resolved conflicts in src/generated/sdk.gen.ts and src/generated/types.gen.ts by keeping the new inlined codegen structure and regenerating from the latest OpenAPI spec (v0.2.157). The new generator picks up: - updateBroadcast / updateSequence request bodies - getUsageStats `reconcile` query param - Content-Type headers on the new PATCH endpoints package-lock.json keeps the libc platform metadata. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
dist/index.d.tsreferenced@hey-api/client-fetch, but the package wasn't a declared dependency. Consumers without it installed silently receivedanyfor the entire SDK surface.Changes
@hey-api/openapi-ts0.61 → 0.97 with file-basedopenapi-ts.config.ts@hey-api/client-fetch(now inlined undersrc/generated/client/andsrc/generated/core/)_shims/*subpath frompackage.jsonexportstsup→tsdown(tsup is deprecated); updatemain/types/exportsfor.cjs/.d.ctsDOMtotsconfig.libfor the inlined fetch client globalsTest plan
npm run typechecknpm run buildnpm testawait zernio.posts.createPost(...)infers a real type (wasanyin 0.2.155)🤖 Generated with Claude Code