@casl/react 3.0.0 → 3.0.1
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/dist/types/Can.d.ts +1 -1
- package/package.json +4 -3
package/dist/types/Can.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare class Can<T extends AnyAbility, IsBound extends boolean = false>
|
|
|
43
43
|
private _connectToAbility;
|
|
44
44
|
get allowed(): boolean;
|
|
45
45
|
private _canRender;
|
|
46
|
-
render():
|
|
46
|
+
render(): ReactNode;
|
|
47
47
|
private _renderChildren;
|
|
48
48
|
}
|
|
49
49
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casl/react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "React component for CASL which makes it easy to add permissions in any React application",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"module": "dist/es5m/index.js",
|
|
@@ -40,13 +40,14 @@
|
|
|
40
40
|
"author": "Sergii Stotskyi <sergiy.stotskiy@gmail.com>",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@casl/ability": "^3.0.0 || ^4.0.0 || ^5.1.0",
|
|
43
|
+
"@casl/ability": "^3.0.0 || ^4.0.0 || ^5.1.0 || ^6.0.0",
|
|
44
44
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@casl/ability": "^
|
|
47
|
+
"@casl/ability": "^6.0.0",
|
|
48
48
|
"@casl/dx": "workspace:^1.0.0",
|
|
49
49
|
"@testing-library/react-hooks": "^4.0.1",
|
|
50
|
+
"@types/jest": "^26.0.22",
|
|
50
51
|
"@types/node": "^14.0.5",
|
|
51
52
|
"@types/react": "^18.0.0",
|
|
52
53
|
"chai": "^4.1.0",
|