Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #3394

Merged
merged 13 commits into from
Sep 11, 2024
Merged

Next #3394

merged 13 commits into from
Sep 11, 2024

Conversation

yusukebe
Copy link
Member

@yusukebe yusukebe commented Sep 8, 2024

For v4.6.0.

kbkn3 and others added 8 commits September 8, 2024 15:43
…iddleware (#3314)

* feat(secureHeader): add Permissions-Policy header to secure headers middleware

* refactor(secure-headers): optimize getPermissionsPolicyDirectives function
* Extends WSContext's types

* Add new generics on UpgradeWebSocket types

* fix with linter

* revert createWSContext types

* prettier fix
* Initial update

* typo

* sort new logic

* remove extra cast

* add more testing

* fix content existence
…t in streamSSE (#3344)

* feat(helper/streaming): Support Promise<string> or (async) JSX.Element in streamSSE

* refactor(context): enable to pass Promise<string> (includes async JSX.Element) to resolveCallback
* make headers mutable

* add test

* immutability check

* revert change

* fix(context): clone response object if it's immutable

* test(runtime-node): specify ip address as numbers

* test(runtime-node): use address from server info instead of `127.0.0.1`

* test(runtime-node): use large date to test compress

---------

Co-authored-by: Taku Amano <taku@taaas.jp>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
Copy link

codecov bot commented Sep 8, 2024

Codecov Report

Attention: Patch coverage is 98.51485% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.78%. Comparing base (f9a23a9) to head (743f66c).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
src/middleware/context-storage/index.ts 86.66% 2 Missing ⚠️
src/middleware/secure-headers/secure-headers.ts 96.87% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3394    +/-   ##
========================================
  Coverage   95.77%   95.78%            
========================================
  Files         152      154     +2     
  Lines        9187     9313   +126     
  Branches     2788     2761    -27     
========================================
+ Hits         8799     8920   +121     
- Misses        388      393     +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yusukebe yusukebe added the v4.6 label Sep 10, 2024
yusukebe and others added 4 commits September 10, 2024 14:09
* feat(basic-auth): added custom response message option

* feat(basic-auth): using specific MessageFunction type
* feat(bearer-auth): added custom response message options

* feat(bearer-auth): using specific MessageFunction type

* feat(bearer-auth): refactored to du-duplicate code
@yusukebe yusukebe merged commit 2da003b into main Sep 11, 2024
26 checks passed
@yusukebe yusukebe deleted the next branch September 11, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants