@holoyan/adonisjs-permissions 1.3.3 → 2.0.0-beta.2
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 +4 -8
- package/package.json +16 -14
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Checkout other AdonisJS packages
|
|
|
14
14
|
|
|
15
15
|
## Release Notes
|
|
16
16
|
|
|
17
|
-
Version: >=
|
|
17
|
+
Version: >= v2.0.0-beta.2
|
|
18
18
|
* Fixed `permissionQueryHelpers()` mixin leaking internal relations (`_roles`, `_permissions`, `_model_roles`) into the public `related()` API, which caused incorrect IDE type inference on user-defined relations
|
|
19
19
|
|
|
20
20
|
## Table of Contents
|
|
@@ -89,15 +89,9 @@ await user.allow('delete', post)
|
|
|
89
89
|
To be able to use the full power of Acl, you should have a clear understanding of how it is structured and how it works. That's why the documentation will be divided into two parts: [Basic usage](#basic-usage) and [Advanced usage](#digging-deeper). For most applications, Basic Usage will be enough.
|
|
90
90
|
|
|
91
91
|
## Installation
|
|
92
|
-
|
|
93
|
-
For AdonisJS v7 (latest):
|
|
94
|
-
|
|
92
|
+
|
|
95
93
|
npm i @holoyan/adonisjs-permissions
|
|
96
94
|
|
|
97
|
-
For AdonisJS v6:
|
|
98
|
-
|
|
99
|
-
npm i @holoyan/adonisjs-permissions@v1-latest
|
|
100
|
-
|
|
101
95
|
|
|
102
96
|
Next publish config files
|
|
103
97
|
|
|
@@ -1370,6 +1364,8 @@ await Acl.permission(myPermission).detachFromRole(role_slug)
|
|
|
1370
1364
|
|------------------------|-----------------|
|
|
1371
1365
|
| v20.x | 0.10.x |
|
|
1372
1366
|
| v21.x | 1.x |
|
|
1367
|
+
| v22.x | 2.x |
|
|
1368
|
+
|
|
1373
1369
|
|
|
1374
1370
|
|
|
1375
1371
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holoyan/adonisjs-permissions",
|
|
3
3
|
"description": "AdonisJs roles and permissions system",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-beta.2",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"author": "holoyan",
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@adonisjs/assembler": "^
|
|
45
|
-
"@adonisjs/core": "^
|
|
44
|
+
"@adonisjs/assembler": "^8.0.0-next.0",
|
|
45
|
+
"@adonisjs/core": "^7.0.0-next.0",
|
|
46
46
|
"@adonisjs/eslint-config": "^1.2.1",
|
|
47
|
-
"@adonisjs/lucid": "^
|
|
47
|
+
"@adonisjs/lucid": "^22.0.0-next.0",
|
|
48
48
|
"@adonisjs/prettier-config": "^1.2.1",
|
|
49
|
-
"@adonisjs/tsconfig": "^
|
|
50
|
-
"@japa/assert": "^2.
|
|
51
|
-
"@japa/runner": "^3.
|
|
49
|
+
"@adonisjs/tsconfig": "^2.0.0-next.3",
|
|
50
|
+
"@japa/assert": "^4.2.0",
|
|
51
|
+
"@japa/runner": "^5.3.0",
|
|
52
52
|
"@swc/core": "^1.3.102",
|
|
53
53
|
"@types/chance": "^1.1.6",
|
|
54
54
|
"@types/luxon": "^3.4.2",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"chance": "^1.1.11",
|
|
59
59
|
"copyfiles": "^2.4.1",
|
|
60
60
|
"del-cli": "^5.0.0",
|
|
61
|
+
"dotenv": "^17.2.4",
|
|
61
62
|
"eslint": "^8.38.0",
|
|
62
63
|
"mssql": "^10.0.2",
|
|
63
64
|
"mysql2": "^3.9.3",
|
|
@@ -70,20 +71,20 @@
|
|
|
70
71
|
"uuid": "^10.0.0"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
|
-
"@adonisjs/core": "^
|
|
74
|
-
"@adonisjs/lucid": "^
|
|
74
|
+
"@adonisjs/core": "^7.0.0-next.0",
|
|
75
|
+
"@adonisjs/lucid": "^22.0.0-next.0",
|
|
75
76
|
"@types/uuid": "^10.0.0",
|
|
76
77
|
"luxon": "^3.4.4",
|
|
77
78
|
"uuid": "^10.0.0"
|
|
78
79
|
},
|
|
79
80
|
"publishConfig": {
|
|
80
81
|
"access": "public",
|
|
81
|
-
"tag": "
|
|
82
|
+
"tag": "beta"
|
|
82
83
|
},
|
|
83
84
|
"np": {
|
|
84
85
|
"message": "chore(release): %s",
|
|
85
|
-
"tag": "
|
|
86
|
-
"branch": "
|
|
86
|
+
"tag": "beta",
|
|
87
|
+
"branch": "2.0.0-beta.1",
|
|
87
88
|
"anyBranch": false
|
|
88
89
|
},
|
|
89
90
|
"c8": {
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
},
|
|
101
102
|
"prettier": "@adonisjs/prettier-config",
|
|
102
103
|
"dependencies": {
|
|
103
|
-
"@holoyan/morph-map-js": "^0.1.
|
|
104
|
+
"@holoyan/morph-map-js": "^0.1.2",
|
|
105
|
+
"@poppinss/hooks": "7.3.0"
|
|
104
106
|
}
|
|
105
107
|
}
|