@ai-sdk/policy-opa
1.0.177 · 18 Nov 2026Apache-2.025.7k / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/policy-opa From 1.0.18 to 1.0.19
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 2
- fixes
Release by release
- Fixed
Use own-property checks when resolving per-tool approvals so tool names and approval ids that match inherited object properties (e.g.
constructor,toString,valueOf,__proto__) are treated as unconfigured/absent. - Fixed
wrapMcpTools: per-tool approval functions now fail closed. In the per-tool map form, a per-tool approval function that returns a "no opinion" result (not-applicableorundefined) is now forced through the configured fallback (user-approvalby default), matching the generic-function form. Previously such a result passed through and the tool resolved tonot-applicable, letting it run without an approval request. Static per-tool statuses the caller configured explicitly are unchanged.
- Fixed
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.