Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: honojs/hono
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.9.2
Choose a base ref
...
head repository: honojs/hono
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.9.3
Choose a head ref
  • 6 commits
  • 32 files changed
  • 3 contributors

Commits on Aug 19, 2025

  1. feat(csrf): Add modern CSRF protection with Fetch Metadata support (#…

    …4353)
    
    * feat(csrf): implement modern Fetch Metadata-based protection and enhance origin handling
    
    the implementation is inspired by:
    - the go std lib (net/http) implementation: https://github.com/golang/go/blob/5dac42363ba8281a3f4f08e03af2292b763adc38/src/net/http/csrf.go#L122-L163
    - the go RFC golang/go#73626 (comment)
    - and this article: https://web.dev/articles/fetch-metadata
    
    More references:
    - https://developer.mozilla.org/en-US/docs/Glossary/Fetch_metadata_request_header
    - https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/CSRF#fetch_metadata
    
    * refactor(tests): remove redundant CSRF test cases while keeping 100% test coverage
    
    * refactor(csrf): replace useFetchMetadata with secFetchSite option for cleaner API
    
    * refactor(csrf): remove OPTIONS method from safe methods in CSRF middleware
    
    * feat(csrf): add test for blocking unknown secFetchSite values and enhance type safety
    meck93 authored Aug 19, 2025
    Configuration menu
    Copy the full SHA
    117d0a4 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2025

  1. tests: use vitest projects (#4359)

    * tests: use vitest projects
    
    * chore: fix package.json line ending
    
    * test(fastly): stub navigator
    
    * chore(codecov): upgrade action to v5
    
    * chore: remove node environment
    
    * chore: rename main test project
    BarryThePenguin authored Aug 20, 2025
    Configuration menu
    Copy the full SHA
    d1c072a View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2025

  1. feat(proxy): add customFetch option to allow custom fetch function (#…

    …4360)
    
    * feat(proxy): add `fetch` option to allow custom fetch function
    
    * update the API
    
    * make it optional
    yusukebe authored Aug 21, 2025
    Configuration menu
    Copy the full SHA
    1c70d2d View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2025

  1. chore: update typescript to 5.9.2 (#4362)

    * chore: update `typescript` to `5.9.2`
    
    * update `@types/*` to remove the type inconsistencies
    yusukebe authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    3e5a6e8 View commit details
    Browse the repository at this point in the history
  2. chore: add packageManager field to package.json (#4363)

    * chore: add `packageManager` field to `package.json`
    
    * add a new line
    yusukebe authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    7d357e5 View commit details
    Browse the repository at this point in the history
  3. 4.9.3

    yusukebe committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    187ece2 View commit details
    Browse the repository at this point in the history
Loading