Kelly Littlepage
387d696303
fix: application/x-www-form-urlencoded decoding ( #1189 )
...
The current logic for decoding application/x-www-form-urlencoded is
overly restrictive and misses `Content-Type` headers with a character
encoding set, i.e., application/x-www-form-urlencoded; charset=UTF-8.
This fix harmonizes the logic for handling multipart/form-data
and application/x-www-form-urlencoded in the `parseBody` method of
request objects.
2023-06-21 22:51:59 +09:00
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
IGUCHI Kanahiro
a6b0833060
fix: avoid range-error ( #1168 )
...
* fix: avoid range-error
* fix: avoid range-error
* denoify
2023-06-07 21:54:49 +09:00
Alexander Kozlov
8387b8c0f6
fix(HttpException): error message should not be the HTTP reason phrase ( #1161 )
...
* fix(HttpException): error message should not be the HTTP reason phrase
* review fixes
---------
Co-authored-by: Nasa <nasa@mail.inc>
2023-06-07 21:17:52 +09:00
ayame113
81d271279c
feat: Allow context.jsonT
to take interface as an argument ( #1162 )
2023-06-06 10:23:09 +09:00
Taku Amano
8a1b9aa9a8
refactor: Tweaks variable names to reduce code. ( #1157 )
...
* refactor: Tweaks variable names to reduce code.
* Delete meaningless comments
* chore: denoify
2023-06-04 09:16:29 +09:00
Yusuke Wada
2d6abaff5c
fix(tire-router/pattern-router): fixed the named capture issue ( #1148 )
...
* fix(trie-router): fixed the named capture issue
* denoify
* denoify
* refactor(pattern-router): Use Object.assign for shortening the code. (#1154 )
* refactor(pattern-router): Use `Object.assign` for shortening the code.
* chore: denoify
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-06-03 09:08:01 +09:00
Yusuke Wada
0e1755c9e4
feat: handle HEAD method ( #1142 )
...
* feat: handle HEAD method
* remove `head` from `METHOS`
* fixed the lagon test
* show `depracated` message (will be removed next minor? version)
* denoify
* use `request.url`
* denoify
* Invoke dispatch() without changing request.method for HEAD method. (#1152 )
* Invoke `dispatch()` without changing request.method for HEAD method.
* chore: denoify
* refactored
* denoify
* refactor: dispatch() arguments can no longer be omitted (#1156 )
* Revert "refactored"
This reverts commit 2f8dacc42d
.
* refactor: `dispatch()` arguments can no longer be omitted
* denoifiy
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-06-03 09:07:33 +09:00
Taku Amano
2ff0605382
fix(reg-exp-router): Register static paths first for duplicate checking. ( #1146 )
...
* fix(reg-exp-router): Register static paths first for duplicate checking.
* chore: denoify
2023-06-01 17:37:19 +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
f251706e6e
fix(deno): export types for the client ( #1137 )
2023-05-28 08:44:50 +09:00
Dmitry Poklonskiy
2a2f73a1c4
fix: Add missing client types and TypedResponse type ( #1135 )
2023-05-28 08:39:36 +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
ded33157bc
fix: export PatternRouter
and LinearRouter
( #1128 )
2023-05-24 16:05:50 +09:00
Yusuke Wada
4f8ed4201e
chore: denoify ( #1124 )
2023-05-22 11:40:51 +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
1c44c6ec46
Revert "feat(deno): export cookie middleware ( #1103 )"
...
This reverts commit 9a4af5ea00
.
Fix #1120
2023-05-21 01:47:34 +09:00
Yusuke Wada
127fa30dce
fix(app): app.mount()
supports /
( #1119 )
...
* fix(app): `app.mount()` supports `/`
* chore: denoify
2023-05-20 15:29:58 +09:00
Yusuke Wada
2e6064703b
docs(readme): update ( #1115 )
...
* docs(readme): update
* denoify
2023-05-19 12:07:18 +09:00
Yusuke Wada
84f8bc6fc8
fix(router): PatternRouter
supports a hostname, added tests ( #1114 )
...
* fix(router): `PatternRouter` supports a hostname, added tests
* denoify
2023-05-18 15:03:35 +09:00
Yusuke Wada
4fde03e22f
fix(preset): fix constructor args ( #1113 )
...
* fix(preset): fix constructor args
* chore: denoify
2023-05-18 14:18:55 +09:00
Yusuke Wada
a2d22807e4
feat: app.mount()
( #1104 )
...
* feat: `mount()`
* update tests
* check header values
* chore: denoify
* make it as `app.mount()`
* denoify
* Generate new URL more simply. (#1112 )
* Generate new URL more simply.
* chore: denoify
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-05-18 14:03:50 +09:00
Yusuke Wada
390d05b006
feat(app): app.routerName()
( #1105 )
...
* feat(context): `c.routerName()`
* chore: denoify
* Enable to get router name via `app.routerName`. (#1110 )
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-05-18 00:05:28 +09:00
Yusuke Wada
a538d4ad81
fix(app): export fire()
correctly ( #1106 )
2023-05-17 06:55:30 +09:00
Yusuke Wada
9a4af5ea00
feat(deno): export cookie middleware ( #1103 )
...
* feat(deno): export cookie middleware
* chore: denoify
2023-05-14 12:52:55 +09:00
Yusuke Wada
39bf73841f
docs: update readme
2023-05-14 12:37:21 +09:00
Yusuke Wada
ccc4308871
fix(types): set /
for generics basePath
( #1083 )
...
* fix(types): set `/` for generics `basePath`
* denoify
* fix `MergePath`
* tweak
* denoify
2023-05-14 08:18:45 +09:00
Yusuke Wada
e785fe8d81
feat(app): onError()
supports async ( #1090 )
...
Co-authored-by: Ali Kaan Tunçel <alikaan.net@hotmail.com>
2023-05-14 08:16:28 +09:00
Yusuke Wada
220c956272
Merge branch 'main' into next
2023-05-11 17:53:05 +09:00
Taku Amano
c25745c6fa
fix(context): Fix typo in charset, again. ( #1086 )
...
* fix(context): Fix typo in charset.
* chore: denoify
2023-05-10 08:27:40 +09:00
Taku Amano
b15638c37c
fix(getQueryParam): Fixed a bug in getQueryParam when a partial matching key was found. ( #1085 )
...
* fix(getQueryParam): Fixed a bug in getQueryParam when a partial matching key was found.
* chore: denoify
2023-05-10 08:26:17 +09:00
Yusuke Wada
f26630a61b
fix: remove type.ts
( #1082 )
...
* fix: remove not used `type.ts`
* denoify
2023-05-09 22:22:12 +09:00
Yusuke Wada
187cb7ed5b
chore: denoify
2023-05-09 22:15:10 +09:00
Yusuke Wada
bcc08081ef
fix(context): enable extending ContextVarableMap
( #1080 )
...
* fix(context): enable extending `ContextVarableMap`
* denoify
2023-05-09 21:55:40 +09:00
Yusuke Wada
d9aca261a1
fix: enable specifying router from args ( #1079 )
...
* fix: enable specifying router from args
* add tests
* denoify
2023-05-09 21:50:43 +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
21f4c196e7
feat(serve-static): rewriteRequestPath
option for Workers/Deno/Bun ( #1065 )
2023-05-03 23:05:21 +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
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
d06a3123e7
Merge branch 'main' into next
2023-05-02 16:30:24 +09:00
Yusuke Wada
85528398c3
fix: check global.fastly
instead of require('fastly:env')
( #1057 )
...
* fix: use `global.fastly` instead of `require('fastly:env')`
* denoify
2023-05-02 16:26:39 +09:00
Alex Errant
7c6ebe8f4e
fix: empty string is a valid header value ( #1056 )
...
* empty string is a valid header value
* yarn denoify
2023-05-02 15:56:17 +09:00
Yusuke Wada
64ddf093d6
perf: use ===
instead of startsWith
and endsWith
( #1053 )
2023-04-30 21:18:32 +09:00
Yusuke Wada
0a19deaa5b
perf: shorten code ( #1051 )
2023-04-30 21:07:00 +09:00
Taku Amano
1a1de75296
feat: Introduce LinearRouter. ( #1043 )
...
* feat: Introduce LinearRouter.
* chore: Add benchmark script.
* chore: denoify
2023-04-28 12:10:20 +09:00
Yusuke Wada
03df736763
feat(utils): remove HTTP status messages from http-status.ts
( #1037 )
...
* feat(utils): remove HTTP status messages from `http-status.ts`
* denoify
2023-04-28 12:10:20 +09:00