insyri / tpy

🔑 A strongly typed Pylon API client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meta-issue of release TODO's

insyri opened this issue · comments

Main

  • #21
    Reconnecting WebSockets in TpyWs work in Deno, but not in Node.js. Whether this issue is related to runtime differences or subtle changes in core implementation, there is a better way to implement the reconnecting WebSocket. (Idea: Asynchronous generator function to await and loop over closing events.)
  • #20
    Some endpoints have different implications to each kind of HTTP response code, for example, not all 500s are internal server errors, they could be authentication mismatching in specific context. (Idea: add parameter that specifies an array of cases and functions.)
    Array<{
      // Determines if case is applicable; number for HTTP status code, or
      // a function that takes the response object and returns the validity.
      case: number | (r: Response) => boolean,
      // Function to run if `case` matches the response's HTTP status code
      // or is true.
      fn: () => void,
    }>

Subsequent

  • #18
    • Use cause inside TpyError instead of determination.
    • Add documentation to resolve between message and description.
    • (?) Remove messageContext from public use.
  • #22
  • #16
    • Guild.GET.Guild resolves type proper type instead of any.
  • #19

v1.0.0 RC!