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.2.9
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.3.0
Choose a head ref
  • 20 commits
  • 79 files changed
  • 10 contributors

Commits on Apr 30, 2024

  1. fix(request): infer params in a path includes one or more optional pa…

    …rameter (#2576)
    
    * fix(request): infer params in a path includes one or more optional parameter
    
    * denoify
    yusukebe authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    f298549 View commit details
    Browse the repository at this point in the history
  2. feat(rpc): Add status code to response type (#2499)

    * feat: add status code to response type
    
    * fix MergeSchemaPath
    
    * remove TypedResponseInit
    
    * fix issues
    
    * update tests
    
    * add types tests
    
    * add client tests
    
    * denoify
    
    * fix client test
    
    * fix validator test
    
    ---------
    
    Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
    kosei28 and yusukebe authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8129a3a View commit details
    Browse the repository at this point in the history
  3. feat(helper/cookie): delete cookie returns the deleted value (#2512)

    * feat(helper/cookie): return the value of the deleted cookie as a return value
    
    * test(helper/cookie): add a case of  deleteCookie's return value
    
    * chore: denoify
    sor4chi authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8bdbbaa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c5804b2 View commit details
    Browse the repository at this point in the history
  5. feat(jsx/dom): improve compatibility with React (#2553)

    * feat(jsx/dom): Match the type with the object returned from React's createElement
    
    https://react.dev/reference/react/createElement#returns
    
    * feat(jsx): add Children utility functions
    
    * feat(jsx/dom): export Fragment from hono/jsx/dom
    
    * feat(jsx): export DOMAttributes type
    
    * feat(jsx): export ReactNode and ReactElement types
    
    * feat(jsx): export types for compat with react
    
    * feat(jsx): Add hooks and utils for React compatibility
    
    * createRef
    * forwardRef
    * useImperativeHandle
    * useSyncExternalStore
    
    * refactor(jsx): use Object.is for state comparison like React
    
    > If the new value you provide is identical to the current state, as determined by an Object.is comparison, React will skip re-rendering the component and its children.
    https://react.dev/reference/react/useState#setstate-caveats
    
    * feat(jsx/dom): Implement `flushSync` and `createPortal`
    
    * feat(jsx/dom/jsx-dev-runtime): preserve only one children in jsxDEV
    
    * refactor(jsx/dom): change data structure of NodeString
    
    * feat(jsx/dom): accept nullish value for event handler and ref
    
    * feat(jsx/dom): enable to set CSS variables
    
    * feat(jsx/dom): support defaultProps in functional components
    
    * refactor(jsx/dom): improve removing node process
    
    * fix(jsx/dom): propagate the context to the children
    
    * perf(jsx/dom): skip snapshotting for internal tags
    
    * feat(jsx): preserve only one children also in hono/jsx/jsx-dev-runtime.ts
    
    * feat(jsx): support CSS variable in server-side rendering
    
    * feat(jsx): accept null as props in createElement
    
    * refactor(jsx): refactor internal children handling
    
    * chore: denoify
    
    * test(jsx): add tests
    
    * refactor(jsx): use `toArray` unitility function in render.ts
    usualoma authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0653153 View commit details
    Browse the repository at this point in the history
  6. fix(jsx): preserve the state of element even if it is repeatedly eval…

    …uated by children (#2563)
    
    * fix(jsx): When an Element is evaluated repeatedly, useState() etc. are not initialized.
    
    * chore: denoify
    usualoma authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    ebce2d0 View commit details
    Browse the repository at this point in the history
  7. feat(utils/mime): expose built-in MIME types (#2516)

    * feat: expose built-in MIME
    
    * rename the export to `mimes`
    cometkim authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9f53dc2 View commit details
    Browse the repository at this point in the history
  8. feat(serve-static): expose serve-static builder (#2515)

    * 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
    cometkim authored Apr 30, 2024
    Configuration menu
    Copy the full SHA
    33a7707 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. feat(secure-headers): enable to set nonce in CSP (#2577)

    * feat(secure-headers): enable to set nonce in CSP
    
    * chore: denoify
    
    * refactor(secure-headers): remove debug logs
    
    * refactor(secure-headers): remove useless eslint-disable-next-line comment
    
    * refactor(secure-headers): specify type for `getCSPDirectives()` more strictly
    
    * feat(secure-headers): export ContentSecurityPolicyOptionHandler
    
    * chore: denoify
    usualoma authored May 1, 2024
    Configuration menu
    Copy the full SHA
    869cf28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6a2a8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    36f508e View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. feat(types): improve response types flow (#2581)

    * fix: `ClientResponse` now properly extends fetch's `Response`
    
    Better experience / fix types error when working with functions that expects a fetch's `Response`
    
    * feat(context): switch from `InterfaceToType` to `Simplify` for better performance
    
    Also automatically infer ReturnType for cleaner code
    
    * feat(context): infer `TypedResponse` for `TextRespond`
    
    * feat: improve response types flow with `ResponseFormat`
    
    Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
    
    * tests: adjust & add new tests for `TextRespond` & `ResponseFormat`
    
    * tests: improve test of using interface
    
    * chore: denoify
    
    ---------
    
    Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
    NamesMT and yusukebe authored May 2, 2024
    Configuration menu
    Copy the full SHA
    2b2dacc View commit details
    Browse the repository at this point in the history
  2. docs(readme): remove Benchmarks section (#2591)

    * docs(readme): remove Benchmarks section
    
    * denoify
    yusukebe authored May 2, 2024
    Configuration menu
    Copy the full SHA
    a5c48ff View commit details
    Browse the repository at this point in the history
  3. feat(types): improve ToSchema & WebSocket Helper types (#2588)

    * feat: add `outputFormat` types to Input
    
    Co-authored-by: Shotaro Nakamura <syoutarou1103@outlook.jp>
    
    * feat: `ToSchema` ability to use whole `Input`
    
    Co-authored-by: Shotaro Nakamura <syoutarou1103@outlook.jp>
    
    * feat: improve `UpgradeWebSocket` types flow
    
    Co-authored-by: Shotaro Nakamura <syoutarou1103@outlook.jp>
    
    ---------
    
    Co-authored-by: Shotaro Nakamura <syoutarou1103@outlook.jp>
    NamesMT and nakasyou authored May 2, 2024
    Configuration menu
    Copy the full SHA
    9732a7b View commit details
    Browse the repository at this point in the history
  4. feat(factory): add createApp() (#2573)

    * feat(factory): add `createApp()`
    
    * add tests
    
    * denoify
    yusukebe authored May 2, 2024
    Configuration menu
    Copy the full SHA
    11a20a7 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    fb07fb4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    791b969 View commit details
    Browse the repository at this point in the history
  3. feat(timing): allow crossOrigin in TimingOptions to be a function (#2359

    )
    
    * feat: allow crossOrigin in TimingOptions to be a function
    
    * chore: denoify
    
    * chore: undo accidental change
    
    * test: add tests
    jonahsnider authored May 3, 2024
    Configuration menu
    Copy the full SHA
    78fa4ca View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2600 from honojs/next

    Next
    yusukebe authored May 3, 2024
    Configuration menu
    Copy the full SHA
    1564cde View commit details
    Browse the repository at this point in the history
  5. v4.3.0

    yusukebe committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d44be95 View commit details
    Browse the repository at this point in the history
Loading