Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@casl/mongoose incompatible with latest mongoose version #461

Closed
ionesculiviucristian opened this issue Feb 15, 2021 · 1 comment
Closed
Labels

Comments

@ionesculiviucristian
Copy link

ionesculiviucristian commented Feb 15, 2021

Describe the bug
Incompatible with mongoose 5.11.15

To Reproduce
Install the latest versions of mongoose and @casl/mongoose

Expected behavior
Te be compatible with each other. Why is 5.10.0 the last supported version?

CASL Version

"mongoose": "^5.11.15"
"mongoose-aggregate-paginate-v2": "^1.0.42"
"mongoose-paginate-v2": "^1.3.14"
"@casl/ability": "^5.2.2"
"@casl/mongoose": "^4.0.1"

Environment:
node:15.8.0-alpine
Typescript 4.1.5

@stalniy
Copy link
Owner

stalniy commented Feb 15, 2021

because of #436

in 5.11.x mongoose released a breaking change related to TS types and slowly trying to fix some of them. This new types are less usable than @types/mongoose and they cannot work together and there is no way to override them (except of ugly hack with postinstall script which I don't want to put in my docs). There are a bunch of ts related issues I'm waiting for mongoose to fix.

That's why 5.11.+ is not supported.

I close this, as there is nothing I can do from my side.

@stalniy stalniy closed this as completed Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants