0.10.0 (2025-02-06)
- Patreon (member) resource updates (#120)
- 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)
- 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)
0.9.0 (2024-11-02)
- 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)
- 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)
0.8.0 (2024-10-04)
- PatreonOauthClient: remove static fetch and paginate methods
- 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)
- examples: update wrangler compat dates (86988a4)
- update code example (#81) (5cba8ab)
- webhooks: set pledge resource type to member (#91) (dd32c10)
0.7.0 (2024-09-06)
- 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)
- 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)
0.6.1 (2024-06-27)
- 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)
0.6.0 (2024-05-10)
- removes useDefaultIncludes from query options
- remove all deprecations (#22)
0.5.0 (2024-05-10)
- types: remove
Fetch
andResponse
- BasePatreonClient:
listOauth2
returns the amount of pages - PatreonOauthClient: deprecate
fetch
andretryOnFailed
on client and options. DeprecateuserAgent
option
- add rest client (#18) (af4fdb1)
- BasePatreonClient:
listOauth2
returns the amount of pages (af4fdb1) - oauth: add
createOauthUri
for creatingoauthUri
(af4fdb1) - oauth: add
validateToken
option (af4fdb1) - oauth: improve creator token flow (af4fdb1)
- PatreonOauthClient: deprecate
fetch
andretryOnFailed
on client and options. DeprecateuserAgent
option (af4fdb1) - types: remove
Fetch
andResponse
(af4fdb1)
- PatreonUserClientInstance: correct discord id instead of object (af4fdb1)
- types: add
null
to User.social_connections values (af4fdb1)
0.4.0 (2024-04-17)
- oauth: move options to
PatreonClientOptions.oauth
- oauth: deprecate
Oauth2FetchOptions
.refreshOnFailed
forretryOnFailed
- BasePatreonClient: remove deprecated
fetchToken
,putToken
andfetchApplicationToken
- PatreonCreatorClient: correctly type return type of
fetchApplicationToken
- PatreonUserClient: correctly type return of
fetchToken
- remove oauth client dependency (#13)
- add pagination options to query builder (d4e79bc)
- add raw search params to query builder output (d4e79bc)
- BasePatreonClient: remove deprecated
fetchToken
,putToken
andfetchApplicationToken
(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
forretryOnFailed
(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)
- PatreonCreatorClient: correctly type return type of
fetchApplicationToken
(d4e79bc) - PatreonUserClient: correctly type return of
fetchToken
(d4e79bc)
0.3.0 (2024-04-11)
- PatreonUserClientInstance: set token to readonly
- types: narrow type of
User.social_connections
toRecord<string, string>
- update oauth clients and minimal node version (#11)
- 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
toRecord<string, string>
(60ea00b) - update oauth clients and minimal node version (#11) (60ea00b)
PatreonClient.fetchApplicationToken
is now deprecated and insteadPatreonCreatorClient.fetchApplicationToken
should be used.
PatreonClient
:name
can be nullPatreonClient
: addrefreshOnFailed
option to retry an unauthorized request oncePatreonStore
: add Fetch and KV stores- clients: add
PatreonUserClient
andPatreonCreatorClient
- Initial commit