Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
920 stars 164 forks source link

Meteor 2.4 compatibility: _ensureIndex has been deprecated (v3.3.0) #343

Closed daolutions closed 2 years ago

daolutions commented 2 years ago

With the new mongo package in Meteor 2.4 Meteor.roleAssignment._ensureIndex seems to be deprecated: _ensureIndex has been deprecated, please use the new 'createIndex' instead, index: {"user._id":1,"inheritedRoles._id":1,"scope":1} _ensureIndex has been deprecated, please use the new 'createIndex' instead, index: {"user._id":1,"role._id":1,"scope":1} _ensureIndex has been deprecated, please use the new 'createIndex' instead, index: {"role._id":1} _ensureIndex has been deprecated, please use the new 'createIndex' instead, index: {"scope":1,"user._id":1,"inheritedRoles._id":1} _ensureIndex has been deprecated, please use the new 'createIndex' instead, index: {"inheritedRoles._id":1} _ensureIndex has been deprecated, please use the new 'createIndex' instead, index: {"children._id":1}

StorytellerCZ commented 2 years ago

There is already a PR ready for it that is now being reviewed. #341