Yusuke Wada
797688f493
v2.5.3
2022-11-20 15:51:20 +09:00
Yusuke Wada
d2fa90f0fe
fix(package.json): exports types correctly ( #669 )
...
* fix(package.json): exports types correctly
* make jest config commonjs
2022-11-20 15:46:18 +09:00
Yusuke Wada
05f2f6eb10
fix(types): app.use
return correct types
...
Fix #666
2022-11-19 15:49:22 +09:00
oscaryu
9f2d52b62e
Update MIGRATION.md ( #665 )
2022-11-19 15:23:00 +09:00
Yusuke Wada
8ab08c444e
v2.5.2
2022-11-17 15:14:20 +09:00
Yusuke Wada
1674bbba32
chore(denoify): update Buffer
2022-11-17 15:11:36 +09:00
Jayden
06cecbd1e2
fix(param): Decode context.param ( #662 )
...
* Decode url param
* Denoify
2022-11-14 09:10:03 +09:00
Yusuke Wada
ce31e2ac30
v2.5.1
2022-11-13 10:26:05 +09:00
Jayden
e92dbe9558
fix(sanitizer) ( #661 )
...
* Add test for #660
* Implement sanitizeValue
* Mark sanitizeValue private
2022-11-12 20:33:18 +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
b82547f70a
v2.5.0
2022-11-08 07:04:09 +09:00
Yusuke Wada
58ef70f0cf
fix(types): export ErrorHandler
and NotFoundHandler
( #656 )
2022-11-08 07:02:54 +09:00
Yusuke Wada
b963d6e7cb
feat(app): introduce app.on(method, path, handler)
( #653 )
...
* feat(app): introduce `app.on(method, path, handler)`
* Refactoring of feat/on branche (#655 )
* refactor(reg-exp-router): Use `includes` instead of `find` to check if an element is in an array.
* fix(static-router): Copy middleware from METHOD_NAME_ALL for new method.
* chore: denoify
Co-authored-by: Taku Amano <taku@taaas.jp>
2022-11-08 03:17:34 +09:00
Yusuke Wada
15a5119bac
feat(app): introduce app.showRoutes()
( #650 )
2022-11-05 19:04:01 +09:00
Yusuke Wada
edfb31ee94
fix(error): make notFound()
enables to catch errors correctly ( #652 )
2022-11-05 19:02:19 +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
Yusuke Wada
8e9b1c8099
fix(type): make compatibility with @cloudflare/workers-types
( #645 )
2022-11-03 15:39:25 +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
fadce52673
v2.4.1
2022-11-01 21:44:20 +09:00
Yusuke Wada
c3031a418c
fix(jsx): export fragment ( #642 )
2022-11-01 21:41:27 +09:00
Yusuke Wada
4d7c941836
v2.4.0
2022-11-01 17:45:16 +09:00
Yusuke Wada
da55bf922f
chore: denoify
2022-11-01 17:42:25 +09:00
Jayden
dcc21afe6d
test(routing): add test cases for route grouping order ( #640 )
...
* Add test cases for route grouping
* fix(validator): enable handling "Bad Request" in validator (#635 )
* feat(types): introduce `CustomHandler` interface (#637 )
* Fix nested test
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2022-11-01 17:37:49 +09:00
Yusuke Wada
44eb4bb6c6
fix(types): improve custom handler ( #641 )
2022-11-01 17:13:13 +09:00
Yusuke Wada
c14dd5ad43
feat(validator): support v.queries
( #636 )
2022-11-01 14:22:04 +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
Taishi Naritomi
ddbea5be70
fix(typo): package.cjs.json
target to type ( #634 )
2022-10-29 16:09:32 +09:00
Yusuke Wada
1749f6a962
test(bun): JWT middleware works on Bun v0.2.2 ( #633 )
2022-10-29 00:09:09 +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
d8da569299
v2.3.2
2022-10-25 00:02:29 +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
b4d58eca64
test(validator): add test for custom rules ( #620 )
...
* test(validator): add test for custom rules
* fixed value
2022-10-23 10:11:18 +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
77b0815d22
docs(contribution): update about 3rd-party middleware ( #619 )
2022-10-23 07:01:04 +09:00
Yusuke Wada
852382016a
docs(migration): add v2.2.5 to v2.3.0
( #617 )
2022-10-22 21:34:52 +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
47b54781a8
v2.3.1
2022-10-20 15:50:10 +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
0dc90e4be6
v2.3.0
2022-10-19 20:30:53 +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
6d0da56b11
fix(basic/bearer): support "nested" middleware ( #610 )
2022-10-19 20:00:06 +09:00
Shawn
dc82384000
fix(bearer-auth, basic-auth): handler should not be executed when unauthorized ( #608 )
...
* fix(bearer-auth): handler should not be executed when unauthorized
* fix(basic-auth): also fix basic auth
2022-10-19 19:40:42 +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
Yusuke Wada
2776957bba
feat(validator): introduce nested validation ( #592 )
...
* feat(validator): introduce `v.array()` and `v.object` for nested validation
* copy objects
* remove unnecessary tests
* fix(object): make merge immutable to fix issues with missing fields (#598 )
Co-authored-by: Derrick Farris <mr.dcfarris@gmail.com>
2022-10-13 06:48:59 +09:00
Yusuke Wada
c5672a6161
perf(serve-static): return immediately if c.finalized
( #596 )
2022-10-10 00:29:40 +09:00
Yusuke Wada
d86c8919bc
test(bun): add more tests for serve static middleware ( #595 )
2022-10-10 00:24:14 +09:00