Skip to content

Commit

Permalink
Update Blitz
Browse files Browse the repository at this point in the history
  • Loading branch information
aquapi committed May 16, 2024
1 parent 3e4f8b6 commit f9aa5a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Byte starts up faster than the `hono/quick` preset with LinearRouter.
[687.44ms] Hono: Build 1000 routes
```

Byte matches routes 7x faster than Hono with RegExpRouter.
Byte matches routes 6x faster than Hono with RegExpRouter.
```
"/user":
- Hono: 23416ns
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bit-js/byte",
"version": "1.3.0",
"version": "1.3.1",
"module": "index.js",
"devDependencies": {
"@types/bun": "latest",
Expand All @@ -9,7 +9,7 @@
"type": "module",
"types": "types/index.d.ts",
"dependencies": {
"@bit-js/blitz": "^1.2.5"
"@bit-js/blitz": "^1.3.0"
},
"scripts": {
"build-test": "bun build.ts && bun test && tsc --noEmit -p ./tests/tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Byte<Rec extends RoutesRecord = []> implements ProtoSchema {
readonly routes: BaseRoute[] = [];

/**
* Register subroutes
* Register sub-routes
*/
route(base: string, { routes, actions }: BaseByte) {
const currentRoutes = this.routes;
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Route<
if (this.method === null)
router.handle(this.path, this.compile());
else
router.put(this.method, this.path, this.compile());
router.on(this.method, this.path, this.compile());
}

/**
Expand Down

0 comments on commit f9aa5a6

Please sign in to comment.