[FIX]:NodeJS 20 Deprecation Warning DEP0170 #218 #296
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Deprecation Warning for MongoDB URL Parsing in winston-mongodb
Issue
The recent Node.js version 20 and MongoDB driver updates have introduced a deprecation warning in winston-mongodb due to the use of deprecated APIs in the MongoDB driver.
Changes Made
Updated the MongoDB URL parsing in winston-mongodb to resolve the deprecation warning.
Used the latest MongoDB driver version to ensure compatibility and compliance with Node.js updates.
Additional Notes
Tested the changes locally with Node.js version 20 and verified that the deprecation warning is no longer triggered.
Ensured backward compatibility with previous Node.js and MongoDB versions.
Updated dependencies and added necessary documentation or comments related to the fix.
Reviewer Instructions:
Please review the changes and ensure compatibility with different Node.js and MongoDB versions. Verify that the deprecation warning is resolved and no new issues are introduced. Any feedback or suggestions are highly appreciated.
@DABH