Releases: StimulCross/donation-alerts
Releases · StimulCross/donation-alerts
3.0.1
3.0.0
Breaking changes
General
- require Node.JS version 16 or higher (1f81b29)
auth
- remove
addUser
andremoveUser
fromAuthProvider
interface (e298da3) - make
clientId
read-only inAuthProvider
interface (61af3d8) - rename
RefreshConfig
interface toRefreshingAuthProviderConfig
(4825d43) - make
refreshToken
andexpiresIn
nullable (f8312e0) - remove the second param with initial users array from
StaticAuthProvider
andRefreshingAuthProvider
constructors (427798c) - rename helper function
getAccessToken
toexchangeCode
(991e8b8) - use
EventEmitter
to listen to refresh token events instead ofonRefresh
callback in the auth provider config (c50c848) - rename
scope
toscopes
inAcessToken
interface (8258274) - make
AccessToken
properties read-only (2d50560) - narrow
AccessToken
param inStaticAuthprovider
to include onlyaccessToken
andscopes
(8377f41) - create
AccessTokenWithUserId
interface and makegetAccessToken
andrefreshAccessToken
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 toStaticAuthProvider
andRefreshingAuthProvider
(85091be) - add
addUserForToken
andaddUserForCode
toRefreshingAuthProvider
(c7349dd) - add scopes check for
addUser
method inStaticAuthProvider
andRefreshingAuthProvider
(23d7e56) - add simple non-falsy token validation in
StaticAuthProvider
andRefreshingAuthProvider
(de93353)
events
- add
hasUser
method toEventsClient
(2a8f517) - add
onConnect
andonDisconnect
listeners toEventsClient
(17b4de5)
All other changes relate to the documentation or small refactors,
2.0.1
2.0.0
Breaking changes
- [api]: sent custom alert using the custom alerts API will be shown by default (
shouldShow: true
) (84a5752) - [events]: event listeners of
UserEventsClient
andEventsClient
were renamed withon
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
1.0.1
1.0.0
v1.0.0 v1.0.0