blakejoy / tmdb-ts

Typescript client wrapper for TheMovieDB (TMDB) v3
MIT License
43 stars 13 forks source link

Option to override `fetch` #58

Open koenoe opened 2 months ago

koenoe commented 2 months ago

Is your feature request related to a problem? Please describe. When using NextJS we use a patched fetch that enables automatic caching in NextJS. When using a library like cross-fetch, you opt-out of this behaviour.

Describe the solution you'd like Option to pass a fetch method to the TMDB constructor. Basically what graphql-request also offers:.

Describe alternatives you've considered Remove cross-fetch dependency as it shouldn't be needed anymore in Node.

blakejoy commented 2 months ago

Good call. What I'll do is bump the minor version with the removal of cross fetch and then make the min node version >18.0.0