Which version of alanning:roles for v2 and v3

Hello, Is there a version of alanning:roles wich is compatible with both meteor v2 and v3 ?

  3.6.3          May 5th, 2024
  4.0.0-alpha.1  April 8th, 2024
  4.0.0-alpha.2  April 22nd, 2024      installed
  4.0.0-alpha.3  May 4th, 2024
  4.0.0-alpha.4  June 8th, 2024        installed
  4.0.0-rc.1     July 16th, 2024
  4.0.0-rc.2     July 22nd, 2024       installed

Thanks

The idea behind is to use Async suffixed function in meteor v2 code to prepare the migration

I think 4.0.0-alpha.1 was ok but then support for Meteor v2 was dropped. Am I right ?

@dokithonon

Maybe info about that is at these streams of @storyteller ?

1)

2)

1 Like

v4 requires at least Meteor 2.8.1.

Hello,
The problem is that if I use alaning:roles version 4.0.0-rc.2 in my Meteor v2.16 i receive this error :

TypeError: Roles.userIsInRole is not a function

So i conclude that 4.0.0-rc.2 is not both compatible with Meteor v2.x and v3.x projects ? right ?

v4 does not allow sync methods on server. That is the breaking change there. You need to use Roles.userIsInRoleAsync. It is in the changelog.