Skip to content

fix: emit dedicated runtime imports in generated clients - #99

Merged
urbankrepel-povio merged 5 commits into
mainfrom
codex/optional-axios-peer
Sep 11, 2026
Merged

fix: emit dedicated runtime imports in generated clients#99
urbankrepel-povio merged 5 commits into
mainfrom
codex/optional-axios-peer

Conversation

@urbankrepel-povio

@urbankrepel-povio urbankrepel-povio commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Generated Axios clients imported RestClient from the package root, pulling unrelated runtime exports into consumer builds. Both TypeScript and native generators now emit /axios for Axios clients and retain /native for native clients. Query imports use /query, including legacy root-path configuration.

Shared REST utilities accept native Headers and unknown errors without Axios types. Documentation lists runtime subpaths, and regression tests inspect emitted imports across both generators. Existing root exports remain available for compatibility.

Validation:

  • TypeScript 7.0.2 typecheck, lint, and package/native builds passed.
  • TypeScript and native test runs each passed 799 tests (13 skipped).
  • Rust default-import regression passed.
  • Package scripts and references checked after removing the dedicated optional-Axios verification script and CI step.

Local validation is separate from GitHub CI results.

@urbankrepel-povio urbankrepel-povio changed the title fix: emit runtime subpath imports and verify optional Axios consumers fix: emit dedicated runtime imports in generated clients Sep 11, 2026
@urbankrepel-povio
urbankrepel-povio merged commit 7b1b802 into main Sep 11, 2026
10 checks passed
@urbankrepel-povio
urbankrepel-povio deleted the codex/optional-axios-peer branch September 11, 2026 07:20
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.

3 participants