@fonderie/permissions 5.0.21 → 5.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,10 +14,13 @@ npm install @fonderie/permissions
|
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
import { FonderieApp, defineConfig } from '@fonderie/core';
|
|
17
|
+
import { PGAdapter } from '@fonderie/store';
|
|
17
18
|
import { PermissionsModule } from '@fonderie/permissions';
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
-
|
|
20
|
+
const store = new PGAdapter(process.env.DATABASE_URL!);
|
|
21
|
+
|
|
22
|
+
const app = await new FonderieApp(defineConfig({ db: { url: process.env.DATABASE_URL! } }))
|
|
23
|
+
.register(new PermissionsModule(store))
|
|
21
24
|
.boot();
|
|
22
25
|
```
|
|
23
26
|
|
|
@@ -33,7 +36,7 @@ typed `PermissionDeniedError`.
|
|
|
33
36
|
You've shipped this plumbing before — auth, teams, billing, messaging —
|
|
34
37
|
and the next project will ask for it again. Fonderie packages it once:
|
|
35
38
|
plain TypeScript modules for
|
|
36
|
-
[`@fonderie/core`](https://github.com/fonderiejs/
|
|
39
|
+
[`@fonderie/core`](https://github.com/fonderiejs/fonderie/tree/main/packages/core),
|
|
37
40
|
PostgreSQL-backed, self-hosted, MIT. No external control plane, no
|
|
38
41
|
per-seat anything. Register the modules you need; skip the ones you don't.
|
|
39
42
|
|
|
@@ -41,7 +44,7 @@ per-seat anything. Register the modules you need; skip the ones you don't.
|
|
|
41
44
|
on auth and workspaces, enforced at the route with one middleware.
|
|
42
45
|
|
|
43
46
|
Browse the whole set at
|
|
44
|
-
[fonderiejs/
|
|
47
|
+
[fonderiejs/fonderie](https://github.com/fonderiejs/fonderie) · follow
|
|
45
48
|
[@fonderiejs](https://x.com/fonderiejs)
|
|
46
49
|
|
|
47
50
|
## License
|
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ var PermissionsModule = class {
|
|
|
181
181
|
name = "@fonderie/permissions";
|
|
182
182
|
// Baked in at build time by tsup.base, so the operator's Modules page can
|
|
183
183
|
// say what is actually deployed rather than 'not reported'.
|
|
184
|
-
version = "5.0.
|
|
184
|
+
version = "5.0.23";
|
|
185
185
|
deps = ["@fonderie/auth"];
|
|
186
186
|
constructor(store, config = {}) {
|
|
187
187
|
this.engine = new PermissionsEngine(store, config);
|
package/dist/index.js
CHANGED
|
@@ -148,7 +148,7 @@ var PermissionsModule = class {
|
|
|
148
148
|
name = "@fonderie/permissions";
|
|
149
149
|
// Baked in at build time by tsup.base, so the operator's Modules page can
|
|
150
150
|
// say what is actually deployed rather than 'not reported'.
|
|
151
|
-
version = "5.0.
|
|
151
|
+
version = "5.0.23";
|
|
152
152
|
deps = ["@fonderie/auth"];
|
|
153
153
|
constructor(store, config = {}) {
|
|
154
154
|
this.engine = new PermissionsEngine(store, config);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonderie/permissions",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.23",
|
|
4
4
|
"fonderie": { "stability": "stable" },
|
|
5
5
|
"description": "Role-based access control for SaaS — define roles, assign CRUD permissions per resource, and gate any route with requirePermission. Supports multiple roles per user via BOOL_OR aggregation.",
|
|
6
6
|
"keywords": [
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"check": "biome check --write src"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@fonderie/core": "^0.
|
|
60
|
+
"@fonderie/core": "^0.21.0",
|
|
61
61
|
"@fonderie/store": "^0.6.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|