abearxiong 311bde7c7c chore: update package version and dependencies
- Bump version from 0.0.39 to 0.0.40 in package.json
- Update @kevisual/query from ^0.0.31 to ^0.0.32
- Update @types/node from ^24.10.2 to ^25.0.3
- Update rollup from ^4.53.3 to ^4.53.5
- Update zod from ^4.1.13 to ^4.2.1
- Update send from ^1.2.0 to ^1.2.1

refactor: improve error handling in CustomError class

- Refactor isError method to use type guard for better type checking

fix: change cookie import path in server.ts

- Update cookie import from 'cookie' to './cookie.ts'

feat: implement cookie parsing and stringifying functionality

- Add cookie.ts with functions for parsing and stringifying cookies
- Implement cookie name, value, domain, path, max-age, and other attributes handling
2025-12-19 09:48:21 +08:00
2025-10-22 17:05:20 +08:00
2025-05-14 21:04:25 +08:00
2025-05-14 21:04:25 +08:00
2025-04-18 01:16:06 +08:00
2025-07-26 20:38:49 +08:00
2025-05-14 21:04:25 +08:00

router

import { App } from '@kevisual/router';

const app = new App();
app.listen(4002);

app
  .route({path:'demo', key: '02})
  .define(async (ctx) => {
    ctx.body = '02';
  })
  .addTo(app);

app
  .route('demo', '03')
  .define(async (ctx) => {
    ctx.body = '03';
  })
  .addTo(app);

兼容服务器

import { App } from '@kevisual/router';

const app = new App();
app.listen(4002);
import { proxyRoute, initProxy } from '@kevisual/local-proxy/proxy.ts';
initProxy({
  pagesDir: './demo',
  watch: true,
});

app.onServerRequest(proxyRoute);
Description
No description provided
Readme 730 KiB
Languages
TypeScript 97.4%
JavaScript 2.6%