PR #70
Changelog
-
MongoDB v2 Migration:
- Updated all imports to
go.mongodb.org/mongo-driver/v2. - Refactored
ConnectMongoDBconfiguration to use the v2 signature (context-lessmongo.Connect). - Standardized the use of
bson.Din repository templates to ensure document order preservation, aligning with v2 best practices. - Updated
optionsusage to the new fluent API across repositories and persistent storage. - Migrated
primitive.ObjectIDtobson.ObjectIDin domain templates.
- Updated all imports to
-
Tracer Decoupling:
- Refactored
tracer/jaeger.goto remove direct imports ofsql,redis, andmongodrivers. - Introduced local error constants for the
errorWhitelistto maintain functionality while reducing the package's dependency footprint.
- Refactored
-
Task Queue Worker Refinement:
- Updated
MongoPersistentimplementation to MongoDB v2. - Fixed an uncaptured error during document decoding in the
DeleteJobmethod. - Optimized index creation using the v2 fluent options API.
- Updated
-
Template Logic Optimization:
- Simplified BSON import conditions in
template_domain.gofor cleaner generated code. - Updated generated mocks and interfaces to reflect the new driver types.
- Simplified BSON import conditions in
-
Fix Issue
-
Add Broadcast Mode in Redis Worker
-
Dependency Updates:
- Upgraded
go.mongodb.org/mongo-driver/v2tov2.5.0. - Upgraded
github.com/xdg-go/scramtov1.2.0. - Updated
google.golang.org/grpcfrom v1.76.0 to v1.79.3. - Updated
go.opentelemetry.io/oteland its ecosystem (sdk, trace, exporters) from v1.38.0 to v1.42.0. - Updated
github.com/golang-jwt/jwt/v5from v5.3.0 to v5.3.1. - Updated
google.golang.org/protobuffrom v1.36.10 to v1.36.11. - Updated
github.com/grpc-ecosystem/grpc-gateway/v2from v2.27.3 to v2.28.0. - Updated various
golang.org/x/*packages (crypto, net, sync, sys, text) to their latest versions. - Updated
github.com/klauspost/compressto v1.18.5. - Synchronized
go.sumwith the updated dependency tree, including the addition ofgithub.com/cespare/xxhash/v2.
- Upgraded