Yusuke Wada
5f9453b498
feat(jsx): React-like style
conversion ( #1159 )
...
* feat(jsx): React-like `style` conversion
* denoify
2023-06-07 21:56:04 +09:00
Yudai Nakata
c09dbc060b
feat: define JSX.ElementChildrenAttribute interface ( #1139 )
...
* feat: define JSX.ElementChildrenAttribute interface
* chore: denoify
2023-05-29 22:00:27 +09:00
Yusuke Wada
8f5ba57d0c
fix(middleware): don't use headers.append()
, use headers.set()
( #1129 )
...
* fix(middleware): don't use `c.res.headers.append()`, use `set()`
* denoify
2023-05-24 18:01:19 +09:00
Yusuke Wada
2cfafe9642
fix(basic-auth): handle passing invalid value to atob()
( #1122 )
...
* fix(basic-auth): handle passing invalid value to `atob()`
* chore: denoify
2023-05-21 20:48:35 +09:00
Yusuke Wada
116aea542d
Merge branch 'main' into next
2023-05-05 17:46:30 +09:00
Yusuke Wada
a73f0d23f0
feat: Cookie Middleware and deprecate c.req.cookie()
/ c.cookie()
( #1066 )
...
* feat: add Cookie Middleware and deprecate `c.req.cookie()` / `c.cookie()`
* chore: denoify
2023-05-05 11:08:03 +09:00
Yusuke Wada
c50dcf03bb
fix(jsx): fix a jsx-runtime
bug ( #1070 )
...
* fix(jsx): fix a `jsx-runtime`
* fixed for Bun
* denoify
2023-05-05 10:46:49 +09:00
Yusuke Wada
55684f4b9f
chore: denoify
2023-05-03 22:19:24 +09:00
Taku Amano
b253a8735b
feat: Allow getPath to be replaced. ( #1064 )
...
* feat: Allow getPath to be replaced.
* chore: denoify
2023-05-03 22:13:23 +09:00
Yusuke Wada
e6669f7779
feat(jwt): support for getting payload from c.get('jwtPayload')
( #1025 )
2023-03-31 18:39:26 +09:00
Yusuke Wada
309c38a69a
denoify
2023-03-19 18:19:01 +09:00
Yusuke Wada
5cb8bf12fd
Merge branch 'main' into next
2023-03-13 09:54:55 +09:00
Yusuke Wada
4414e63246
fix(etag): returns correct headers ( #973 )
...
* fix(etag): returns correct headers
* denoify
* `Etag` to `ETag`
2023-03-13 09:48:44 +09:00
Yusuke Wada
ad880dba43
feat: env
support enviroment variables for multi runtimes ( #949 )
...
* feat: `env` support enviroment variables for multi runtimes
* typo
* denoify
* fixed ci settings
* fixed deno command
* comment out lagon test
* remove warnings
2023-03-06 21:12:22 +09:00
Yusuke Wada
c98f71610a
fix(jsx): declare types for JSX correctly ( #901 )
2023-02-18 06:50:52 +09:00
Yusuke Wada
60c0903a1c
fix(req): query return type as string | undefined
( #888 )
...
* fix(req): return type as `string | undefined`
* denoify
2023-02-13 21:40:51 +09:00
Yusuke Wada
39e855f0a4
feat: move http-exception out of utils ( #883 )
2023-02-11 18:05:50 +09:00
Yusuke Wada
17af727d49
feat(validator): moved validator outside of middleware ( #879 )
2023-02-11 01:18:27 +09:00
Yusuke Wada
fbf8959b74
fix(breaking): obsolete no args c.req.valid()
( #856 )
...
* v3.0.0-rc.9
* fix(breaking): obsolete no args `c.req.valid()`
* more strict
2023-02-01 22:02:09 +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
2afa06a5ba
feat(req): support c.req.valid('query')
( #832 )
2023-01-23 07:47:29 +09:00
Yusuke Wada
2de2ef3279
feat(validator): support multiple handlers w/ complex patterns. ( #831 )
2023-01-22 21:21:37 +09:00
Yusuke Wada
7beb64956c
feat: [BREAKING] introduce adapters ( #807 )
...
* feat: [BREAKING] introduce adapters
* added Next.js adapter
* denoify
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
d00a47ef70
feat: introduce HTTPException
( #796 )
...
* feat: introduce `HTTPException`
* denoify and fixed tests for Lagon
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
6bee574ca3
refactor(validator): show type error if get/head with form/json ( #772 )
2023-01-19 22:44:38 +09:00
Yusuke Wada
4422a0929c
fix(validator): return message when Malformed JSON request body ( #770 )
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
6c55b629ec
fix(types): fixed type structure ( #764 )
2023-01-19 22:44:37 +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
4298f8266a
fix(cors): fix bugs handling pre-flight ( #792 )
2023-01-09 00:30:53 +09:00
Yusuke Wada
90de083e1d
chore: denoify
2022-12-30 10:01:46 +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
Arnaud Dagnelies
9af95c886e
fix: Updated CORS ( #693 )
...
* Updated CORS
Do not call `next` for OPTIONS pre-flight requests to avoid side effects and more sensible defaults.
* restoring default cors headers
* restoring cors default allowed methods to avoid breaking change
* Deno dist stuff
2022-12-01 00:11:06 +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
c3031a418c
fix(jsx): export fragment ( #642 )
2022-11-01 21:41:27 +09:00
Yusuke Wada
6a96ace96a
feat(types): introduce CustomHandler
interface ( #637 )
2022-11-01 00:07:56 +09:00
Yusuke Wada
7b8a25126f
fix(validator): enable handling "Bad Request" in validator ( #635 )
2022-11-01 00:03:17 +09:00
Yusuke Wada
ca52dd898e
fix(build): fix ESM support in Node.js / use esbuild
( #631 )
...
* fix(build): fix ESM support in Node.js / use `esbuild`
* add tsx
* denoify ignore
2022-10-28 08:46:02 +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
c19028374d
fix(validator): make "isOptional" work correctly with "value" validation ( #613 )
2022-10-20 16:19:13 +09:00
Yusuke Wada
7981b100de
fix(validator): show "type" error messages if does not have "value" errors ( #612 )
2022-10-20 15:46:04 +09:00
Yusuke Wada
944dfc2e13
refactor(jwt): refactor code and add more tests ( #611 )
2022-10-19 20:24:43 +09:00
Yusuke Wada
33f1cbd604
chore: denoify
2022-10-19 20:01:43 +09:00
Yusuke Wada
0da78351e9
feat(validator): has the error message per rule ( #603 )
...
* feat(validator): has the error message per rule
* add test for checking result objects
* test(validator): add array results test (#609 )
* remove `console.log`
Co-authored-by: Derrick Farris <mr.dcfarris@gmail.com>
2022-10-19 19:17:04 +09:00