Update dependencies and fix deprecated MongoDB driver API usage #1
  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.
  
    
  
    
This PR updates all dependencies to their latest versions and addresses deprecated API usage in the MongoDB driver.
Key Changes
Dependency Updates
go.mongodb.org/mongo-driverfrom v1.8.1 to v1.17.4github.com/stretchr/testifyfrom v1.7.0 to v1.11.1API Modernization
Fixed deprecated
mongo.NewClient()usage by replacing it with the recommendedmongo.Connect()API:The new API properly establishes the connection during client creation and includes proper resource cleanup with
defer client.Disconnect(ctx).CI/CD Improvements
Updated GitHub Actions workflow:
actions/setup-go@v5andactions/checkout@v4go installinstead of deprecatedgo get -uImpact
The update brings significant improvements in terms of security patches, performance optimizations, and API stability while maintaining full backward compatibility.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
vuln.go.dev/home/REDACTED/go/bin/govulncheck ./...(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.