Skip to content

Commit 6820c04

Browse files
authored
opa-react: prepare patch release (#140)
* add Features section to README * update changeset for patch release
1 parent bc99ec9 commit 6820c04

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/smart-goats-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@styra/opa-react": patch
3+
---
4+
5+
Tweak cache key computation and minor performance enhancements

packages/opa-react/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
This package contains helpers for using [@styra/opa](https://www.npmjs.com/package/@styra/opa) from React.
77

8+
## Features
9+
10+
* High-level, declarative components for embedding authorization decisions in your frontend code.
11+
* Built-in caching, deduplication, and state management based on `@tanstack/react-query`.
12+
* Optional **request batching** for backends that support it (Enterprise OPA, or your own implementation of the Batch API).
13+
14+
## Details
15+
816
The package provides an `useAuthz` hook and a high-level `<Authz>` component.
917

1018
They are enabled by wrapping your App into `<AuthzProvider>`:

0 commit comments

Comments
 (0)