* fix(typo): Fix typo in request.test.ts
* fix: remove 'unknown' string from AddressType
* fix: return undefined when addressType is invalid string
* fix: change addressType in getConnInfo function to undefined
* fix: change addressType in getConnInfo function to undefined
* fix: remove unused "unknown" string
* fix: change to allow use of websocket options
* fix types
* change args
* fix
* add tests
* change to any
* add ignore any comment
* merge into mian
* Revert "add ignore any comment"
This reverts commit 8b3a34f212.
* Revert "merge into mian"
This reverts commit bf82da8d90.
* add ignore any comment
* fix: handle multiple cookies in streaming responses
This fix does address that cookies have to be handled
specially in lambda responses.
Fixes #2921
* test: check cookie handling
* refactor(aws-lambda): merge custom-context into types so they are excluded from coverage
* refactor: custom-context.ts is not needed since it is hidden by reexport
* fix: The onopen event cannot be triggered during delayed operations
* fix: The onopen event cannot be triggered during delayed operations
* chore: delete test
* chore: tidy
* feat: WebSocket helper supports `{ server }`
* test: add test
* chore: format code
* fix: test
* chore: format code
* fix: format code with new rule
* chore: format code
Fixes #2645
Fixes #2696
* feat(jsr): reduce slow types (#2369)
* feat(jsr): reduce slow types
* fix: use allow function
* chore: format code
* chore: denoify
* add `deno.json`
* add `jsr-dry-run` command for CI
* don't put `JSX` on `global`
* fix test settings for deno
* don't use `dynamicClass`
* don't declare `ExecutionContext` in `global`
* goodbye denoify
* exports `./middleware`
* exports `./helper`
* exports each helper and middleware
* remove the `awslambda` implementation which is not enough
* feat(jsr): remove helper.ts and middleware.ts (#2667)
* feat(jsr): remove helper.ts and middleware.ts
* fix: fix test
* dont' use `SuperClass`
Co-authored-by: Taku Amano <taku@taaas.jp>
* feat(jsr): delete `mod.ts` (#2669)
* rename `deno.json` to `jsr.json`
* lint
* remove slow type in lambda adapter
* fixed runtime test for deno
* export all utils
* add a GitHub action to publish the package to JSR
* fixed declaring `ContextVariableMap`
* fixed the type error
* include `jsr.json` in `jsr.json`
* update `jsr.json`
---------
Co-authored-by: Shotaro Nakamura <79000684+nakasyou@users.noreply.github.com>
Co-authored-by: Taku Amano <taku@taaas.jp>
* feat: allow to use serve-static builder
* typo
* add stricter type requirement as it is public interface
* allow specifying content-type (and others) from user code
* fix type
* rename the export the `serve-static`
* add a test
* Headers can be undefined on ALB
* Delegate headers from multiValueHeaders
* Add test
* Assert header values
* format
* Make multiValueHeaders optional so it can be omitted
* Avoid Object.entries when undefined
* Write tests in runtime_tests
In case of a streaming lambda, the response should still contain metadata
like status and content type, even if no body is given.
This could be for example a redirect response.