Yusuke Wada
4f772ddb44
docs(readme): fixed shields.io badage image url
2022-12-21 06:42:27 +09:00
Yusuke Wada
720d0c3ce2
v2.6.2
2022-12-14 22:14:28 +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
d755ed50b5
fix(request): req.param()
should return undefined
not "undefined" ( #721 )
2022-12-14 01:07:07 +09:00
Yusuke Wada
c6b434addd
refactor: shorten
2022-12-13 20:36:30 +09:00
Yusuke Wada
b1973d0c7f
fix(type): make SchemaToProp
work correctly ( #720 )
2022-12-13 17:22:33 +09:00
Yusuke Wada
e6635e9997
chore: denoify
2022-12-12 22:10:14 +09:00
Ren Hiyama
b1fbaecbec
Log a more detailed error stack. ( #719 )
2022-12-12 22:01:42 +09:00
Yusuke Wada
52ef58396e
v2.6.1
2022-12-11 11:15:13 +09:00
Yusuke Wada
fdea3b1cc6
fix(type): infer types correctly ( #715 )
2022-12-11 11:05:30 +09:00
Yusuke Wada
3def9b12c0
fix(type): fix the type mismatch if using Handler
as middleware ( #714 )
...
* fix(type): fix the type mismatch if using `Handler` as middleware
* remove a line
2022-12-10 23:11:27 +09:00
Yusuke Wada
7e8226623a
v2.6.0
2022-12-10 17:21:06 +09:00
Yusuke Wada
023d1738f0
chore: denoify
2022-12-10 17:16:04 +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
unworthyEnzyme
34231435a6
fix: cookie
should return string | undefined
( #709 )
...
* `cookie` should return `string | undefined`
* update the tests
2022-12-10 01:09:18 +09:00
Yusuke Wada
6c294039c1
v2.5.10
2022-12-08 21:51:04 +09:00
Yusuke Wada
a5b8b44793
fix(validator): enable checking undefined
in rules ( #708 )
2022-12-08 21:45:54 +09:00
Taku Amano
6d5de04743
fix(reg-exp-router): bug of "star and all" routing ( #707 )
...
* fix(reg-exp-router): Comparisons between middleware must be checked in both orientations.
* refactor(reg-exp-router): Simplify the conditions.
* chore: denoify
* fix(reg-exp-router): Copy middleware if the method of new middleware is METHOD_NAME_ALL.
* chore: denoify
2022-12-08 20:11:08 +09:00
Yusuke Wada
4c89a7ad54
v2.5.9
2022-12-08 00:59:11 +09:00
Yusuke Wada
cf73de1344
fix(trie-router): bug for routing orders with named param ( #704 )
2022-12-08 00:54:55 +09:00
Yusuke Wada
08a1b7843d
v2.5.8
2022-12-05 18:33:33 +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
Horie Issei
7a146a6f3f
chore: remove unnecessary config testPathIgnorePatterns ( #697 )
2022-12-02 02:18:00 +09:00
Dario Piotrowicz
9d73771d49
chore: fix lint warnings ( #694 )
2022-12-01 07:49:28 +09:00
Yusuke Wada
0774067e20
v2.5.7
2022-12-01 00:13:57 +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
Dario Piotrowicz
1f43164da5
Fix Validation of optional empty/undefined arrays ( #690 )
...
* * fix(validator): allow empty and undefined optional arrays
fix the bug of empty and undefined array causing a validation fail
when those are anyways optional
resolves #677
* denonify changes
2022-11-30 19:48:43 +09:00
Taku Amano
86699c1868
fix(reg-exp-router): Copy from METHOD_NAME_ALL for new methods ( #691 )
...
* fix(reg-exp-router): Copy from METHOD_NAME_ALL for new methods
* chore: denoify
* fix(reg-exp-router): Initialize both middleware and routes.
* chore: denoify
* fix(reg-exp-router):Fix middleware search routine.
* chore: denoify
2022-11-30 10:08:28 +09:00
Dario Piotrowicz
07efdb5103
fix(validator): fix subsequent nested objects names ( #683 )
...
* fix(validator): fix subsequent nested objects names
fix the bug of having subsequent objects inside a nested structure
causing the validator to forget the previous keys in the scheme's path
fixes point 1 of #677
* deonify changes
2022-11-29 22:02:20 +09:00
Taku Amano
e9a54bb8fc
fix(reg-exp-router): Allows registering a star after a long prefix. ( #684 )
...
* fix(reg-exp-router): Allows registering a star after a long prefix.
* fix(reg-exp-router): It now works even if a short GET is registered after a long ALL.
* chore: denoify
2022-11-28 22:20:40 +09:00
Yusuke Wada
9f7b5de9aa
chore: denoify
2022-11-28 08:45:57 +09:00
Dario Piotrowicz
35ab653f1b
fix(validator): fix jsons validation after arrays ( #680 )
...
* fix(validator): fix jsons validation after arrays
fix the bug of `v.json()` calls made after a `v.array()` to be mistakenly
considered as still being inside the array
fixes one of the issues mentioned in #677
* fixup! fix(validator): fix jsons validation after arrays
create new RecursiveValidator class
* fixup! fix(validator): fix jsons validation after arrays
remove RecursiveValidator class
2022-11-28 08:17:26 +09:00
Yusuke Wada
5b72c3ad6e
v2.5.6
2022-11-26 16:04:11 +09:00
Yusuke Wada
8fcc9e6e3b
chore: donoify
2022-11-26 15:59:50 +09:00
Taishi Naritomi
95973a5b95
fix(package.json): add "type": "module" ( #679 )
2022-11-26 15:45:24 +09:00
Yusuke Wada
8500949bd6
v2.5.5
2022-11-23 18:58:30 +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
5456709b4c
chore(package.json): update the description
2022-11-20 23:42:23 +09:00
Yusuke Wada
ca9cb0cdf9
v2.5.4
2022-11-20 21:39:33 +09:00
Yusuke Wada
d01ed4da8a
fix(package.json): add typesVersions
section ( #670 )
2022-11-20 21:37:37 +09:00
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