refactor: migrate from Rollup to Bun for build configuration

feat: update adapter to use globalThis for origin resolution

fix: remove unused ClientQuery export from query.ts

chore: update tsconfig to include test files and set rootDir

feat: add create-query functionality for dynamic API generation

feat: implement QueryApi with enhanced type inference from JSON Schema

test: add comprehensive API tests for QueryApi functionality

test: create demo routes and schemas for testing purposes

docs: add type inference demo for QueryApi usage
This commit is contained in:
2026-02-17 21:39:41 +08:00
parent 7adedc0552
commit ecb69ba326
18 changed files with 1106 additions and 591 deletions

8
bun.config.ts Normal file
View File

@@ -0,0 +1,8 @@
import { buildWithBun } from '@kevisual/code-builder';
await buildWithBun({ naming: 'query-browser', entry: 'src/query-browser.ts', dts: true, target: 'browser' });
await buildWithBun({ naming: 'query', entry: 'src/query.ts', dts: true, target: 'browser' });
await buildWithBun({ naming: 'query-ws', entry: 'src/ws.ts', dts: true, target: 'browser' });
await buildWithBun({ naming: 'query-adapter', entry: 'src/adapter.ts', dts: true, target: 'browser' });
await buildWithBun({ naming: 'query-api', entry: 'src/query-api.ts', dts: true, target: 'browser' });