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

View File

@@ -1,12 +1,9 @@
{
"name": "@kevisual/query",
"version": "0.0.40",
"main": "dist/query-browser.js",
"private": false,
"version": "0.0.41",
"type": "module",
"scripts": {
"build": "npm run clean && rollup -c",
"dev:lib": "rollup -c -w",
"build": "npm run clean && bun run bun.config.ts",
"clean": "rm -rf dist"
},
"files": [
@@ -21,11 +18,12 @@
"license": "ISC",
"description": "",
"devDependencies": {
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-typescript": "^12.3.0",
"rollup": "^4.57.1",
"rollup-plugin-dts": "^6.3.0",
"@kevisual/code-builder": "^0.0.6",
"@kevisual/router": "^0.0.72",
"@types/node": "^25.2.3",
"typescript": "^5.9.3",
"es-toolkit": "^1.44.0",
"zod": "^4.3.6",
"zustand": "^5.0.11"
},
"publishConfig": {
@@ -36,20 +34,10 @@
"url": "git+ssh://git@github.com/abearxiong/kevisual-query.git"
},
"exports": {
".": {
"import": "./dist/query-browser.js",
"require": "./dist/query-browser.js"
},
"./query": {
"import": "./dist/query.js",
"require": "./dist/query.js"
},
"./ws": {
"import": "./dist/query-ws.js",
"require": "./dist/query-ws.js"
}
".": "./dist/query-browser.js",
"./query": "./dist/query.js",
"./ws": "./dist/query-ws.js",
"./api": "./dist/query-api.js"
},
"dependencies": {
"tslib": "^2.8.1"
}
}
"dependencies": {}
}