@cerbos/http
Advanced tools
Comparing version 0.14.0 to 0.15.0
{ | ||
"name": "@cerbos/http", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "Client library for interacting with the Cerbos policy decision point over HTTP from browser-based applications", | ||
@@ -17,3 +17,3 @@ "repository": { | ||
"engines": { | ||
"node": ">= 16" | ||
"node": ">= 18" | ||
}, | ||
@@ -30,8 +30,8 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@cerbos/core": "^0.13.0", | ||
"@cerbos/core": "^0.14.0", | ||
"qs": "^6.11.2" | ||
}, | ||
"devDependencies": { | ||
"@types/qs": "6.9.7" | ||
"@types/qs": "6.9.8" | ||
} | ||
} |
@@ -12,10 +12,6 @@ # @cerbos/http | ||
- For Node.js up to 17.4, you'll need [a polyfill](https://www.npmjs.com/package/cross-fetch) to make `fetch` happen. | ||
- From Node.js 17.5, you can instead enable the [`--experimental-fetch`](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch) option at the command line or via `NODE_OPTIONS`. | ||
- From Node.js 18 onwards `fetch` is available without any additional configuration. | ||
## Prerequisites | ||
- Cerbos 0.16+ | ||
- Node.js 16+ | ||
- Node.js 18+ | ||
- `fetch` | ||
@@ -29,8 +25,2 @@ | ||
or | ||
```console | ||
$ yarn add @cerbos/http | ||
``` | ||
## Example usage | ||
@@ -47,3 +37,3 @@ | ||
roles: ["USER"], | ||
attributes: { tier: "PREMIUM" }, | ||
attr: { tier: "PREMIUM" }, | ||
}, | ||
@@ -53,3 +43,3 @@ resource: { | ||
id: "1", | ||
attributes: { owner: "user@example.com" }, | ||
attr: { owner: "user@example.com" }, | ||
}, | ||
@@ -56,0 +46,0 @@ action: "view", |
894866
57
+ Added@cerbos/core@0.14.0(transitive)
- Removed@cerbos/core@0.13.0(transitive)
Updated@cerbos/core@^0.14.0