Jayden
53de4a4021
Rename runtime keys ( #850 )
...
* Rename runtime keys
* denoify
* Fix test
2023-01-29 14:47:35 +09:00
Yusuke Wada
0c76049487
Merge branch 'main' into next
2023-01-24 09:00:29 +09:00
Yusuke Wada
4f9d7f2d7e
fix(context): fixed bug raw Response
content-type is overwritten ( #836 )
2023-01-24 08:53:31 +09:00
Yusuke Wada
a53ae499d3
Merge branch 'main' into next
2023-01-23 08:40:17 +09:00
Yusuke Wada
033f23189c
fix(context): set the values of already set ( #834 )
2023-01-23 08:35:14 +09:00
Yusuke Wada
e404319824
perf: use substring
and //.test
... ( #829 )
...
* v3.0.0-rc.8
* perf: use `substring` and `//.test` ...
2023-01-22 13:59:31 +09:00
Yusuke Wada
b6b1e5bc79
fix(context): enable destruction such json
( #813 )
...
This will fix #812
2023-01-19 22:45:25 +09:00
Yusuke Wada
eb6f1fdb0d
perf: optimize parsing queries and headers / 19% faster than 2.7.2 ( #811 )
2023-01-19 22:45:25 +09:00
Yusuke Wada
733f05c21c
refactor(types): more robust and flexible ( #806 )
...
* chore: denoify
* v3.0.0-rc.5
* refactor(types): more robust and flexible
* fixed some
2023-01-19 22:45:25 +09:00
Yusuke Wada
e989a93d01
refactor: tweak types ( #795 )
2023-01-19 22:45:25 +09:00
Yusuke Wada
548487aa53
chore: denoify
2023-01-19 22:45:25 +09:00
Yusuke Wada
a50efe4fa9
perf(context): tune up handling headers 3% faster ( #778 )
...
* perf(context): tune up handling headers ~ 3% faster
* uppercase
* denoify
2023-01-19 22:44:38 +09:00
Yusuke Wada
b49e557e5b
refactor(types): shorten name, make it safer ( #774 )
...
* refactor(types): shorten name, make it safer
* remove not used
2023-01-19 22:44:38 +09:00
Yusuke Wada
397c12e181
refactor: refactor and fix Types ( #748 )
...
* wip
* refactor: refactor and fix Types
2023-01-19 22:44:34 +09:00
Yusuke Wada
85e3c6a275
feat: new validator middleware using 3rd-party & current middleware obsolete ( #745 )
...
* feat: introduce HonoRequest with "wrapper pattern" (#733 )
* feat: HonoRequest
* avoid `awaits`
* use `raw` instead of `original`
* feat: types for "RPC" support & build-in validator obsolete
* feat: introduce HonoRequest with "wrapper pattern" (#733 )
* feat: HonoRequest
* avoid `awaits`
* use `raw` instead of `original`
* create generic middleare for 3rd-party validator
* indent
* support multiple validators and refactor
* remove unsed lines
* denoify
2023-01-19 22:40:13 +09:00
Yusuke Wada
a6d54dbff3
feat: introduce HonoRequest with "wrapper pattern" ( #733 )
...
* feat: HonoRequest
* avoid `awaits`
* use `raw` instead of `original`
2023-01-19 22:40:13 +09:00
Yusuke Wada
da0a7ce55c
fix(context): enable destruction such json
( #813 )
...
This will fix #812
2023-01-18 08:23:58 +09:00
Tom Lienard
884b287f3d
feat: Lagon support with runtime detection & tests ( #742 )
...
* feat: Lagon support with runtime detection & tests
* ci: build before running test:lagon
* refactor: remove mentions of Lagon since it's still in dev
* test: enable ETag test
2022-12-25 01:42:59 +09:00
Yusuke Wada
9a6e4c1802
perf(context): c.text()
returns a response immediately if headers is empty ( #722 )
2022-12-14 22:03:02 +09:00
Yusuke Wada
c6b434addd
refactor: shorten
2022-12-13 20:36:30 +09:00
Yusuke Wada
59bb0b1a40
feat(handler): "schema" allow normal types ( #700 )
...
* feat(handler): "schema" allow normal types
* check types for handler+validator+handler pattern
* denoify
* improve type definitions
2022-12-10 16:37:14 +09:00
Jayden
760ae30251
Fix detecting node runtime ( #696 )
...
* Fix
* Denoify
* Avoid error in other runtime
* chore: remove unnecessary config testPathIgnorePatterns (#697 )
* Fix vercel
Co-authored-by: Horie Issei <issei.horie@is2ei.com>
2022-12-02 11:28:49 +09:00
Yusuke Wada
a3e0eb2cc1
refactor(context): refactor context.ts
( #674 )
2022-11-23 18:42:24 +09:00
Yusuke Wada
1eb49b8d96
refactor: support new @cloudflare/worker-types
( #673 )
...
* refactor: support new `@cloudflare/worker-types`
* do not attach crypto to global
* denoify ignore serve-static for cloudlfare
* ignore the utility for cloudflare
* import types
2022-11-23 07:27:42 +09:00
Yusuke Wada
d3a6f80d7c
fix(type): change the type definition of req
in Context ( #658 )
2022-11-11 15:23:05 +09:00
Yusuke Wada
888e04ded1
fix(context): check cloudflare before checking node in c.runtime
( #651 )
...
* fix(context): check cloudflare before checking node in `c.runtime`
* denoify
2022-11-04 07:14:57 +09:00
Yusuke Wada
4a9cd272f8
refactor(types): reduce type definitions ( #649 )
...
* refactor(types): reduce type definitions
* fixed tests for Deno and Bun
2022-11-03 15:53:41 +09:00
Jayden
451d6fe117
feat(context): Introducing c.runtime ( #644 )
...
* Add context.platform getter
* Remove assumption on fastly
* Add Vercel support
* denoify
* Replace .platform with .runtime
2022-11-03 15:35:23 +09:00
Yusuke Wada
da55bf922f
chore: denoify
2022-11-01 17:42:25 +09:00
Yusuke Wada
6a96ace96a
feat(types): introduce CustomHandler
interface ( #637 )
2022-11-01 00:07:56 +09:00
Yusuke Wada
8627010094
refactor(types): refactor and add tests for checking Types ( #615 )
...
* refactor(types): refactor and add tests for checking Types
* remove unused
* uncomment
* use `Handler` in validator middleware
* remove unused
* create `src/validator` dir and move some files into it
* add the case that the context is in `validator`
* rename `D` to `S`
2022-10-23 08:10:00 +09:00
Yusuke Wada
39f896a576
fix(compose): don't throw Error; set error response into c.res
( #576 )
2022-10-02 15:44:54 +09:00
Yusuke Wada
7bb9cc1a19
fix: don't use defaultNotFoundMessage
variable ( #549 )
2022-09-21 23:05:26 +09:00
Yusuke Wada
5133a93925
feat: support appending values with c.header
( #539 )
2022-09-20 21:41:45 +09:00
Yusuke Wada
730453aeb0
fix(redirect): don't have to make relative url to absolute one ( #541 )
...
* fix(redirect): don't have to make relative url to absolute one
* remove `isAbsoluteURL`
2022-09-20 18:56:31 +09:00
Yusuke Wada
a2cc1a01c2
feat: another idea of Validator Middleware ( #535 )
...
* feat: Another idea of validator middleware
* denoify
* set property value in constructor
* rename `option` to `options`
* add test for handling type error
* use `test` instead of `match`
2022-09-20 10:11:34 +09:00
Yusuke Wada
058e3113b3
fix(types): correct types for app.notFound
/ app.onError
( #512 )
...
Fix #511
2022-09-10 18:00:00 +09:00
Yusuke Wada
24a28942de
fix: fixed the issue logger called twice ( #494 )
...
* fix: fixed the issue logger called twice
* add handling the error and shorten code
2022-09-02 21:13:47 +09:00
Yusuke Wada
c091517947
fix(context): fix type error ( #489 )
2022-08-28 18:16:51 +09:00
Yusuke Wada
1c3c9f1200
fix(type): fix type errors for Bindings and Variables ( #488 )
2022-08-27 23:57:33 +09:00
Yusuke Wada
ddfe07ecec
feat(types): enable adding Types for variables used in c.set
/c.get
( #478 )
...
* feat(types): enable adding Types for variables used in `c.set`/`c.get`
* fix typo
2022-08-23 20:53:25 +09:00
Yusuke Wada
9edf43c63b
fix(context): fixed ContextVariableMap
is not enabled in built code ( #465 )
2022-08-12 11:22:30 +09:00
Yusuke Wada
e07147a8ec
fix(context): fix header values shifting ( #463 )
2022-08-10 21:34:33 +09:00
Yusuke Wada
3c371d0d07
chore: denoify
2022-07-31 22:19:28 +09:00
Yusuke Wada
b4a660c605
chore(deno): denoify
2022-07-18 11:56:07 +09:00
Yusuke Wada
1ee08cc5ce
chore(deno): denoify
2022-07-17 18:11:09 +09:00
Yusuke Wada
9a41cde632
chore: denoify
2022-07-15 08:40:15 +09:00
Yusuke Wada
0d48c9f338
feat: [WIP] new structure for support Deno and third-party middleware
...
[skip ci]
2022-07-15 08:40:15 +09:00
Yusuke Wada
3f5c725435
chore: denoify
2022-07-10 18:52:04 +09:00
Yusuke Wada
d9e9e62e47
feat: support Deno! ( #336 )
2022-07-02 15:09:45 +09:00