Skip to content

Releases: StimulCross/donation-alerts

3.0.1

21 Oct 12:31
Compare
Choose a tag to compare

Fixes

  • fix dependency issues that prevent it from running on Node.JS v16 (55413f0)

3.0.0

21 Oct 12:26
Compare
Choose a tag to compare

Breaking changes

General

  • require Node.JS version 16 or higher (1f81b29)

auth

  • remove addUser and removeUser from AuthProvider interface (e298da3)
  • make clientId read-only in AuthProvider interface (61af3d8)
  • rename RefreshConfig interface to RefreshingAuthProviderConfig (4825d43)
  • make refreshToken and expiresIn nullable (f8312e0)
  • remove the second param with initial users array from StaticAuthProvider and RefreshingAuthProvider constructors (427798c)
  • rename helper function getAccessToken to exchangeCode (991e8b8)
  • use EventEmitter to listen to refresh token events instead of onRefresh callback in the auth provider config (c50c848)
  • rename scope to scopes in AcessToken interface (8258274)
  • make AccessToken properties read-only (2d50560)
  • narrow AccessToken param in StaticAuthprovider to include only accessToken and scopes (8377f41)
  • create AccessTokenWithUserId interface and make getAccessToken and refreshAccessToken return it (9385550)

events

  • get rid of throwing an error in removeUser method if a user is not registered (a7ccf0a)

Features

auth

  • create InvalidTokenError (4193766)
  • add hasUser method to StaticAuthProvider and RefreshingAuthProvider (85091be)
  • add addUserForToken and addUserForCode to RefreshingAuthProvider (c7349dd)
  • add scopes check for addUser method in StaticAuthProvider and RefreshingAuthProvider (23d7e56)
  • add simple non-falsy token validation in StaticAuthProvider and RefreshingAuthProvider (de93353)

events

  • add hasUser method to EventsClient (2a8f517)
  • add onConnect and onDisconnect listeners to EventsClient (17b4de5)

All other changes relate to the documentation or small refactors,

2.0.1

17 May 06:13
Compare
Choose a tag to compare

Fixes

  • (deps): fixed peer dependency versions; updated dependencies (208b35e)
  • (docs): reconfigure TypeDoc (472dd52)

2.0.0

27 Feb 18:41
Compare
Choose a tag to compare

Breaking changes

  • [api]: sent custom alert using the custom alerts API will be shown by default (shouldShow: true) (84a5752)
  • [events]: event listeners of UserEventsClient and EventsClient were renamed with on prefix: listenToDonationEvents -> onDonation, listenToGoalUpdateEvents -> onGoalUpdate, listenToPollUpdateEvents -> onPollUpdate (b671c33)
  • [api]: @donation-alerts/auth package was moved to peer dependencies (fbdf96a)
  • [events]: @donation-alerts/api package was moved to peer dependencies (7cf7610)

All other changes are related to updating dependencies and project configuration.

1.0.2

10 Sep 14:31
Compare
Choose a tag to compare

Fixes

  • (dev_deps): downgrade eslint to 8.20; update eslint configs; drop eslint-prettier plugin (272f412)

1.0.1

08 Sep 12:52
Compare
Choose a tag to compare

Fixes

  • (api): fix shouldShow option in custom alerts API to properly trigger an alert (6619ad6)
  • (docs): fix typos, small improvements (a86655a)

1.0.0

24 Aug 12:29
Compare
Choose a tag to compare
v1.0.0

v1.0.0