Skip to content

Commit

Permalink
chore(polka): bump trouter version
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Dec 4, 2023
1 parent 8fb37d8 commit 862b08e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/polka/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IncomingMessage, ServerResponse } from 'http';
import type { ListenOptions, Server } from 'net';
import type { ParsedURL } from '@polka/url';
import type Trouter from 'trouter';
import type { Trouter } from 'trouter';

type Promisable<T> = Promise<T> | T;
type ListenCallback = () => Promisable<void>;
Expand Down
4 changes: 2 additions & 2 deletions packages/polka/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import http from 'http';
import Router from 'trouter';
import { Trouter } from 'trouter';
import { parse } from '@polka/url';

function onError(err, req, res) {
Expand All @@ -11,7 +11,7 @@ function onError(err, req, res) {

const mount = fn => fn instanceof Polka ? fn.attach : fn;

class Polka extends Router {
class Polka extends Trouter {
constructor(opts={}) {
super();
this.parse = parse;
Expand Down
4 changes: 2 additions & 2 deletions packages/polka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
},
"dependencies": {
"@polka/url": "^1.0.0-next.21",
"trouter": "^3.1.0"
"trouter": "^4.0.0"
}
}
}

0 comments on commit 862b08e

Please sign in to comment.