Skip to content

Tags

Tags

v1.2.1

Toggle v1.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: race-free module registry, modernize CI, update deps (#5)

* fix(module): make registry lookups race-free

HasModule iterated the module map without holding the lock, racing
with concurrent AddModule calls, and AddModule checked for duplicates
outside the write lock, so two concurrent adds of the same name could
both succeed. Check and insert under one write lock and read under the
read lock.

The AddModules/MustAddModules tests only exercised the singular
methods; they now cover the variadic ones, plus a concurrent-add test
that fails under -race without this fix.

* test: cover WithModuleInitTimeout through New

Exercise the exported option and the default instead of the unexported
apply method, and correct the doc comment: the default is 10 seconds,
not 10 minutes.

* chore(deps): update samber/do to v2.1.0, set go 1.26 floor

Go 1.25 is out of support; the go directive now names the oldest
supported release as the library's compatibility floor. Local tool
versions move to Go 1.27.3, golangci-lint 2.15.0 and task 3.54.0.

* ci: consolidate into pinned test and release workflows

Replace the four workflows with test.yml (vet, race tests on the go.mod
floor and stable Go, golangci-lint) and release.yml (reuses test.yml,
computes the next semver tag from conventional commits and creates the
release with gh). Actions are pinned to commit SHAs, runners to
ubuntu-24.04, and permissions are least-privilege. Tags continue from
v1.2.0.

* docs: add CI badge, Go requirement and dependency ordering to README

* chore(deps): keep go 1.25.4 as the compatibility floor

Nothing in the code needs Go 1.26, and raising a library's floor
without need cuts off consumers.

* docs: document Composer concurrency guarantees

The module registry is safe for concurrent use, but Initialize and
Start are not synchronized and must be called from one goroutine after
all modules are registered. Also correct the README's Go requirement
to 1.25.

v1.0.1

Toggle v1.0.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
Import path fixes

v1.0.0

Toggle v1.0.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
Initial release