Releases: ressurectit/ng-notifications
Releases · ressurectit/ng-notifications
v11.0.0
Features
- all components, directives, pipes are now
standalone
BREAKING CHANGES
- minimal supported version of
NodeJs
is18
- minimal supported version of
@angular
is19.1.0
- minimal supported version of
@jscrpt/common
is7.0.0
- minimal supported version of
@anglr/animations
is10.0.0
- minimal supported version of
@anglr/common
is22.0.0
- minimal supported version of
tslib
is2.8.1
- removed
TrimTextPipe
pipe, now usingTrimTextPipe
from@anglr/common
v10.0.0
Features
- new
provideGlobalNotifications
function, that provides global notifications service - new
provideLocalNotifications
function, that provides local notifications service - updated
NotificationMessageComponent
component- now implements latest version of
Notifications
- now allows localizing message
- now implements latest version of
- updated
LocalNotificationsProviderDirective
directive- new properties
name
name of scope, if not specified non scoped will be used
- new constructor
Attribute
parameterwithProvider
that represents name of scope, its optional
- new properties
- updated
NamedNotificationsProviderFactory
interface- new
customNotificationsToken
optional parameter, that is type or token that should be provided for custom notifications - upgraded both its implementations
LOCAL_NOTIFICATIONS.named
,GLOBAL_NOTIFICATIONS.named
- new
BREAKING CHANGES
- minimal supported version of
@angular
is16.0.3
- minimal supported version of
@rxjs
is7.5.7
- minimal supported version of
@jscrpt/common
is4.0.0
- minimal supported version of
@anglr/common
is17.0.0
- minimal supported version of
tslib
is2.6.1
- dropped support of
NodeJs
lower than16.14
- strict null checks
- all generic defaults
any
changed tounknown
- updated
TrimTextPipe
pipe- second parameter
length
is no longer optional
- second parameter
- updated
GlobalNotificationsProvider
interfacenamed
property is no longer optional
- updated
LocalNotificationsProvider
interfacenamed
property is no longer optional
GLOBAL_NOTIFICATIONS
is no longer part of public API, useprovideGlobalNotifications
insteadLOCAL_NOTIFICATIONS
is no longer part of public API, useprovideLocalNotifications
instead- updated
NotificationsGlobalModule
module- removed
forRoot
method, useprovideGlobalNotifications
instead
- removed
- updated
NotificationsOptions
interface- property
cssClasses
is no longer optional - property
getNotificationMessageComponent
is no longer optional
- property
- updated
NotificationMessage
interface- property
options
now hasPartial<TOptions>
setter
- property
- updated
NotificationsComponent
component- renamed
_initSubscriptions
property toinitSubscriptions
- renamed
_options
property toɵoptions
- renamed
_service
property toservice
- renamed
_changeDetector
property tochangeDetector
- renamed
_platformId
property toplatformId
- property
options
setter is nowPartial<NotificationsOptions>
- renamed
- updated
NotificationMessageOptions
interface- property
clickToClose
is no longer optional - property
maxLength
is no longer optional - property
cssClasses
is no longer optional
- property
- updated
NotificationMessageComponent
component- renamed
_item
property toɵitem
- renamed
_options
property toɵoptions
- renamed
_changeDetector
property tochangeDetector
- renamed
_init
property toinit
- property
classObj
is now protected
- renamed
- updated
MessageRendererDirective
directive- renamed
_closedEmit
method toclosedEmit
- renamed
_viewContainerRef
property toviewContainerRef
- renamed
_componentRef
property tocomponentRef
- renamed
_closedSubscription
property toclosedSubscription
- property
closedSubscription
is now nullable - input
messageRenderer
is now required - input
notificationsOptions
is now required
- renamed
- updated
MessageOptionsNotificationsDirective
directive- input
messageOptions
is now required
- input
v9.0.0
BREAKING CHANGES
- minimal supported version of Angular is
14.0.0
- minimal supported version of
@jscrpt/common
is2.2.0
- minimal supported version of
@anglr/animations
is9.1.0
- minimal supported version of
@anglr/common
is11.2.0
- minimal supported version of
rxjs
is6.6.7
- compiled as Angular IVY only with new APF
- removed support of es5 target and using latest package.json features
- dropped support of
Node.js <= 12.20
v8.0.0
Features
- completely rework notifications system, now it is using
@anglr/common
Notifications
- added new
NamedNotificationsProviderFactory
as factory for creating namedGlobalNotificationsProvider
orLocalNotificationsProvider
- added new
GlobalNotificationsProvider
as global notifications provider that allows creating global notifications - added new
LocalNotificationsProvider
as local notifications provider that allows creating local notifications - added new
GLOBAL_NOTIFICATIONS
as instance ofGlobalNotificationsProvider
- added new
LOCAL_NOTIFICATIONS
as instance ofLocalNotificationsProvider
- added new
LOCAL_NOTIFICATIONS_SCOPE_NAME
as local notifications scope name - added new
LOCAL_NOTIFICATIONS_SCOPE
as injection token for injecting local notifications scope name NotificationsComponent
reworked to use new@anglr/common
Notifications
APILocalNotificationsProviderDirective
reworked to use new@anglr/common
Notifications
API- added new
MessageOptionsNotificationsDirective
as directive used for providing message options directly to notifications - added new
TrimTextPipe
as pipe that trims provided text by provided length - added new
NotificationsCoreModule
as module for core notifications components, directives, pipes - added new
NotificationsGlobalModule
as module for global notificationsforRoot
that allows injectingGlobalNotificationsService
as named or root scope
- added new
NotificationsLocalModule
as module for local notifications
BREAKING CHANGES
- minimal supported version of Angular is
12.0.0
- minimal supported version of
@jscrpt/common
is1.2.0
- new dependency
@anglr/common
minimal supported version is9.0.0
- removed
Notification
, now replaced with@anglr/common
Notification
- removed
NotificationType
, now replaced with@anglr/common
NotificationSeverity
- removed
NotificationsModule
, now replaced with 2 modulesNotificationsGlobalModule
orNotificationsLocalModule
- all generic types are made optional
- removed
NotificationsOptions.timeout
, this is now part of@anglr/common
Notifications
system - moved
NotificationsOptions.maxLength
intoNotificationMessageOptions.maxLength
- removed
NotificationsService
now using@anglr/common
Notifications
GlobalNotificationsService
not self-provided as'root'
GlobalNotificationsService
andLocalNotificationsService
used only as injection tokens for gettingNotifications
instance