-
Release v1.0.0 Stable
released this
2026-05-12 12:16:15 -06:00 | 0 commits to main since this releasev1.0.0
code.nochebuena.dev/go/firebaseOverview
firebasemanages the lifecycle of afirebase.google.com/go/v4App: validates
configuration at init time, initialises the SDK App, exposes the native*firebase.App
to consumers, and performs health checks by probing the Firebase Auth service.v1.0.0 caches the
auth.Clientinside the component (eliminating per-probe allocation),
adoptsxerrorsfor all structured error returns, bumps all micro-lib dependencies to v1,
and commits the API as stable.What Changed Since v0.9.0
Auth client cached in
OnInitOnInitnow callsapp.Auth(context.Background())once and stores the result on the
component.HealthCheckuses the cached client directly — no per-probeapp.Auth(ctx)
call.Structured errors via
xerrorsAll
fmt.Errorfcalls replaced withxerrors:Situation Code ProjectIDemptyErrInvalidInputfb.NewAppfailsErrInternal(wraps SDK error)app.AuthfailsErrInternal(wraps SDK error)HealthCheckbeforeOnInitErrInternalDependency updates
health,launcher,logzbumped fromv0.9.xtov1.0.1xerrors v1.0.1added as direct dependency- Go directive bumped from
1.25to1.26
Full API (stable)
Config—ProjectID string(FIREBASE_PROJECT_ID, required)Provider—App() *fb.AppComponent— embedslauncher.Component+health.Checkable+ProviderNew(logger, cfg) Component
Installation
go get code.nochebuena.dev/go/firebase@v1.0.0Changelog
See CHANGELOG.md.
Downloads