-
Notifications
You must be signed in to change notification settings - Fork 341
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
The types of 'options.autoEncrypter' are incompatible #434
Comments
I'm not an expert on NPM libraries, but isn't it best to have |
@rfox12 yes and no. Yes - it would stop it breaking in this context and in that way. No - what if connect-mongo relies on the schema? Say 4.1.1 removes a property but connect-mongo relies on that property being there. Now as a peerDependency it will still break. |
If mongodb is abiding by good semver citizenship (which I think they will), the promise with minor and patch releases is that they do not break the interface... I've added a pull request. |
My example wasn't very good - or deep enough. Let's say that they removed an optional property from the type that should not have been there because it was not used. That might technically break the TypeScript schema but would not causing a functional breaking change. |
Thank you! 💯 |
4.6.0 released |
I don't think we're going to break anyone's usage. I upgraded just now and my update moved me to |
I think it works the way that you've done it with |
it works, i just had to delete node_modules and package-lock.json and reinstall. thanks |
@huineng did you run into: |
no sorry, i got "cannot find mongo" |
@huineng You'll simply want to ensure |
I'm submitting a ...
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
When upgrading the mongodb dependency from
4.1.0
to4.1.1
this is the TypeScript error:I think that the fix is as simple as upgrading the dependency in package.json:
connect-mongo/package.json
Line 62 in 3e27376
The text was updated successfully, but these errors were encountered: