Tags give the ability to mark specific points in history as being important
-
-
-
v0.6.0
6e586237 · ·common-go v0.6.0 — ErrUnexpectedHTTPStatusCode moves to utils/httputil The HTTP-specific ErrUnexpectedHTTPStatusCode leaves the shared commerr re-export -- an HTTP-status error is not a general-purpose sentinel -- and now lives in utils/httputil, its only consumer. Bumps ctxerrors to v0.7.0. Breaking: commonerrors.ErrUnexpectedHTTPStatusCode is removed.
-
v0.5.0
8d01ee2b · ·common-go v0.5.0 — errors sentinels re-exported from ctxerrors/commerr The shared sentinel vocabulary moves to ctxerrors/commerr; common-go/errors is now a thin re-export aliasing the same values, so errors.Is holds across both import paths and existing imports keep working. New code should prefer commerr. Bumps the ctxerrors dependency to v0.5.0.
-
v0.4.2
d91f5b52 · ·common-go v0.4.2 — summary and mock ctor corrected 'Structured logging' was one Loki sink; ai/claudecode documented mocks.NewMockRunner, which does not exist (it is NewRunner). http and slogging/loki are now marked shipping-but-superseded rather than dropped. No code changed.
-
v0.4.1
96d6a049 · ·common-go v0.4.1 — README layout fix The ctxscope migration note sat between the description and the badges, pushing them below the fold. Moved under the badges as a callout, and it now states the rename concretely plus the v0.3.x pin that keeps the old path. No code changed.
-
v0.4.0
0b44e0a2 · ·common-go v0.4.0 — scope moves to its own module BREAKING: common-go/scope is removed; it is now github.com/psyb0t/ctxscope. Same API, new package name. Pin v0.3.x to keep the old path. Scope was stdlib-only in a module that requires gorm, echo, NATS and Temporal, so its releases were coupled to code its importers never compile. Nothing in common-go used it internally.
-
v0.3.5
3cbbb33a · ·common-go v0.3.5 — close the last two SQL redaction leaks v0.3.3 redacted single-quoted strings and numbers. Postgres has two more literal forms and both reached the log stream: E'secret\'tail' -> logged: tail' $payload$secret-value$payload$ -> logged: secret-value Escape strings use backslash escapes so \' does not end the literal; dollar-quoted strings have no quotes at all, so redaction never started. Tags are validated so a bare $ is not mistaken for one. Redaction and truncation are now a single pass with a byte budget, and Trace skips the work entirely when the level is disabled. Field shape and exported signatures unchanged.
-
v0.3.4
1cd59da6 · ·common-go v0.3.4 — imported-by badge, refreshed weekly CI only; the library is unchanged. The README gains a count of importing packages linking to the repositories behind it. Blast radius, not adoption — and the sharpest case for that distinction here: zero stars, and half the fleet depends on it. It reads 'unknown' until pkg.go.dev crawls the module, which is deliberate: 'nothing imports this' and 'I could not tell' are different facts.
-
v0.3.3
b2b1eb57 · ·common-go v0.3.3 — the gorm logger stops leaking SQL Traced statements were logged verbatim, so any literal inlined into a query -- an address in a WHERE, a token in an INSERT -- was copied into the log stream. Statements are now redacted (quoted strings and numbers become ?), whitespace collapsed, and the result truncated at 2048 bytes on a valid UTF-8 boundary. Breaking for log consumers: the `sql` trace field is replaced by `sql_preview` / `sql_bytes` / `sql_truncated`. Repoint any query on `sql`. Adds errors.ErrUnavailable for a capability that exists but was never wired, which ErrNotFound describes wrongly.
-
-
-
-
-
-
-
-
-
-