Repository navigation
v5.24.0
@weaverse/core, @weaverse/react, @weaverse/hydrogen 5.24.0
Highlights
- Tell outages apart from missing pages (
@weaverse/hydrogen). New opt-inthrowPageLoadFailuresclient option. When it is set,loadPage()rejects with the new exportedWeaverseLoadError, whosekindisunavailable,invalid-responseorconfiguration. A storefront can then answer an outage with a retryable 503 instead of a 404 or an empty page. A missing project still resolves tonull, and an unassigned page still resolves to a fallback page. (#560, refs #501) - Response validation. Successful
/projectand/project_configsresponses are validated. Invalid bodies are never cached. A theme response without athemefield now returns schema defaults marked_loadFailed: true, instead of presenting them as the merchant's settings.
Behaviour changes without the opt-in
- On the self-hosted cached path (API base on the Weaverse host), an error status for the client's own Builder requests now resolves
loadPage()tonullinstead of the "Please add new section to start." placeholder page. - On the cached path, a request that gets no response is reported as a network or timeout error, as on the direct path.
- A successful response whose body is not JSON is now reported as an invalid response rather than a network error. It keeps the existing single retry on the direct path.
Compatibility
@weaverse/hydrogennow declares@shopify/hydrogen>=2025.5 <2026.10.0. Hydrogen 2026.10 removedCacheCustomandcreateWithCache, which this package imports, so the earlier open range let projects install a Hydrogen version it crashes on at import. Hydrogen 2026.10 support is tracked in #545. (#550)- Packages are now built with Vite+ (
vp pack), and declarations come from the pinnedtsrscompiler instead of tsup/TypeScript. The published entry points, files and runtime exports are unchanged;@weaverse/hydrogenaddsWeaverseLoadErrorand theWeaverseLoadFailureKindtype. (#557, #558)
Full Changelog: v5.23.0...v5.24.0