Skip to content

Release v1.20.0

Latest

Choose a tag to compare

@agungdwiprasetyo agungdwiprasetyo released this 20 Apr 04:03

PR #70

Changelog

  1. MongoDB v2 Migration:

    • Updated all imports to go.mongodb.org/mongo-driver/v2.
    • Refactored ConnectMongoDB configuration to use the v2 signature (context-less mongo.Connect).
    • Standardized the use of bson.D in repository templates to ensure document order preservation, aligning with v2 best practices.
    • Updated options usage to the new fluent API across repositories and persistent storage.
    • Migrated primitive.ObjectID to bson.ObjectID in domain templates.
  2. Tracer Decoupling:

    • Refactored tracer/jaeger.go to remove direct imports of sql, redis, and mongo drivers.
    • Introduced local error constants for the errorWhitelist to maintain functionality while reducing the package's dependency footprint.
  3. Task Queue Worker Refinement:

    • Updated MongoPersistent implementation to MongoDB v2.
    • Fixed an uncaptured error during document decoding in the DeleteJob method.
    • Optimized index creation using the v2 fluent options API.
  4. Template Logic Optimization:

    • Simplified BSON import conditions in template_domain.go for cleaner generated code.
    • Updated generated mocks and interfaces to reflect the new driver types.
  5. Fix Issue

  6. Add Broadcast Mode in Redis Worker

  7. Dependency Updates:

    • Upgraded go.mongodb.org/mongo-driver/v2 to v2.5.0.
    • Upgraded github.com/xdg-go/scram to v1.2.0.
    • Updated google.golang.org/grpc from v1.76.0 to v1.79.3.
    • Updated go.opentelemetry.io/otel and its ecosystem (sdk, trace, exporters) from v1.38.0 to v1.42.0.
    • Updated github.com/golang-jwt/jwt/v5 from v5.3.0 to v5.3.1.
    • Updated google.golang.org/protobuf from v1.36.10 to v1.36.11.
    • Updated github.com/grpc-ecosystem/grpc-gateway/v2 from 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/compress to v1.18.5.
    • Synchronized go.sum with the updated dependency tree, including the addition of github.com/cespare/xxhash/v2.