tmdb-ts icon indicating copy to clipboard operation
tmdb-ts copied to clipboard

Option to override `fetch`

Open koenoe opened this issue 1 year ago • 1 comments

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.

koenoe avatar Jul 28 '24 15:07 koenoe

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

blakejoy avatar Aug 04 '24 02:08 blakejoy