Repository navigation
better-content 0.10.0
The subtraction release before 1.0. Four things were reachable that should not have been. Breaking changes are free now and permanent after 1.0.
Removed
StorageAdapter, a third spelling of the storage seam, exported fromcoreandserver, referenced nowhere in the implementation and in no doc. UseClientStorageAdapter(upload) andServerStorageAdapter(sign).dirtyKeyfrombetter-content/core. It returned"collection:id", the engine's internal dirty-set key, so exporting it froze that format.setPathandgetPathare unaffected.PageContextfrombetter-content/react. The raw context object pinned the two-context design as API. UseusePageContext,useCmsItemoruseCmsEngine.PageContextValuestays as a type andCmsAuthContextstays deliberately.resetGoogleKeyCachefrombetter-content/auth/google, a test hook whose own docstring said so. The JWKS cache is internal now and still honours Google'scache-control.
Changed
engines.nodeis now>=20. Node 18 left maintenance in April 2025.- The root entry still re-exports
core, and the docs now say so rather than leaving a second spelling undocumented.
Migration
| Was | Now |
|---|---|
StorageAdapter |
ClientStorageAdapter or ServerStorageAdapter |
dirtyKey(collection, id) |
your own template string, if you need it |
useContext(PageContext) |
usePageContext() |
resetGoogleKeyCache() |
nothing; the cache expires on max-age |
No behaviour changed, no signatures changed, nothing was added. Requires create-better-content@0.9.0 or newer to scaffold.