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: middyjs/middy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.5.0
Choose a base ref
...
head repository: middyjs/middy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.5.1
Choose a head ref
  • 3 commits
  • 40 files changed
  • 3 contributors

Commits on Oct 15, 2024

  1. 🏷️ ensures that handler return is properly typed

    - This change addresses an issue where the return type of handlers was not being correctly enforced by the TypeScript compiler. As far as I could tell, the issue is caused by the `infer` keyword not working with generic types.
    - Added `TResult` as a type parameter to `MiddlewareHandler` to explicitly specify the handler's return type.
    - Modified the `middy` function signature to pass `TResult` to `MiddlewareHandler`.
    - By explicitly specifying `TResult`, we ensure that the compiler can correctly enforce the handler's return type.
    
    closes #1228
    Cesar Canassa committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    dfe5aaf View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Merge pull request #1244 from canassa/fix-handler-return-type

    🏷️ ensures that handler return is properly typed
    willfarrell authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    a823417 View commit details
    Browse the repository at this point in the history
  2. chore: version bump

    willfarrell committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    f50d235 View commit details
    Browse the repository at this point in the history
Loading