Skip to content

Conversation

@cbackas
Copy link
Owner

@cbackas cbackas commented May 10, 2025

No description provided.

@cbackas cbackas requested a review from Copilot May 10, 2025 03:34

This comment was marked as outdated.

@cbackas cbackas requested a review from Copilot May 10, 2025 03:42

This comment was marked as outdated.

@cbackas cbackas requested a review from Copilot May 10, 2025 03:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces axios with the native fetch API for communicating with the TVDB API. Key changes include:

  • Removal of axios imports and related error handling.
  • Introduction of a new getAuthToken function that retrieves and caches the authentication token.
  • Adjustments to API calls in getSeries, searchSeriesByImdbId, and searchSeriesByName to use fetch.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/lib/tvdb.ts Replaced axios calls with native fetch and updated error handling.
import_map.json Removed the axios dependency mapping.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cbackas cbackas changed the title New: Use native fetch instead of axios Update: Use native fetch instead of axios May 10, 2025
@cbackas cbackas merged commit 5103b6b into main May 10, 2025
11 of 12 checks passed
@cbackas cbackas deleted the remove-axios branch May 10, 2025 03:54
@cbackas
Copy link
Owner Author

cbackas commented May 10, 2025

🎉 This PR is included in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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