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

refactor: upgrade mongodb from 4.9.1 to 4.10.0 #8234

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade mongodb from 4.9.1 to 4.10.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 25 days ago, on 2022-09-19.
Release notes
Package name: mongodb
  • 4.10.0 - 2022-09-19

    The MongoDB Node.js team is pleased to announce version 4.10.0 of the mongodb package!

    Release Highlights

    Callback Deprecation

    Looking to improve our API's consistency and handling of errors we are planning to remove callback support in the next major release of the driver. Today marks the notice of their removal. Migrating to a promise only API allows us to offer uniform error handling and better native support for automatic promise construction. In this release you will notice deprecation warnings in doc comments for all our callback overloads and if you are working in VSCode you should notice strikethroughs on these APIs. We encourage you to migrate to promises where possible:

    • Using async/await syntax can yield the best experience with promise usage.
    • Using Node.js' callbackify utility is one approach:
      • require('util').callbackify(() => collection.findOne())(callback)
    • Using .then syntax is another:
      • collection.findOne().then(res => callback(null, res), err => callback(err))
    • And lastly, for large codebases still intertwined with callbacks we have an alternative package prepared.

    MongoDB-Legacy Callback Support

    While the 4.10.0 version only deprecates our support of callbacks, there will be a major version that removes the support altogether. In order to keep using callbacks after v5 is released, we recommend migrating your driver version to mongodb-legacy (github link). This package wraps every single async API our driver offers and is designed to provide the exact behavior of the MongoDB 4.10.0 release (both callbacks and promises are supported). Any new features added to MongoDB will be automatically inherited but will only support promises. This package is fully tested against our current suite and adoption should be confined to changing an import require('mongodb') -> require('mongodb-legacy'). If this package is useful to you and your use case we encourage you to adopt it before v5 to ensure it continues to work as expected.

    Read more about it on the package's readme here:

    Features

    Bug Fixes

    Documentation

    We invite you to try the mongodb library immediately, and report any issues to the NODE project.

  • 4.9.1 - 2022-08-31

    The MongoDB Node.js team is pleased to announce version 4.9.1 of the mongodb package!

    Release Highlights

    This is a bug fix release as noted below.

    Bug Fixes

from mongodb GitHub release notes
Commit messages
Package name: mongodb

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title [Snyk] Upgrade mongodb from 4.9.1 to 4.10.0 refactor: upgrade mongodb from 4.9.1 to 4.10.0 Oct 14, 2022
@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Base: 93.96% // Head: 93.97% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (d2bdffe) compared to base (0f763da).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##            alpha    #8234      +/-   ##
==========================================
+ Coverage   93.96%   93.97%   +0.01%     
==========================================
  Files         182      182              
  Lines       13752    13752              
==========================================
+ Hits        12922    12924       +2     
+ Misses        830      828       -2     
Impacted Files Coverage Δ
src/RestWrite.js 94.63% <0.00%> (ø)
src/Controllers/DatabaseController.js 93.90% <0.00%> (+0.14%) ⬆️
src/batch.js 94.73% <0.00%> (+1.75%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mtrezza mtrezza merged commit 89fad24 into alpha Oct 14, 2022
@mtrezza mtrezza deleted the snyk-upgrade-2b05ba53926a087ff73b5011c1fcee87 branch October 14, 2022 17:17
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.3.0-alpha.29

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Oct 15, 2022
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.4.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Oct 29, 2022
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.4.0-alpha.1

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.4.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Nov 19, 2022
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.4.0

@parseplatformorg parseplatformorg added the state:released-5.x.x Released as LTS version label Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-5.x.x Released as LTS version state:released-alpha Released as alpha version state:released-beta Released as beta version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants