Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.08 KB

To Do.md

File metadata and controls

22 lines (16 loc) · 1.08 KB

Add implicit caching to getSite method.

  • Check if cached resonse present, compare expiry time, and either serve from cache or fetch, cache, and return
  • Add cacheTime setting (class level, probably) and reasonable default value
  • Add revalidate option to bypass cache and store updated response
  • Add nocache option to bypass cache and not store updated response
  • Move cache key generation to internal method

Remove Lemmy JS Client as Dependency

  • Rewrite methods in client.ts to use the call wrapper and call endpoints directly instead of wrapping Lemmy HTTP client
  • Pull in Lemmy types from Lemmy JS Client and create an export file
  • Update client.ts to import Lemmy types from internal copy
  • Update package index to export Lemmy types from internal copy instead of from LJS client
  • Remove LJS client and Lemmy HTTP from client and package dependencies
  • Remove cross-fetch entirely?
  • Reimplement uploadImage method in client.ts
  • Reimplement setHeaders method in client.ts

Create structure to organize native client types