casbin / casbin.js

An authorization library that supports access control models like ACL, RBAC, ABAC in Frontend Javascript
https://casbin.org/docs/en/frontend
Apache License 2.0
160 stars 37 forks source link

feat: replace `node-casbin` with `casbin-core` to support run in brower better #271

Closed imp2002 closed 1 year ago

imp2002 commented 1 year ago

Fix: #270 Fix: #268

Because node-casbin is not for brower, there are some functions(fs, path .etc) dependent Node cause many problem such as #270, #268, when in webpack5 and vite no Node polyfill, replace node-casbin with casbin-core to fix it.

casbin-bot commented 1 year ago

@nodece @Zxilly @Shivansh-yadav13 please review

hsluoyz commented 1 year ago

@imp2002 fix CI:

image