Commit Graph

14 Commits

Author SHA1 Message Date
4c96f58cb0 feat: add user profile fetch in middleware 2025-12-18 08:48:22 -05:00
4c2d0a9177 fix: revert back to using typed documents for GraphQL 2025-12-18 08:43:49 -05:00
45bf96e764 refactor: Remove Anify and Consumet integrations, their dependencies, and the ipCheck script. 2025-12-16 08:03:05 -05:00
1140ffa8b8 refactor!: migrate away from bun
- migrate package management to pnpm
- migrate test suite to vitest
- also remove Anify integration
2025-12-16 07:50:38 -05:00
9116a561c3 refactor: Consolidate caching logic in Anilist DO by using handleCachedRequest for all data fetching methods and allowing dynamic TTL calculation. 2025-12-12 06:46:33 -05:00
236a6ba165 fix: 'retry-after' headers not being read properly 2025-12-12 06:43:01 -05:00
c35e18218a feat: add type safety to AniList fetching methods 2025-12-12 06:43:01 -05:00
3508f3461b chore: rename getUser to getUserProfile 2025-12-12 06:42:58 -05:00
8ca710d30d fix(anilist): improve rate limit header parsing 2025-11-29 08:58:02 -05:00
25f5f80696 refactor: Replace generic AnilistDurableObject fetch endpoint with dedicated methods and update their usage. 2025-11-29 06:22:08 -05:00
b1e46ad6eb feat: Centralize Anilist GraphQL queries, generalize Durable Object for multiple operations with caching, and add new controllers for search, popular titles, user data, and episode tracking. 2025-11-29 05:03:57 -05:00
a25111acbf feat: Re-enable Anilist response caching and configure proxy URL via environment variable. 2025-11-28 17:00:18 +08:00
bd958fb1ab feat: migrate to cloudflare d1 and queues 2025-11-28 16:32:35 +08:00
959265484c feat: Add durable object for Anilist requests (#2)
This commit introduces a durable object to handle Anilist GraphQL requests, with the goal of preventing request duplication.

The durable object is designed to cache responses from the Anilist API, with a TTL based on the `nextAiringEpisode` field in the response.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-11-14 13:07:36 +08:00