Upgrade to jsep 1.4.0 (#16) Update expression-eval to use jsep 1.4.0 This allows for implementing nested brackets in node-casbin which is currently unsupported as mentioned here: https://github.com/apache/casbin-node-casbin/blob/2d90c7d8c3b522415605cf3d25481e763e73381e/src/util/util.ts#L193 jsep 1.4.0 does not support `LogicalExpression` and instead moves those under `BinaryExpression`. See jsep discussion here: https://github.com/EricSmekens/jsep/issues/100 Targets 1.4.0 as opposed to 1.6.0 as 1.6.0 requires Node 20 * Remove `jsep.LogicalExpression` as this is no longer supported by jsep * Check for passed in `string` or `jsep.Expression` as jsep no longer handles string. * Maintains compatibility with stored/serialized data from previous version that made use of `LogicalExpression` by adding local `LogicalExpression` type and handling
Monorepo for the Apache Casbin Node.js extensions: storage adapters, watchers, framework middlewares, and utilities. Each package keeps its own npm package name and semantic version.
packages/ ├── adapters/ # storage adapters (file, redis, sequelize, typeorm, ...) ├── watchers/ # multi-instance policy synchronization ├── middlewares/ # framework integrations (express, koa, egg, nest, hapi) ├── role-managers/ # role managers (session-based) └── utils/ # shared utilities examples/ # runnable examples (not published to npm)
Requires pnpm.
pnpm install pnpm -r build pnpm -r test
Packages were imported from their original repositories with full git history preserved (authors, dates, tags) via git filter-repo --to-subdirectory-filter, with tags renamed to <package>-<version>.