-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): @casl/[email protected] [skip ci]
- Loading branch information
1 parent
4e9a4b4
commit 8dd9206
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,48 @@ | |
|
||
All notable changes to this project will be documented in this file. | ||
|
||
# [@casl/angular-v2.0.0](https://github.com/stalniy/casl/compare/@casl/[email protected]...@casl/[email protected]) (2019-02-10) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **packages:** increases peerDependency of [@casl](https://github.com/casl)/ability ([9f6a7b8](https://github.com/stalniy/casl/commit/9f6a7b8)), closes [#119](https://github.com/stalniy/casl/issues/119) | ||
|
||
|
||
### Features | ||
|
||
* **ability:** adds support for `manage` action ([d9ab56c](https://github.com/stalniy/casl/commit/d9ab56c)), closes [#119](https://github.com/stalniy/casl/issues/119) | ||
|
||
|
||
### BREAKING CHANGES | ||
|
||
* **ability:** `manage` is not anymore an alias for CRUD but represents any action. | ||
|
||
Let's consider the next example: | ||
|
||
```js | ||
const ability = AbilityBuilder.define((can) => { | ||
can('manage', 'Post') | ||
can('read', 'User') | ||
}) | ||
``` | ||
|
||
In @casl/ability@2.x the definition above produces the next results: | ||
|
||
```js | ||
ability.can('read', 'Post') // true | ||
ability.can('publish', 'Post') // false, because `manage` is an alias for CRUD | ||
``` | ||
|
||
In @casl/ability@3.x the results: | ||
|
||
```js | ||
ability.can('read', 'Post') // true | ||
ability.can('publish', 'Post') // true, because `manage` represents any action | ||
``` | ||
|
||
To migrate the code, just replace `manage` with `crud` and everything will work as previously. | ||
|
||
# [@casl/angular-v1.0.0](https://github.com/stalniy/casl/compare/@casl/[email protected]...@casl/[email protected]) (2018-12-02) | ||
|
||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters