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

chore: Add named hooks for improved visibility and debugging #261

Merged
merged 1 commit into from
Sep 21, 2024

Commits on Sep 21, 2024

  1. chore: Add named hooks for improved visibility and debugging

    This commit introduces named hooks in place of anonymous functions
    for the Fastify Helmet plugin. The changes include:
    
    1. Renamed the first onRequest hook to 'helmetConfigureReply'
    2. Renamed the second onRequest hook to 'helmetApplyHeaders'
    
    These named hooks provide better visibility when inspecting routes
    and improve the debugging experience. This change aligns the plugin
    with other Fastify plugins like @fastify/cors that use named hooks.
    
    The functionality remains unchanged; this is purely a developer
    experience improvement.
    kei-ichi committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    5bd7eb6 View commit details
    Browse the repository at this point in the history