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

1125 Commits

Author SHA1 Message Date
Yusuke Wada
2aa44417ee Bump to v0.3.6 2022-02-05 23:31:57 +09:00
Yusuke Wada
d77d890a73
feat: check response type (#94)
* feat: check response type

* refactor

* refactor: add types
2022-02-05 23:30:43 +09:00
Yusuke Wada
a72660bd66
feat: auto set statusText (#93)
* refactor: context

* tweak

* feat: auto set status text
2022-02-05 22:20:34 +09:00
Yusuke Wada
c883563d05 refactor: do not import middleware 2022-02-05 21:16:26 +09:00
Yusuke Wada
05747404e8
refactor: remove default middleware (#91)
Fixed some bugs about handling req/res object on middleware.
2022-02-05 00:28:24 +09:00
Yusuke Wada
489a241a61
test: add default middleware test (#90) 2022-02-04 23:37:18 +09:00
Yusuke Wada
c38f1c896c Bump v0.3.5 2022-02-04 08:02:10 +09:00
Yusuke Wada
e1e8130c11
feat: add root option on mustache middleware (#89) 2022-02-04 08:01:12 +09:00
Yusuke Wada
c8184b7fb8
fix: default content-type (#88)
* fix: default content-type

* fixed for tests
2022-02-04 06:36:27 +09:00
Yusuke Wada
b049cfa213 Bump to v0.3.4 2022-02-03 22:11:52 +09:00
Yusuke Wada
30b0c447aa
fix: use require (#87) 2022-02-03 22:11:19 +09:00
Yusuke Wada
48b1b8194c Bump v0.3.3 2022-02-03 08:44:31 +09:00
Yusuke Wada
d5280a1e0a
feat: Basic-auth with polyfill (#86)
* feat: Basic-auth with polyfill

Basic auth support Fastly Compute@Edge with polyfills

* Try-cache

* Add negative tests
2022-02-03 08:40:20 +09:00
Yusuke Wada
0297e178d5 Bumped v0.3.2 2022-02-02 17:56:07 +09:00
Yusuke Wada
04bb4bbb33
fix: Unicode problem about atob/btoa (#85)
https://github.com/yusukebe/hono/pull/84#pullrequestreview-870144435

Thank you @danielweck
2022-02-02 17:53:30 +09:00
Yusuke Wada
ebec91cbd9 Bumped v0.3.1 2022-02-02 10:30:42 +09:00
Yusuke Wada
4c213e4379
fix: use atob for basic auth (#84)
* fix: use `atob` for basic auth

* Update readme

* fallback
2022-02-02 10:26:48 +09:00
Yusuke Wada
0fe95bc81f
fix: basic auth (#83)
Installing `buffer` and `crypto` packages enables basic auth,
if `buffer` of `crypto` is not in pollyfills such as webpack 5 environment.

Close #82
2022-02-02 08:45:08 +09:00
Yusuke Wada
55878788c5 fix: require mustache package 2022-02-02 05:38:04 +09:00
Yusuke Wada
22f6e724d8 Bumped v0.3.0 2022-02-01 22:17:01 +09:00
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
Yusuke Wada
1841a177fd
example: fix blog example (#79) 2022-02-01 06:50:51 +09:00
Yusuke Wada
4c90444a0f
fix: about parsedBody on Request (#78) 2022-02-01 06:01:48 +09:00
Yusuke Wada
e6e3b17792 Bumped v0.2.4 2022-01-31 14:41:36 +09:00
Yusuke Wada
d3a6f2cdf7
fix: mustache template encoding (#77) 2022-01-30 17:59:04 +09:00
Yusuke Wada
ffbcb3eeb9
feat: serve static middleware (Cloudflare only) (#76) 2022-01-30 17:42:24 +09:00
Yusuke Wada
223429fa71
chore: tweak (#75)
* Update durable object example

* Add line to mustache readme

* Tweak

* Add comments
2022-01-30 11:33:17 +09:00
Yusuke Wada
07a3de4190 Bumped v0.2.3 2022-01-29 10:31:57 +09:00
Yusuke Wada
58825209b0
fix: mustache middleware (#74)
* fix: mustache middleware

* fix error message
2022-01-29 10:30:56 +09:00
Yusuke Wada
a1f29dad5c
fix: diable mustache middleware (#73)
* fix: diable mustache middleware

* Fixed
2022-01-29 09:31:32 +09:00
Yusuke Wada
3370673824 Bumped v0.2.1 2022-01-29 09:12:55 +09:00
Yusuke Wada
29f67c5b72
feat: Mustache Middleware (#72)
* [WIP] feat: Mustache Middleware

Dirty code.
A Big problem is tests for Workers Site KV does not work well...

* feat: mustache middleware

* Add readme
2022-01-29 09:09:37 +09:00
Yusuke Wada
3017a4a7ff
fix: Fixed context headers (#69) 2022-01-27 09:42:27 +09:00
Yusuke Wada
ff5a83b38b
perf: Speed up to calculate content-length (#67)
* perf: Speed up to calculate content-length
2022-01-27 09:09:54 +09:00
Yusuke Wada
336afc812d
refactor: refactor something (#65)
* chmod

* declare `parsedBody` in middleware

* Dont use any

* Rename

* rename and fixed benchmarks, update score
2022-01-26 22:11:11 +09:00
Yusuke Wada
66f38e5222
feat: Cookie middleware (#64)
* feat: Implemented cookie middleware

* tweak
2022-01-26 21:45:28 +09:00
Yusuke Wada
a514a5dbc8 Bumped v0.2.0 2022-01-26 13:12:20 +09:00
Yusuke Wada
68444b6932 feat: Add new shortcuts for request/response (#62)
* Add new shortcuts for request/response

* We have only `param`, we can not use `params`

* Update readme

* tweak
2022-01-26 13:10:05 +09:00
Yusuke Wada
6123fdca4e
feat: Add new shortcuts for request/response (#62)
* Add new shortcuts for request/response

* We have only `param`, we can not use `params`

* Update readme

* tweak
2022-01-26 12:38:20 +09:00
Minghe
ff375c6b69
refactor(equal): user Expect.toStrictEqual to simplify value comparison (#63) 2022-01-25 11:03:56 +09:00
Yusuke Wada
f5a5654422 Bumped v0.1.0 🎉 2022-01-21 23:38:58 +09:00
Yusuke Wada
2ac54b7f17
chore: Add serve static example (#61) 2022-01-21 22:34:04 +09:00
Yusuke Wada
034bf6db60
feat: Use KV for blog example (#60) 2022-01-21 22:00:24 +09:00
Minghe
fbde9079c4
feat(content-length): add Content-Length in log output (#58)
* feat(content-length): add Content-Length in log output

* feat(content-length): pretty content length with b and kB unit

* fix(test): remove only

* fix(space): no space between value and unit
2022-01-21 16:28:48 +09:00
Minghe
c522636662
refactor(utils): better management for utils modules to avoid kitchen sink issue (#59) 2022-01-21 16:03:48 +09:00
Yusuke Wada
280c1481e3
Add content-length header (#57) 2022-01-19 21:28:17 +09:00
Yusuke Wada
aa052a05eb Bumped v0.0.16 2022-01-19 18:47:14 +09:00
Yusuke Wada
9f91d09814
fix: Content-Length middleware not as default (#55)
* fix: miniflare error `ReadableStream is locked`

* Remove Content-Length middleware from default
2022-01-19 18:45:42 +09:00
Yusuke Wada
f1c6ef0740
feat: CORS middleware (#53)
* Update blog example

* Implemented

* Fixed blog example
2022-01-19 09:33:27 +09:00
Yusuke Wada
98924ce164 Bumped v0.0.15 2022-01-19 01:45:08 +09:00