Skip to content

Releases: mselerin/ngx-security

ngx-security@3.3.0

29 Mar 08:34
Compare
Choose a tag to compare

Features

  • add NgxSecurityGuardOptions.resource to allow guard permissions with resources (ac5432e)
  • add NgxSecurityGuardOptions.resourceResolver (3dae346)

ngx-security@3.2.0

16 Mar 14:23
Compare
Choose a tag to compare

### Features

* expose `NgxSecurityGuard.canAccess` + add `NgxSecurityGuard.handle` ([92d506d](92d506d))

ngx-security@3.1.0

16 Mar 14:22
Compare
Choose a tag to compare

Features

Contributors

ngx-security@3.0.0

08 Nov 09:02
Compare
Choose a tag to compare

3.0.0 (2021-11-08)

🐛 Bug Fixes

  • secuHasPermissions is still called twice when used with a resource (629c92b)
  • force changes detection when the authorization change (5c62ace)
  • when secuHasPermissions is used with a resource, the checker is called twice (61077a4)

🔧 Code Refactoring

  • NgxSecurityState with only checker function (d5e1332)

🚀 Features

  • removed roles, groups and permissions from NgxSecurityGuardOptions and replace them with hasAllXxx, hasAnyXxx and hasNotXxx (ef32f07)

🔥 BREAKING CHANGES

  • type changes inside NgxSecurityGuardOptions
  • removed authenticated, roles, groups and permissions array from NgxSecurityState

ngx-security@2.4.5

20 Aug 10:12
Compare
Choose a tag to compare

🐛 Bug Fixes

  • when secuHasPermissions is used with a resource, the checker is called twice (775bbe6)

ngx-security@2.4.4

06 Feb 22:08
Compare
Choose a tag to compare

🐛 Bug Fixes

  • use take(1) inside handleStateChange instead of unsubscribe() (704679f)

ngx-security@2.4.3

04 Jan 21:37
Compare
Choose a tag to compare

Bug Fixes 🐛

  • before filtering observables with every, use take to prevent the resulting observable from infinite waiting (1fc6913)
  • use isObservable from rxjs to detect if the CheckerResult is an observable or not (7405fa3)

ngx-security@2.4.2

17 Sep 16:03
Compare
Choose a tag to compare

Bug Fixes 🐛

  • groups, roles and permissions should be case insensitive (#3) (02c2d5a)

ngx-security@2.4.1

04 Mar 12:27
Compare
Choose a tag to compare

2.4.1 (2020-03-04)

Bug Fixes 🐛

  • revert to Angular 8 to resolve the TS1086 error with older project (#1) (4b76135)

ngx-security@2.4.0

28 Feb 15:35
Compare
Choose a tag to compare

Features ⚡️

  • NgxSecurityState.permissionsChecker and NgxSecurityService.hasPermission accept a 2nd parameter of type any (eb878fe)