Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and srenatus committed Jul 16, 2024
1 parent d66c52f commit 47b3348
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .changeset/healthy-forks-run.md

This file was deleted.

20 changes: 20 additions & 0 deletions packages/opa-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<T>[]` in return.

## 0.5.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/opa-react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 47b3348

Please sign in to comment.