v0.3.0
Minor Changes
-
#9
d768da1Thanks @ucejtech! - Rearchitect OpenAPI code generation.Breaking changes:
kweri-gennow writes a singleclient.tsinto your source tree
(--out, defaultsrc/api/kweri/client.ts) instead of into
node_modules/kweri/.generated/. Commit it like any other source file.- The
kweri/generatedpackage export has been removed — import from your
generated file instead (e.g.import { EndpointByMethod } from '@/api/kweri/client'). createClientnow takes aKweriinstance and routes every call through the
runtime, so generated clients get caching, request deduplication, and
stale-while-revalidate. Previously it made rawfetchcalls that bypassed the
cache entirely. MigratecreateClient({ baseURL })→createClient(kweri).- The
--bundleflag is gone;$refpointers are resolved automatically. - Use an explicit
genscript and commit the output instead of apostinstall
hook — the output now lives in your tree and survives reinstalls under npm,
pnpm, and Yarn PnP.
Internal:
- Generation is driven by typed-openapi's programmatic API
(mapOpenApiEndpoints+generateFile) rather than shelling out to its CLI
and regex-scraping the output. No more marker slicing, no more@ts-nocheck—
the generated code type-checks cleanly. - Removed the install-time
npx tscstep, temp-dir handling,node_modules
resolution hacks, and the bundle-runner written intonode_modules. Deleted
two dead generator modules. Added a generator test suite (IR units, emitter
snapshots, and a runtime integration test proving the client dedupes and
caches through kweri).
This changelog is generated by Changesets.
Each release's notes come from the changesets included in its "version packages" PR.