Minor Changes
-
51098aa:
useOptionsLookupendpoint mode is now kernel-aware (#1198) — the raw-fetch footgun is gone.- New kernel option
apiClient(HttpClientor factory), provided asqdadmApiClient:new Kernel({ apiClient: myAxios }). New exports:useApiClient(),resolveApiClient(),API_CLIENT_INJECTION_KEY. - Endpoint routing precedence:
via: 'entityName'(new option — that entity'sstorage.request()) > relative endpoint → kernelapiClient(base URL + auth applied, zero per-call wiring) > absolute URL → rawfetch+headers(escape hatch, unchanged) > relative without a registered client → legacy raw fetch with a console warning. - Failed lookups are no longer silent: non-JSON responses (HTML page), 401/403 and parse failures log a
console.warnnaming the endpoint and the likely cause. ScopeEditorfalls back to the kernelapiClientwhen noapiAdapteris injected (existing contract unchanged).
Purely additive — existing
endpoint+headerscalls keep working. - New kernel option