sjdonado / idonthavespotify

Effortlessly convert Spotify links to your preferred streaming service
https://idonthavespotify.donado.co
34 stars 2 forks source link

Refactor/adapters structure #12

Closed sjdonado closed 5 months ago

sjdonado commented 5 months ago

Highlights:

  1. Added the post method to HTTPClient with a return type.
  2. Adapters now build URLs using the URL and URLSearchParams web APIs.
  3. Added a check for missing DEEZER_SEARCH_TYPES to avoid unnecessary requests.
  4. Reorganized the folder structure for integration tests: api.test.ts is now divided into adapters and search folders.
  5. Restructured the fixtures folder for tests: mocks are now grouped by adapter instead of Spotify content type.
  6. getQueryFromMetadata is now called only once.
  7. Tidal adapter for the REST API was 90% done https://github.com/sjdonado/idonthavespotify/commit/ad86796f85a18f6d1a99867c9f8e37ed724e0426, but it was rolled back due to https://github.com/sjdonado/idonthavespotify/issues/10#issuecomment-1925701976