Repository navigation
v0.18.3
Root module: v0.18.3; nested modules unchanged. Deprecation; no migration.
Deprecated
- A
kit.Storeliteral is deprecated: build the store withkit.NewStore. Since v0.18.2
only a store built byNewStorewritescreated_atandupdated_aton a table without
database defaults. A literal still compiles and still writes NULL there, and that is how a
regression reached production. The literal stays legal, because removing it would break every
app that has not moved yet. Instead, a storeNewStoredid not build logs one warning per
process, the first time it inserts or updates an account (UpsertFromOIDCor
BackfillPictures), naming the literal, the NULL timestamps andkit.NewStore. One per
process, not per call, so a busy app's logs carry the signal without the flood. The warning
goes toStore.Logger, orslog.Default()when it is nil. It runs no extra query and changes
no write. Go'sDeprecated:marker is not used: it attaches to an identifier, and the only
identifier here is theStoretype thatNewStoreitself returns, so marking it would flag
every correct caller. The deprecation is in the doc comments ofStore,UpsertFromOIDCand
BackfillPicturesinstead.EraseAccountonly deletes and does not warn. No route, status
code, cookie, CSRF rule,/auth/configbody orpg.Schemachanges.