diff --git a/.changeset/healthy-forks-run.md b/.changeset/healthy-forks-run.md deleted file mode 100644 index 0ed1a774..00000000 --- a/.changeset/healthy-forks-run.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@styra/opa-react": minor ---- - -Let `useAuthz` handle multiple queries at once - -If you don't know the number of evaluations you need, or if you want to do evaluations in a loop, you cannot do that with the "single-decision" `useAuthz` call. - -So now, you can provide an array of evaluation queries, -```ts -{ - path?: string; - input?: Input; - fromResult?: (_?: Result) => boolean; - }[], -``` -instead, and you'll get a `UseAuthzResult[]` in return. diff --git a/packages/opa-react/CHANGELOG.md b/packages/opa-react/CHANGELOG.md index 7cb296a2..06719a78 100644 --- a/packages/opa-react/CHANGELOG.md +++ b/packages/opa-react/CHANGELOG.md @@ -1,5 +1,25 @@ # @styra/opa-react +## 0.6.0 + +### Minor Changes + +- d66c52f: Let `useAuthz` handle multiple queries at once + + If you don't know the number of evaluations you need, or if you want to do evaluations in a loop, you cannot do that with the "single-decision" `useAuthz` call. + + So now, you can provide an array of evaluation queries, + + ```ts + { + path?: string; + input?: Input; + fromResult?: (_?: Result) => boolean; + }[], + ``` + + instead, and you'll get a `UseAuthzResult[]` in return. + ## 0.5.1 ### Patch Changes diff --git a/packages/opa-react/package.json b/packages/opa-react/package.json index 547e7c91..4a3cde9e 100644 --- a/packages/opa-react/package.json +++ b/packages/opa-react/package.json @@ -1,6 +1,6 @@ { "name": "@styra/opa-react", - "version": "0.5.1", + "version": "0.6.0", "repository": { "type": "git", "url": "https://github.com/StyraInc/opa-typescript.git",