- removed deprecated
rxjs
pipes usagess - new
authGuard
can activate fn, that represents routing guard that is used for authorization of user - new
HasPermissionPipe
pipe, that tests whether user has permission- is
standalone
- is
- updated
AuthorizeDirective
directive- is now
standalone
- is now
- updated
LetAuthorizedDirective
directive- is now
standalone
- is now
- updated
AuthGuard
can activate type- changed to can activate fn and is deprecated in favor of
authGuard
- changed to can activate fn and is deprecated in favor of
- minimal supported version of
node.js
is18
- minimal supported version of
@angular
is17.3.0
- minimal supported version of
@jscrpt/common
is6.0.0
- minimal supported version of
@anglr/common
is19.0.0
- minimal supported version of
tslib
is2.6.2
- updated all
any
tounknown
generic type defaults - removed
AuthorizationModule
module, both directives declared in it are nowstandalone
- dropped support of
Node.js
version12
- minimal supported version of
rxjs
is now7.5.0
- minimal supported version of
@jscrpt/common
is now3.0.0
- minimal supported version of
tslib
is now2.4.0
AuthorizeDirective
now check permissions also when one of inputs have changed- fixed
AuthGuard
, now correctly blocks changing of route from login page using links or navigations using router
- new
AuthorizeOptions
interface, options passed toAuthorize
decorator- property
permission
name of permission or array of permissions that is requested for displaying component - property
andCondition
indication that AND condition should be used instead of OR condition if multiple permissions are provided - property
conditionString
indication that provided string is set of loggical operations among permission names, if this is true andCondition is ignored - property
addCondition
callback for additional condition that is added to evaluation of permission
- property
Authorize
decorator- now accepts also array of permission names and
AuthorizeOptions
- allows to set authorize for specific route using second parameter, overriding common authorize if specified
- updated
AuthGuard
to be able to work with this new type ofAuthorize
decorator
- now accepts also array of permission names and
- new
ComponentRouteAuthorized
decorator, which defines route for component on which is this decorator applied, automatically addsAuthGuard
AuthGuard
has new parameters in constructor (Injector
,Router
)AuthenticationServiceOptions
classisAuthPage
method has new parameter path which allows also checking specified path whether is auth page
AuthenticationService
classisAuthPage
method has new parameter path which allows also checking specified path whether is auth page
- fixed typings, not using rolled up typings for now
AuthenticationServiceOptions
generic type has defaultany
now
- minimal supported version of Angular is
13.1.0
- minimal supported version of
@jscrpt/common
is2.2.0
- minimal supported version of
@anglr/common
is10.0.0
- compiled as Angular IVY only with new APF
- removed support of es5 target and using latest package.json features
- added strict null checks
- dropped support of
Node.js <= 12.20
- changed signature of constructor of
AuthInterceptor
AccessToken
now has constructor with initializatorsAuthenticationServiceOptions
interface- now changed to class instead of interface
login
,logout
methods now returnsObservable<void>
AuthenticationService
classuserIdentity
fixed typings, now is correctly nullable
AUTHENTICATION_SERVICE_OPTIONS
removed, now should be usedAuthenticationServiceOptions
directlyUserIdentity
classadditionalInfo
fixed typings, now is correctly nullable
- fixed compilation errors because of wrong deps versions
AuthenticationService
login
method now returnsUserIdentity
instead of any- fixed
AuthenticationService
login
,logout
methods, now complete observables (could not be used withtoPromise
before)
- added new
AuthInterceptorOptions
as options forAuthInterceptor
- new option
treatUnauthorizedAsForbidden
, which allows treating 401 as 403 http code
- new option
- for
AuthenticationService
- added new property
userIdentity
, storing last value ofUserIdentity
- added new method
isAuthorizedSync
, used for synchronous checking whether user has permission
- added new property
- for
AuthorizeDirective
- added new
addCondition
which adds additional condition that is added to evaluation of permission
- added new
- added new
evaluatePermissions
function allowing use same (as used anywhere in package) permissions evaluation logic anywhere - added new
isAuthorized
function to get indication whether user is authorized - added new
LetAuthorizedDirective
allowing easy way to getting evaluated permission AuthenticationService
generic type has defaultany
nowUserIdentity
generic type has defaultany
now
- minimal supported version of Angular is
10.0.0
- minimal supported version of
@jscrpt/common
is1.2.0
- minimal supported version of
@anglr/common
is9.0.0
- removed
AuthInterceptorConfig
, now usingAuthenticationService
instead AuthorizeDirective
now initialy working synchronouslyAuthInterceptor
has new constructor parameters- default behavior of
AuthInterceptor
is not to treat 401 as 403 http code as was before
- default behavior of
- updated to latest stable Angular 9
- added generating of API doc
- Angular IVY ready (APF compliant package)
- added support for ES2015 compilation
- Angular 8
- added new interceptor
suppressAuthInterceptor
- updated
authInterceptor
, now supports blocking multiple parallel requests
- updated regular expression for
conditionString
forAuthorizeDirective
, now should support!
statements
- stabilized for angular v6
@anglr/authentication
is now marked as sideEffects free- removed
forRoot
methods fromAuthorizationModule
- guard
AuthGuard
is now tree-shakeable - provider
AUTHENTICATION_SERVICE_OPTIONS
must be provided explictly - provider
AuthenticationService
is now tree-shakeable
- aktualizácia balíčkov
Angular
na6
- aktualizácia
Webpack
na verziu4
- aktualizácia
rxjs
na verziu6
- automatické generovanie dokumentácie
AuthorizeDirective
now supports condition expressions ifconditionString
is set to true
AuthInterceptor
now handles alsoisAuthenticated
rejection
- moved
AuthInterceptor
from@anglr/http-extensions
AuthInterceptor
now usingHttpRequestIgnoredInterceptorId
- returned typescript version back to 2.4.2 and removed distJit
- added compiled outputs for Angular JIT
- updated angular to 5.0.0 (final)
- changed dependencies of project to peerDependencies
- more strict compilation
- updated usage of rxjs, now using operators
- updated angular to >=5.0.0-rc.7