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

feat(app): support request, beforeResponse and afterResponse hooks #1545

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Aug 7, 2023

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Support runtime hooks to intercept request lifecycle based on unjs/h3#482

Note: For performance, hooks are called in parallel.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@nuxt-studio
Copy link
Contributor

nuxt-studio bot commented Aug 7, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
nitro Edit on Studio β†—οΈŽ View Live Preview 2fde7a1

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #1545 (2094489) into main (9ce2f64) will not change coverage.
The diff coverage is n/a.

❗ Current head 2094489 differs from pull request most recent head 2fde7a1. Consider uploading reports for the commit 2fde7a1 to get more accurate results

@@           Coverage Diff           @@
##             main    #1545   +/-   ##
=======================================
  Coverage   76.38%   76.38%           
=======================================
  Files          73       73           
  Lines        7550     7550           
  Branches      745      745           
=======================================
  Hits         5767     5767           
  Misses       1782     1782           
  Partials        1        1           

@pi0 pi0 requested a review from danielroe August 7, 2023 08:09
@pi0 pi0 marked this pull request as ready for review August 7, 2023 08:49
@pi0 pi0 merged commit 346a61a into main Aug 7, 2023
6 checks passed
@pi0 pi0 deleted the feat/req-res-hooks branch August 7, 2023 08:49
@pi0 pi0 mentioned this pull request Aug 7, 2023
8 tasks
@pi0 pi0 mentioned this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants