Skip to content

Release v0.3.2

Choose a tag to compare

@github-actions github-actions released this 11 Feb 17:15
· 23 commits to master since this release
4bd43cb

Docker Image

The Docker image for this release has been published to DockerHub:

Repository: gooddata/gooddata-goodmock

Tags:

  • gooddata/gooddata-goodmock:0.3.2
  • gooddata/gooddata-goodmock:latest

Pull Commands

# Pull specific version
docker pull gooddata/gooddata-goodmock:0.3.2

# Pull latest
docker pull gooddata/gooddata-goodmock:latest

Run Command

docker run --rm gooddata/gooddata-goodmock:0.3.2 [command]

Changelog

0.3.2 - 2026-02-11

Changed

  • Split monolithic main package into internal/ sub-packages: types, server, record, matching, logging, proxy, common
  • Exported Server struct fields (Mappings, ProxyHost, RefererPath, Verbose, Mu) for cross-package access
  • Exported public API functions (HandleRequest, HandleAdmin, LoadMappings, ClearMappings, TransformRequestHeaders, LogVerboseRequest, MatchRequest, LogMismatch, ProxyRequest, RunRecord)
  • Moved shared helpers (GetPort, IsVerbose) into internal/common

0.3.1 - 2026-02-11

Changed

  • Refactored codebase from OOP style to functional style — all Server and RecordServer methods converted to free functions
  • Pure functions (applyResponseHeaders, evaluateMapping, logMismatch, logVerboseRequest, transformRequestHeaders) no longer take a server receiver
  • Replaced RecordServer struct embedding with explicit server *Server field
  • Request handlers use closures instead of method values

0.3.0 - 2026-02-10

Added

  • Record mode (goodmock record) — proxies to upstream and captures request/response pairs
  • /__admin/recordings/snapshot endpoint with URL pattern filtering and scenario support
  • Automatic gzip decompression for recorded response bodies
  • Scenario-based mappings for repeated URLs (repeatsAsScenarios)
  • VERBOSE environment variable for full request/response traffic logging

0.2.1 - 2026-02-10

Changed

  • Added mode as primary CLI arg (goodmock replay), defaults to replay
  • Replaced -port flag with PORT environment variable (default: 8080)

0.2.0 - 2026-02-10

Fixed

  • URL path matching now preserves percent-encoding (e.g. %3A) by using raw request URI instead of fasthttp's decoded path

Added

  • Request header rewriting (Origin, Referer, Accept-Encoding) to match recorded stubs
  • REFERER_PATH environment variable for app-specific Referer header path

0.1.1 - 2026-02-10

Changed

  • Refactor and minor improvements

0.1.0 - 2026-02-09

Added

  • Initial release

Build Information

  • Commit: 4bd43cb
  • Build Date: 2026-02-11 17:15:12 UTC
  • Workflow Run: #8