Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 3.95 KB

CHANGELOG.md

File metadata and controls

58 lines (46 loc) · 3.95 KB

Changelog

4.11.0

  • Pinned to cedar-policy 4.11.2
  • Added PolicyParseException, thrown by PolicySet.parsePolicies when policy text fails to parse. It is a subclass of InternalException, so existing catch blocks and getMessage() are unaffected, and adds getDetailedErrors() returning Cedar's structured diagnostics - source span, expected tokens, and help text - for each error. getErrors() now carries one entry per parse error rather than a single entry for the whole document #367
  • Adds Type-Aware Partial Evaluation (TPE) support #372. This is an experimental feature in cedar-policy and can change behavior in future releases (See experimental-features).

4.10.0

  • Pinned to cedar-policy 4.10.0

4.9.0

  • Pinned to cedar-policy 4.9.1
  • Improve toCedarExpr() correctness and add CedarStrings utility #351
  • Add PolicySet and Schema caching #350
  • Optimize JNI performance and fix Decimal validation #349
    • Updated Java source and target compatibility from 1.8 to 17 aligning with the pre-requisites in README #350
  • Bugfix: EntityIdentifier equals implementation #352

4.8.0

  • Added Schema conversion APIs #325
  • Added Level Validation #327
  • Added DateTime extension support #328
  • Added Duration extension support #331
  • Added Offset function support #331
  • Added PolicySet to JSON conversion API #329
  • Added Cedar Schema support for Entity Validation #332

4.3.1

Added

  • Added Zig version validation for publishing artifacts #306

4.3.0

Added

  • Introduced new model classes for improved type safety and functionality:
    • com.cedarpolicy.model.Context - Policy context representation (will replace Map<String,Value>) #286
    • com.cedarpolicy.model.entity.Entities - Entity collection management (will replace Set<Entity>) #293
  • Enhanced AuthorizationError with public getters and .toString() method #294
  • Added JSON parsing support for Entity #292
  • Implemented additional constructors to improve instantiation options for Entity #288
  • Added support for policy annotations #296

Planned Improvements

  • The following authorization parameters will be updated in a future release:
    • Map<String,Value> for context will be replaced by com.cedarpolicy.model.Context
    • Set<Entity> for entities will be replaced by com.cedarpolicy.model.entity.Entities

3.0

  • Reworked interface of com.cedarpolicy.value.EntityUID to support namespaces
  • Modified com.cedarpolicy.model.AuthorizationRequest to use com.cedarpolicy.value.EntityUID instead of Strings
  • Removes all use of the deprecated __expr syntax in JSON
  • Added com.cedarpolicy.value.EntityTypeName which represents namespaced types
  • Added com.cedarpolicy.value.EntityIdentifier which represents Entity Ids

2.0.0

Initial release of CedarJava.