fix(httpauth-firebase)!: rename package httpauthfirebase, bump httpauth and rbac to v1.0.0

Rename package from httpauth to httpauthfirebase to follow ecosystem convention
(repo name = package name, hyphens removed). Bump httpauth dependency from
v0.1.0 to v1.0.0 and rbac indirect dependency from v0.9.0 to v1.0.0.

BREAKING CHANGE: import path unchanged (code.nochebuena.dev/go/httpauth-firebase)
but package identifier changes from httpauth to httpauthfirebase — remove any
import alias previously used to disambiguate from code.nochebuena.dev/go/httpauth.
This commit is contained in:
2026-05-07 23:46:59 -06:00
parent 2c90fe22bf
commit 34c5fa7ded
7 changed files with 32 additions and 14 deletions

6
doc.go
View File

@@ -1,4 +1,4 @@
// Package httpauth provides Firebase-backed HTTP authentication middleware.
// Package httpauthfirebase provides Firebase-backed HTTP authentication middleware.
//
// AuthMiddleware verifies Firebase Bearer tokens and injects uid + claims into
// the request context via httpauth.SetTokenData (code.nochebuena.dev/go/httpauth).
@@ -9,10 +9,10 @@
//
// import httpauthmw "code.nochebuena.dev/go/httpauth"
//
// r.Use(httpauth.AuthMiddleware(firebaseClient, publicPaths))
// r.Use(httpauthfirebase.AuthMiddleware(firebaseClient, publicPaths))
// r.Use(httpauthmw.EnrichmentMiddleware(userEnricher, httpauthmw.WithTenantHeader("X-Tenant-ID")))
// r.With(httpauthmw.AuthzMiddleware(permProvider, "orders", rbac.Read)).Post("/orders", handler)
//
// AuthMiddleware accepts a TokenVerifier interface, so it can be tested without
// a live Firebase connection.
package httpauth
package httpauthfirebase