Skip to content

Commit

Permalink
Preparing for v3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Oct 3, 2019
1 parent 740592c commit 0f7fc6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
15 changes: 2 additions & 13 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
## v2.0.0
## v3.0.0

* Rewrite with the new schema for `roles` field and `Meteor.roles` collection.
* Support for roles hierarchies.
* Groups were renamed to scopes.
* Groups/scopes are always available, if you do not specify a scope, role is seen as a global role.
* `GLOBAL_GROUP` is deprecated and should not be used anymore (just do not specify a scope, or use `null`).
* `getGroupsForUser` is deprecated, `getScopesForUser` should be used instead.
* Functions which modify roles are available both on the client and server side, but should be called on the
client side only from inside Meteor methods.
* `deleteRole` can now delete role even when in use, it is automatically unset from all users.
* Functions `addRolesToParent` and `removeRolesFromParent` were added.
* `addUsersToRoles` and `setUserRoles` now require that roles exist and will not create missing roles automatically.
* All functions work with 1.0 arguments, but in 2.0 accept extra arguments and/or options.
* ...
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
meteor-roles v2
meteor-roles v3
===============

**This version of the package is being maintained just for security and compatibility issues.
Please consider the [latest version](https://github.com/Meteor-Community-Packages/meteor-roles).**

Authorization package for Meteor - compatible with built-in accounts package.

There are also older versions of this package:
* [v1](https://github.com/Meteor-Community-Packages/meteor-roles/tree/v1)
* [v2](https://github.com/Meteor-Community-Packages/meteor-roles/tree/v2)

<br />

<a id="roles-toc" name="roles-toc"></a>
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "Authorization package for Meteor",
version: "2.0.0",
version: "3.0.0-rc1",
git: "https://github.com/Meteor-Community-Packages/meteor-roles.git",
name: "alanning:roles"
});
Expand Down

0 comments on commit 0f7fc6f

Please sign in to comment.