Skip to content

BetterStackRequest now extends NextRequest for better compatibility#33

Merged
PetrHeinz merged 2 commits intomainfrom
ph/fix-extends
Jan 10, 2026
Merged

BetterStackRequest now extends NextRequest for better compatibility#33
PetrHeinz merged 2 commits intomainfrom
ph/fix-extends

Conversation

@PetrHeinz
Copy link
Member

In #31, the type has been generalized. It would be better to keep extending the more specific NextRequest in case one would like to use the values e.g. in typed helper functions.

Also removing dead code, since request.geo was removed in Next.js 15, and this library doesn't support older versions anymore

@PetrHeinz PetrHeinz requested a review from curusarn January 9, 2026 16:38
Copy link
Contributor

@curusarn curusarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@PetrHeinz PetrHeinz merged commit a2c57e8 into main Jan 10, 2026
22 checks passed
@PetrHeinz PetrHeinz deleted the ph/fix-extends branch January 10, 2026 21:21
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