Skip to content

Releases: ghostrider-05/patreon-api.ts

patreon-api.ts: v0.10.0

06 Feb 16:11
87adde6
Compare
Choose a tag to compare

0.10.0 (2025-02-06)

⚠ BREAKING CHANGES

  • Patreon (member) resource updates (#120)

Features

  • add better query builder (#122) (b64a95e)
  • add client option for including all in query (#133) (1b19772)
  • add DELETE /webhooks/{id} endpoint (#102) (10fc710)
  • mark normalize and simplify APIs as stable (#134) (dea5a6e)
  • Patreon (member) resource updates (#120) (71752d9)
  • rest: respect Retry-After header on ratelimit (#119) (0d33950)

Bug Fixes

  • add related links to relationships (#121) (1c40269)
  • docs: update broken code examples (1b19772)
  • types: return correct requests for normalize and simplify methods (1b19772)
  • update normalize and simplify methods to not crash (1b19772)

patreon-api.ts: v0.9.0

26 Nov 23:32
473ad33
Compare
Choose a tag to compare

0.9.0 (2024-11-02)

Features

  • add OpenAPI schema (#100) (bb335e7)
  • rest: add Cloudflare ray id and cache status to headers (5a5cb50)
  • rest: add event emitter option (5a5cb50)
  • rest: add ratelimit sleep option (5a5cb50)
  • rest: add request limit option (#99) (5a5cb50)
  • rest: deprecate certain types (#107) (ddf065f)
  • webhooks: add support for http server verifying (#101) (ccc2267)

Bug Fixes

  • build: add missing type-checking rules (ac17495)
  • examples: update embed converter (34e62f0)
  • rest: retry ratelimited requests (5a5cb50)
  • rest: throw all errors from response (aaf9847)
  • rest: update typo in unknown error code (5a5cb50)

patreon-api.ts: v0.8.0

04 Oct 21:56
7fa9b14
Compare
Choose a tag to compare

0.8.0 (2024-10-04)

⚠ BREAKING CHANGES

  • PatreonOauthClient: remove static fetch and paginate methods

Features

  • allow overriding User.social_connections through module augmentation (dd32c10)
  • apps: add example discord bot (#90) (86988a4)
  • deprecate webhook to Discord embed utilities (86988a4)
  • PatreonClient: add method for custom response parser (#97) (17e87fc)
  • PatreonOauthClient: remove static fetch and paginate methods (86988a4)
  • types: add member and post webhook payload types (dd32c10)
  • WebhookClient: add payloads property for webhook payload utilities (86988a4)

Bug Fixes

  • examples: update wrangler compat dates (86988a4)
  • update code example (#81) (5cba8ab)
  • webhooks: set pledge resource type to member (#91) (dd32c10)

patreon-api.ts: v0.7.0

06 Sep 15:29
0f9e9f1
Compare
Choose a tag to compare

0.7.0 (2024-09-06)

Features

  • add documentation (closes #40) (#46) (521b29e)
  • add experimental support for normalized responses (#53) (242587d)
  • export keys from schemas and relationships (521b29e)
  • PatreonOauthClient: add paginate and fetch to client from static methods (bbf4d2f)
  • rest: add timeout option to client (242587d)

Bug Fixes

  • correct included query for address, campaign and tier (521b29e)
  • PatreonClient: do not overwrite options.rest.getAccessToken if specified (bbf4d2f)
  • PatreonClient: round StoredToken.expires_in to seconds when fetched from store (bbf4d2f)
  • PatreonOauthClient: correctly use cursor for paginating (242587d)
  • PatreonOauthClient: remove undefined from return types (242587d)

patreon-api.ts: v0.6.1

27 Jun 15:05
64f83bb
Compare
Choose a tag to compare

0.6.1 (2024-06-27)

Bug Fixes

  • build: add node: prefix to node packages (d85fb54)
  • build: move to tsup and fix esm exports (d85fb54)
  • ci: fix test command (39b7251)
  • ci: update release action (#36) (062c4c0)
  • ci: update tests labeler (39b7251)
  • examples: use workspace package (d85fb54)
  • examples: working html to markdown in webhook worker (#38) (d85fb54)
  • lint: resolve eslint errors (#35) (39b7251)

patreon-api.ts: v0.6.0

10 May 12:49
5fb6341
Compare
Choose a tag to compare

0.6.0 (2024-05-10)

⚠ BREAKING CHANGES

  • removes useDefaultIncludes from query options
  • remove all deprecations (#22)

Features

  • remove all deprecations (#22) (41dff99)
  • removes useDefaultIncludes from query options (41dff99)

Bug Fixes

  • oauth: send body on requests (41dff99)
  • webhooks: update editWebhook to work correctly (41dff99)

patreon-api.ts: v0.5.0

10 May 00:41
0e0e66c
Compare
Choose a tag to compare

0.5.0 (2024-05-10)

⚠ BREAKING CHANGES

  • types: remove Fetch and Response
  • BasePatreonClient: listOauth2 returns the amount of pages
  • PatreonOauthClient: deprecate fetch and retryOnFailed on client and options. Deprecate userAgent option

Features

  • add rest client (#18) (af4fdb1)
  • BasePatreonClient: listOauth2 returns the amount of pages (af4fdb1)
  • oauth: add createOauthUri for creating oauthUri (af4fdb1)
  • oauth: add validateToken option (af4fdb1)
  • oauth: improve creator token flow (af4fdb1)
  • PatreonOauthClient: deprecate fetch and retryOnFailed on client and options. Deprecate userAgent option (af4fdb1)
  • types: remove Fetch and Response (af4fdb1)

Bug Fixes

  • PatreonUserClientInstance: correct discord id instead of object (af4fdb1)
  • types: add null to User.social_connections values (af4fdb1)

patreon-api.ts: v0.4.0

09 May 16:14
92340dd
Compare
Choose a tag to compare

0.4.0 (2024-04-17)

⚠ BREAKING CHANGES

  • oauth: move options to PatreonClientOptions.oauth
  • oauth: deprecate Oauth2FetchOptions.refreshOnFailed for retryOnFailed
  • BasePatreonClient: remove deprecated fetchToken, putToken and fetchApplicationToken
  • PatreonCreatorClient: correctly type return type of fetchApplicationToken
  • PatreonUserClient: correctly type return of fetchToken
  • remove oauth client dependency (#13)

Features

  • add pagination options to query builder (d4e79bc)
  • add raw search params to query builder output (d4e79bc)
  • BasePatreonClient: remove deprecated fetchToken, putToken and fetchApplicationToken (d4e79bc)
  • client: add options to overwrite oauth uris (d4e79bc)
  • client: add userAgent option (d4e79bc)
  • export package version (16972b8)
  • oauth: add getter for redirect uri (d4e79bc)
  • oauth: add listing methods to clients (d4e79bc)
  • oauth: add patreon API scopes (d4e79bc)
  • oauth: deprecate Oauth2FetchOptions.refreshOnFailed for retryOnFailed (d4e79bc)
  • oauth: expose oauth client (d4e79bc)
  • oauth: move options to PatreonClientOptions.oauth (d4e79bc)
  • remove oauth client dependency (#13) (d4e79bc)
  • webhooks: add server functions for verifying and parsing requests (16972b8)
  • webhooks: add support for API webhooks (#17) (16972b8)

Bug Fixes

  • PatreonCreatorClient: correctly type return type of fetchApplicationToken (d4e79bc)
  • PatreonUserClient: correctly type return of fetchToken (d4e79bc)

patreon-api.ts: v0.3.0

11 Apr 16:32
23df164
Compare
Choose a tag to compare

0.3.0 (2024-04-11)

⚠ BREAKING CHANGES

  • PatreonUserClientInstance: set token to readonly
  • types: narrow type of User.social_connections to Record<string, string>
  • update oauth clients and minimal node version (#11)

Features

  • oauth: add methods to fetch resources (60ea00b)
  • PatreonUserClientInstance: add fetchDiscordId method (60ea00b)
  • PatreonUserClientInstance: set token to readonly (60ea00b)
  • types: narrow type of User.social_connections to Record&lt;string, string&gt; (60ea00b)
  • update oauth clients and minimal node version (#11) (60ea00b)

Bug Fixes

  • oauth: use https protocol for URL (60ea00b)
  • update repository url (#3) (3ae07bc)

v0.2.0

13 Dec 17:28
d0921cd
Compare
Choose a tag to compare
  • PatreonClient.fetchApplicationToken is now deprecated and instead PatreonCreatorClient.fetchApplicationToken should be used.

Features

  • PatreonClient: name can be null
  • PatreonClient: add refreshOnFailed option to retry an unauthorized request once
  • PatreonStore: add Fetch and KV stores
  • clients: add PatreonUserClient and PatreonCreatorClient