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
4 files changed
tree: eac254eee3f5ac21ca7340acc6f0262f2323e20e
  1. .changeset/
  2. .github/
  3. examples/
  4. packages/
  5. scripts/
  6. .asf.yaml
  7. .gitattributes
  8. .gitignore
  9. .licenserc.yaml
  10. DISCLAIMER
  11. LICENSE
  12. NOTICE
  13. package.json
  14. pnpm-lock.yaml
  15. pnpm-workspace.yaml
  16. README.md
README.md

Apache Casbin Node Extensions

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.

Layout

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)

Development

Requires pnpm.

pnpm install
pnpm -r build
pnpm -r test

Import history

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>.

License

Apache License 2.0. See LICENSE and NOTICE.