Skip to content

Commit ddd2b6d

Browse files
author
Tania Mathern
committed
ci: Merge remote-tracking branch 'refs/remotes/origin/mathern/context' into mathern/context
2 parents 42d52f2 + 52889b0 commit ddd2b6d

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

docs/release-notes.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
# Release notes
22

3-
## Version vNext
4-
5-
New features:
6-
7-
- **`Settings` class**: Per-instance configuration for C2PA operations. Supports `set()` with dot-notation paths, `from_json()`, `from_dict()`, `update()`, dict-like `[]` access, and method chaining. Replaces the global `load_settings()` function.
8-
- **`Context` class**: Carries optional `Settings` and an optional `Signer` for `Reader` and `Builder` operations. Supports `from_json()` and `from_dict()` convenience constructors. When a `Signer` is provided, it is consumed (ownership is transferred to the context).
9-
- **`ContextProvider` protocol**: A `runtime_checkable` protocol that allows third-party implementations of custom context providers. Both `Reader` and `Builder` accept `context` as a keyword-only parameter.
10-
- **`Signer._release()` internal method**: Transfers ownership of the native signer pointer without freeing it, enabling the signer-on-context pattern.
11-
- **`Builder.sign()` with optional signer**: The `signer` parameter is now optional. When omitted, the context's signer is used. Explicit signer always takes precedence over context signer.
12-
- **`Builder.sign_file()` with optional signer**: The `signer` parameter is now optional, matching `sign()`.
13-
- **`Reader` and `Builder` context integration**: Both accept `context=` keyword-only parameter. Reader uses `c2pa_reader_from_context` + `c2pa_reader_with_stream`. Builder uses `c2pa_builder_from_context` + `c2pa_builder_with_definition`.
14-
15-
Deprecations:
16-
17-
- **`load_settings()`** is deprecated with a `DeprecationWarning`. Use `Settings` and `Context` for per-instance configuration instead. The function remains fully functional for backward compatibility.
18-
193
## Version 0.6.0
204

215
<!-- Get features and updates -->

0 commit comments

Comments
 (0)