0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-29 09:43:20 +01:00
Commit Graph

33 Commits

Author SHA1 Message Date
Yusuke Wada
40c350cd88
feat(context): introduce c.render() (#1397)
* feat(context): introduce `c.render()`

* denoify
2023-09-05 16:01:58 +09:00
Yusuke Wada
3bd44fa25c
fix(types): export ToSchema (#1372)
* fix(types): export `ToSchema`

* denoify
2023-08-24 16:12:17 +09:00
rosahaj
5320ed6c57
fix(type): Export Schema type to allow route exports in declaration files (#1309)
* Export Schema type to allow route exports in declaration files

* Apply changes to src/mod.ts as well

* denoify
2023-08-11 07:05:51 +09:00
Yusuke Wada
5b873fcc5c
fix(types): allow not to set skipLibCheck (#1206)
* fix(types): allow not to set `skipLibCheck`

* use `unknown`

* denoify
2023-06-29 16:48:00 +09:00
Yusuke Wada
f251706e6e
fix(deno): export types for the client (#1137) 2023-05-28 08:44:50 +09:00
Yusuke Wada
ded33157bc
fix: export PatternRouter and LinearRouter (#1128) 2023-05-24 16:05:50 +09:00
Yusuke Wada
95195801c4 Merge branch 'main' into next 2023-05-02 20:20:57 +09:00
Yusuke Wada
e066719aa1
fix(deno): export HTTPException from mod.ts (#1058)
* fix(deno): export `HTTPException` from `mod.ts`

* denoify
2023-05-02 16:37:24 +09:00
Yusuke Wada
677b572fd5 feat: introduce PatternRouter and hono/tiny (#1036)
* wip

* Use RegExp instead of URLPattern. (#1039)

* Use RegExp instead of URLPattern.

* refactor(url-pattern-router): tidy up.

* refactor(url-pattern-router): Tweaks type for mangling.

* refactor: Rename URLPatternRouter to PatternRouter.

* chore: denoify.

---------

Co-authored-by: Taku Amano <taku@taaas.jp>
2023-04-28 12:10:20 +09:00
Yusuke Wada
c503436276
feat(deno): denoify (#1024) 2023-03-31 18:17:45 +09:00
Yusuke Wada
e035e289ee
feat(deno): export HonoRequest type in Deno (#927) 2023-02-25 02:48:18 +09:00
Yusuke Wada
68cbbbcde7
refactor: rename ValidationTypes to ValidationTargets (#890)
* refactor: rename `ValidationTypes` to `ValidationTargets`

* denoify
2023-02-14 06:21:30 +09:00
Yusuke Wada
17af727d49
feat(validator): moved validator outside of middleware (#879) 2023-02-11 01:18:27 +09:00
Yusuke Wada
9391278911
feat(router) [breaking]: StaticRouter obsolete (#873)
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-02-09 16:58:28 +09:00
Yusuke Wada
dd4122a5e0
refactor: obsolute CustomHandler (#861) 2023-02-03 05:56:59 +09:00
Yusuke Wada
e2b269acb0
feat: rewnew output types (#853)
* feat: rewnew output types

* denoify

* refactor: move type definitions of middlware handler to `types.ts`

* format comment block

* add more tests
2023-02-01 06:36:48 +09:00
Yusuke Wada
fd4f18f6cc chore: denoify 2023-01-19 22:45:25 +09:00
Yusuke Wada
34514bc560 refactor(types): fix exporting and refactor (#767) 2023-01-19 22:44:37 +09:00
Yusuke Wada
e52e9ab463 fix(types): specify values of ValidationTypes (#766)
* fix(types): specify values of `ValidationTypes`

* export `ValidationTypes`
2023-01-19 22:44:37 +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
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
58ef70f0cf
fix(types): export ErrorHandler and NotFoundHandler (#656) 2022-11-08 07:02:54 +09:00
Yusuke Wada
6a96ace96a
feat(types): introduce CustomHandler interface (#637) 2022-11-01 00:07:56 +09:00
Yusuke Wada
d7a36b34fd
feat(validator): export Validator from 'hono' (#627) 2022-10-24 23:59:46 +09:00
Yusuke Wada
5b3e7f8fd7
fix(deno): export static-router and smart-router (#626) 2022-10-24 23:22:05 +09:00
Yusuke Wada
54a04c6a6f
fix(context): export ContextVariableMap correctly (#476) 2022-08-23 11:51:18 +09:00
Yusuke Wada
007e145eec refactor(deno): fix a definition of FetchEvent 2022-07-17 18:36:42 +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
503317309b chore(deno): do not export Env 2022-07-10 18:54:37 +09:00
Yusuke Wada
c5b90a46df
feat(deno): export everythings from middlewares (#349) 2022-07-08 08:55:44 +09:00
Yusuke Wada
49025e0aad
refactor(deno): [BREAKING] obsolete app.fire() (#343) 2022-07-06 10:57:55 +09:00
Yusuke Wada
1cdd71f676
feat: add serve-static middlware for deno (#339)
* feat: add `serve-static` middlware for deno

* make `getFilePath` into utils

* ignore deno ts files
2022-07-02 23:20:09 +09:00
Yusuke Wada
d9e9e62e47
feat: support Deno! (#336) 2022-07-02 15:09:45 +09:00