0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
Commit Graph

845 Commits

Author SHA1 Message Date
Yusuke Wada
3cc5ad1629
feat: add GraphQL server middleware (#142) 2022-03-27 20:27:52 +09:00
Yusuke Wada
6294c846bf chore: fixed typo
Close #141
2022-03-21 10:11:11 +09:00
Yusuke Wada
6d26fcfdaf
feat: notFound support await/async (#140) 2022-03-19 22:41:30 +09:00
Yusuke Wada
ac8efa79c9 chore: bump up to v0.5.5 2022-03-16 18:42:25 +09:00
Yusuke Wada
af4602ecac
chore: export etag middleware (#139) 2022-03-16 18:41:31 +09:00
Yusuke Wada
2dfaf00148
chore: export trie-router in package.json (#138) 2022-03-16 18:37:19 +09:00
Yusuke Wada
2b570641a2
chore: update examples (#137)
* chore(example): update blog test

* `deploy` instead `publish`
2022-03-14 21:25:22 +09:00
Taku Amano
fb76c36ecc
chore: Fix typo. (#136) 2022-03-12 13:02:37 +09:00
Taku Amano
9921a3eeb8
pref: Optimize RegExpRouter (#135)
* Use Record instead of `[key: string]: Type`.

* Optimize RegExpRouter.
2022-03-12 13:01:51 +09:00
Yusuke Wada
515b7ff32b chore(example): upgrade hono 2022-03-11 07:58:57 +09:00
Yusuke Wada
6e370231b2 chore: bump up to v0.5.4 2022-03-11 07:56:57 +09:00
Yusuke Wada
58135961b6
fix(types): add Handler<string> (#134)
Fix #133
2022-03-11 07:56:00 +09:00
Yusuke Wada
db2382e880 chore: bump up to v0.5.3 2022-03-10 15:45:13 +09:00
Yusuke Wada
5d5fe23a72
feat: add request method (#132)
Add `request` method. It's useful for testing.
2022-03-10 15:44:09 +09:00
Yusuke Wada
e36b054ab6 2022-03-10 14:54:17 +09:00
Yusuke Wada
e4c0ea2368
docs: create Japanese readme (#131)
* docs: add japanese readme

* fix

* tweak

* use text

* tweak
2022-03-09 16:03:58 +09:00
Yusuke Wada
6971869ce8
chore: update example for fastly compute@edge (#130) 2022-03-09 13:47:49 +09:00
Yusuke Wada
4ed5d478be bump up to v.0.5.2 2022-03-08 19:17:34 +09:00
Yusuke Wada
7a31de59b5
feat: basic auth middleware supports overriding hashFunction (#128) 2022-03-08 19:10:12 +09:00
Charl Kruger
ccf27fb411
English grammar changes (#127) 2022-03-06 10:27:26 +09:00
Yusuke Wada
9dcc24cb93
docs: write instructions (#125) 2022-03-05 10:38:33 +09:00
Yusuke Wada
4dd0ede0a1
chore: update example (#123) 2022-03-04 16:39:58 +09:00
Yusuke Wada
9d41d008de bump up to v0.5.1 2022-03-02 04:07:20 +09:00
Yusuke Wada
6c4500dc1c
fix: mime-type bug (#122) 2022-03-02 04:06:43 +09:00
Yusuke Wada
a8e0bf0b48 chore: do not need await 2022-03-01 01:50:45 +09:00
Yusuke Wada
6561c5e4e6
refactor: compose (#121) 2022-03-01 01:34:28 +09:00
Yusuke Wada
32686f4e5b
chore: update benchmark script (#120)
* chore: fix benchmark script

* update readme
2022-02-28 21:56:50 +09:00
Yusuke Wada
7c454ee2f6
feat: etag middleware (#119) 2022-02-26 22:26:15 +09:00
Yusuke Wada
bea8aef7b5
refactor: create utils/crypto.ts (#118) 2022-02-26 17:33:00 +09:00
Yusuke Wada
4822077fea docs: update readme 2022-02-26 16:19:53 +09:00
Yusuke Wada
4ad7259796 Bump up to v0.5.0 2022-02-26 08:39:59 +09:00
Yusuke Wada
adb55ca052
feat: app.notFound() and app.onError (#117) 2022-02-26 08:36:11 +09:00
Yusuke Wada
a66296bf28
refactor: compose (#116) 2022-02-25 10:04:30 +09:00
Yusuke Wada
be40084437 Bump up to v0.4.2 2022-02-23 11:35:15 +09:00
Yusuke Wada
5de3a0c4f2 docs: update readme 2022-02-23 11:30:24 +09:00
Yusuke Wada
bd2907219c
feat: exports RegExpRouter (#115)
It might be default router.
2022-02-23 09:58:24 +09:00
Yusuke Wada
0a6afc2c74
refactor: directory structure (#114)
* refactor: move  trie-router

* refactor: mv node.ts

* refactor: do not use `test` directory

* fix eslint target
2022-02-23 09:35:05 +09:00
Taku Amano
4c76a7d2c5
perf: Make ParamMap Array<[key, value]>. (#113) 2022-02-23 03:41:21 +09:00
Yusuke Wada
68baca0949 docs: add badges 2022-02-22 00:04:22 +09:00
Yusuke Wada
2b76987e33
feat: basic auth middleware supports multiple users (#112) 2022-02-21 23:24:49 +09:00
Yusuke Wada
2f08c0fc86 Bump up to v0.4.1 2022-02-20 22:45:55 +09:00
Yusuke Wada
9de6328f87
feat: app.onError for handling error (#111) 2022-02-20 22:43:14 +09:00
Yusuke Wada
49fedca6a4
feat: app.notFound for default 404 not found (#110) 2022-02-20 19:59:51 +09:00
Taku Amano
92513d0527
feat: RegExpRouter (#109)
* Make the Router abstract class.

* Introduce RegExpRouter.

* Add RegExpRouter to benchmark target.

* Optimize for special short routes.

```
* "*"
* "/path/to/*"
* "/path/to/*/content"
```

* Add assertion to `add` method.
2022-02-20 19:14:46 +09:00
Yusuke Wada
ea329b8369 docs: update benchmark results 2022-02-18 10:25:55 +09:00
Taku Amano
e53873f0a1
perf: Optimize router (#108)
* Cache compiled RegExp object for patterns.

* Cache a Pattern object to reduce memory usage.

* Apply prettier.
2022-02-18 10:20:11 +09:00
Yusuke Wada
b0b6f7f8a3
refactor: router must have only one hander (#107)
* refactor: router must have only one hander
* docs: update benchmark
2022-02-17 21:46:34 +09:00
Yusuke Wada
9c397fbff3
chore: set up prettier (#106) 2022-02-17 21:24:08 +09:00
Yusuke Wada
fca3ddeb87 bump up to v0.4.0 2022-02-16 11:08:47 +09:00
Yusuke Wada
c5cc9f25a6
feat: nested route (#105)
# BREAKING CHANGES!!!

`app.route` is changed:

**Chained route** is obsolete:

```
app.route('/')
  .get((c) => c.text('get /'))
// ^^^ Not working now!!
```

Now, `app.route` enables **nested route**:

```
const book = app.route('/book')
book.get('/', (c) => c.text('List books')) // => GET /book
book.get('/:id', (c) => {
  return c.text('Get Book: ' + c.req.param('id'))) // => GET /book/:id
})
```
2022-02-16 11:06:22 +09:00