Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [Unreleased]

## [4.8.7] - 2026-07-10

### Added

- A reusable, pre-parsed `Schema` handle, completing the handle trio alongside `PolicySet` and `Entities`. Parse a schema once with `Schema.from_str(cedar_text)` or `Schema.from_json_str(json_text)` and pass the handle to `is_authorized`, `is_authorized_batch`, `is_authorized_partial`, or `validate_policies` anywhere a schema string is accepted — skipping the per-call parse. The `schema` parameter widens from `str | dict | None` to `str | dict | Schema | None`; existing string/dict callers are unchanged, so this is a pure, opt-in addition. The handle is immutable, releases its memory when the last Python reference is dropped, supports `str()` (the schema rendered to Cedar schema syntax, whichever format it was constructed from), and raises `ValueError` at construction on unparseable schemas. On a successful evaluation the result `metrics` gain a `schema_pre_parsed` flag (`1` for the handle path, `0` otherwise). Mirrors the `PolicySet` / `Entities` handle APIs ([#103](https://github.com/k9securityio/cedar-py/pull/103)). Thanks [@swenger](https://github.com/swenger)!
Expand Down Expand Up @@ -97,7 +99,8 @@ Dependency update release. No functional or API changes — Cedar Policy engine

- Performance regression test suite built on `pytest-benchmark` ([#39](https://github.com/k9securityio/cedar-py/pull/39))

[Unreleased]: https://github.com/k9securityio/cedar-py/compare/v4.8.6...HEAD
[Unreleased]: https://github.com/k9securityio/cedar-py/compare/v4.8.7...HEAD
[4.8.7]: https://github.com/k9securityio/cedar-py/compare/v4.8.6...v4.8.7
[4.8.6]: https://github.com/k9securityio/cedar-py/compare/v4.8.5...v4.8.6
[4.8.5]: https://github.com/k9securityio/cedar-py/compare/v4.8.4...v4.8.5
[4.8.4]: https://github.com/k9securityio/cedar-py/compare/v4.8.3...v4.8.4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Maturin merges package metadata from pyproject.toml (preferred) and Cargo.toml
# c.f. https://github.com/PyO3/maturin?tab=readme-ov-file#python-metadata
name = "cedarpy"
version = "4.8.6"
version = "4.8.7"
edition = "2021"
readme = "README.md"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<table>
<thead><tr><th>Cedar Policy (engine) release</th><th>cedarpy release</th><th>cedarpy branch</th></tr></thead>
<tbody>
<tr><td>v4.8.2</td><td>v4.8.6</td><td>main</td></tr>
<tr><td>v4.8.2</td><td>v4.8.7</td><td>main</td></tr>
<tr><td>v4.7.2</td><td>v4.7.1</td><td>release/4.7.x</td></tr>
<tr><td>v4.1.0</td><td>v4.1.0</td><td>release/4.1.x</td></tr>
<tr><td>v2.2.0</td><td>v0.4.1</td><td>release/2.2.x</td></tr>
Expand Down