Skip to content

Releases: casbin/Casbin.NET

v2.2.0

17 Feb 11:57
38bfa86
Compare
Choose a tag to compare

v2.1.1

28 Sep 09:09
4ccef44
Compare
Choose a tag to compare

2.1.1 (2023-09-28)

Bug Fixes

v2.1.0

16 Sep 12:58
Compare
Choose a tag to compare

2.1.0 (2023-09-16)

Features

  • Use ini extensions to parse the model file (#332) (0e56748)

v2.0.3

27 Aug 11:24
Compare
Choose a tag to compare

2.0.3 (2023-08-27)

Bug Fixes

  • Error params of IWatcher (349d574)

v2.0.2

24 Aug 07:13
Compare
Choose a tag to compare

2.0.2 (2023-08-24)

Bug Fixes

  • Accidental cache read via key construction (#330) (e36209e)

v2.0.1

04 Aug 08:28
766bf05
Compare
Choose a tag to compare

2.0.1 (2023-08-04)

Bug Fixes

  • copy all files in unit tests examples folder by default (#325) (ec7b463)
  • Ensure tab characters in policy files are parsed as white-space (#324) (766bf05)

v2.0.0

25 Jul 20:11
Compare
Choose a tag to compare

2.0.0 (2023-07-25)

Migrate Guide

https://github.com/casbin/Casbin.NET/wiki/Migrate-from-Casbin.NET-v1.x-to-v2.0

Compatibility

Plugins of the same major version are compatible with each other,
The v2.0 of Casbin.NET.Adapter.EFCore and Casbin.AspNetCore will release soon.

Bug Fixes

  • Change Casbin.Exstention to Casbin (26d6099)
  • Change load policy receiver to IReadOnlyAdapter (951ceb8)
  • Change lowest TFM form net45 to net452 (51574eb)
  • Change to persist policy (36cff41)
  • Concurrent error caused by GFunctionCache. (25e0b68)
  • Enable the comment in model config files. (016a57c)
  • err filter logic (b498d7a)
  • error has adapter value (820900f)
  • Error logging lowest version at .NET 6.0 (6cd7181)
  • Get policy error at test helper (8c8105d)
  • HasAdapter value error (67e927a)
  • Make assertion properties to read-only for public (48b9958)
  • Make expression cache thread safe (#261) (e65b782)
  • Make function map internal and remove unused func class (0e69ba8)
  • Make request values not readonly and fix dir typos (a9fb8c1)
  • Reduce the severity of request and policy count validation (ce6e971)
  • Support .NET 7 on azure pipeline (70474ee)
  • Warning at policy scanner (#307) (071af63)

Code Refactoring

  • Improve the extendibility structure (67c7ea5)
  • Integrate RBAC API and Management API to one Enforcer (6a250d5)
  • Make Utility class to internal (9f0255d)
  • Remove obsolete APIs (4049675)

Features

  • Compatible with IEffector of golang casbin and refactor internal enforce method (1c4ade3)
  • add automatic parallel test helper. (3e53c16)
  • Add document symbol and source link to nuget package (dbe2499)
  • Add generic request and policy type (42c4604)
  • Add GetPolicyTypes APIs of IReadOnlyPolicyStore (a6c464e)
  • Add globMatch as a global built-in matcher function (#232) (26bc240), closes #231
  • Add go like method (2884c22)
  • add keyGet function and correponding test. (723e0dd)
  • add keyGet2 and corresponding test. (#280) (d2d245f)
  • add keyGet3 and correponding test. (#294) (bec496a)
  • Add keymatch5 for ignoring params in url (c29c95f)
  • Add lazyLoadPolicy option on enforcer constructor (25b43dc)
  • Add list request values (#303) (f6bb3c1)
  • Add load and save policy to policy manager (a7edb11)
  • Add policy filter (8a77971)
  • Add priority sort with subject hierarchy. (d754c30)
  • Add SDK global json config (5c007fd)
  • Add stream adapter. (#299) (7537539)
  • Add string request and policy values (aa73b71)
  • Add TrySetValue API in request values (15b28ee)
  • Add UpdatePolicy and UpdatePolicies APIs (5226a5b)
  • Add WatcherEx support (bd9ff64)
  • Add WatcherMessage for watchers (eb28952)
  • Add WatcherMessage for watchers (cc1ce45)
  • Better support tokens with substring relation and use two more complex test cases (#319) (520bb17), closes #305
  • Cache the model parse result (401524c)
  • Change enforcer options action to options (d7a0a4f)
  • change lazyLoadPolicy to AutoLoadPolicy. (394ff02)
  • Enable package validation (e098a5b)
  • Expose some model extensions APIs (d68c806)
  • Implement priority explicit deny override model for v2 and add enforce session (114fff2)
  • Make expression handler stateless (1003f5b)
  • Move functions from Casbin.Util to Casbin.Functions (285003b)
  • Multiple request, policy, effect, matcher type support (7078dab)
  • Reading cache before create context (6f0284d)
  • refactor section assertion and policy store (#283) (d5115d2)
  • Remove unused effect chain (f1b85bf)
  • Return effect policies at RemoveFilteredPolicy (171ae6e)
  • Store policy text in the policy values instance (6482ca2)
  • Support .NET 7.0 target (6c286b6)
  • Support .NET 8.0 target (04b5605)
  • Support batch enforce and add corresponding test. ([#274](#274...
Read more

v1.14.0

10 Jun 22:29
f15f98b
Compare
Choose a tag to compare

1.14.0 (2023-06-10)

Features

  • Support full-fledged CSV parser in built-in file adapter (#317) (f15f98b)

v2.0.0-preview.5

06 Jan 07:16
071af63
Compare
Choose a tag to compare
v2.0.0-preview.5 Pre-release
Pre-release

2.0.0-preview.5 (2023-01-06)

Bug Fixes

  • Change load policy receiver to IReadOnlyAdapter (951ceb8)
  • Change to persist policy (36cff41)
  • Concurrent error caused by GFunctionCache. (25e0b68)
  • Enable the comment in model config files. (016a57c)
  • err filter logic (b498d7a)
  • Get policy error at test helper (8c8105d)
  • HasAdapter value error (67e927a)
  • Make expression cache thread safe (#261) (e65b782)
  • Make request values not readonly and fix dir typos (a9fb8c1)
  • Reduce the severity of request and policy count validation (ce6e971)
  • Warning at policy scanner (#307) (071af63)

Features

  • add automatic parallel test helper. (3e53c16)
  • Add GetPolicyTypes APIs of IReadOnlyPolicyStore (a6c464e)
  • add keyGet function and correponding test. (723e0dd)
  • add keyGet2 and corresponding test. (#280) (d2d245f)
  • add keyGet3 and correponding test. (#294) (bec496a)
  • Add list request values (#303) (f6bb3c1)
  • Add policy filter (8a77971)
  • Add priority sort with subject hierarchy. (d754c30)
  • Add SDK global json config (5c007fd)
  • Add stream adapter. (#299) (7537539)
  • Add string request and policy values (aa73b71)
  • Add TrySetValue API in request values (15b28ee)
  • Add UpdatePolicy and UpdatePolicies APIs (5226a5b)
  • Add WatcherEx support (bd9ff64)
  • Add WatcherMessage for watchers (eb28952)
  • Add WatcherMessage for watchers (cc1ce45)
  • Change enforcer options action to options (d7a0a4f)
  • change lazyLoadPolicy to AutoLoadPolicy. (394ff02)
  • Expose some model extensions APIs (d68c806)
  • refactor section assertion and policy store (#283) (d5115d2)
  • Remove unused effect chain (f1b85bf)
  • Store policy text in the policy values instance (6482ca2)
  • Support batch enforce and add corresponding test. (#274) (ac0d6de)
  • support in operator in model config. (cb477ed)
  • Use PolicyValues at models instead of IEnumerable (1a756d5)
  • Use values at enforcer extensions (9676ef3)

v1.13.0

24 Nov 10:22
Compare
Choose a tag to compare

1.13.0 (2022-11-24)

Features

  • Add enforcer options (e25d7fa)
  • Support .NET 6.0 and 7.0 targets (c013b45)