0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00
hono/test
Yusuke Wada 7dd486ad7b
feat: builtin middleware as sub module (#81)
# BREAKING CHANGES!!

Now, builtin middleware are not in main package. You can't use `Middleware.logger()` method. Call sub modules if needed:

```js
import { Hono } from 'hono'
import { poweredBy } from 'hono/powered-by'
import { logger } from 'hono/logger'

const app = new Hono()

app.use('*', poweredBy())
app.use('*', logger())
```

Closes: #80

---

* feat: builtin middleware as sub module

* fixed middleware

* Update readme

* Add types

* New gif
2022-02-01 22:15:00 +09:00
..
compose.test.ts refactor: refactor something (#65) 2022-01-26 22:11:11 +09:00
context.test.ts feat: Mustache Middleware (#72) 2022-01-29 09:09:37 +09:00
hono.test.ts feat: builtin middleware as sub module (#81) 2022-02-01 22:15:00 +09:00
middleware.test.ts feat: builtin middleware as sub module (#81) 2022-02-01 22:15:00 +09:00
node.test.ts feat: default route with wildcard (#52) 2022-01-19 01:44:21 +09:00
router.test.ts feat: default route with wildcard (#52) 2022-01-19 01:44:21 +09:00