Major Changes
-
require node 22.12 or higher, use fetch (#1217) (29b9601)
- Node 22.12+ is required. The package is ESM-only and no longer ships CommonJS runtime or declaration files.
HttpRequestEvent,ResponseEvent, andProgressEventare removed. Observable asset uploads now emitUploadEvent<T>.unstable__adapterandunstable__environmentexports are removed.- Observable asset uploads emit progress events only in browsers. Node and edge runtimes emit only the terminal response event.
ClientErrorandServerErrormessages now include the HTTP status text.- The deprecated internal
_requestHandlerclient config option andRequestHandlertype are removed. - The
requesterclient config option is removed. Useheadersconfiguration and a customfetchinstead. - The per-request
proxyoption is removed. Configureproxyon the client or through proxy environment variables. - Changes to
HTTP_PROXY,HTTPS_PROXY, andNO_PROXYafter process startup no longer affect requests. - DNS
ENOTFOUNDerrors are retried for idempotent requests. SetmaxRetries: 0to fail immediately. - The internal
HttpRequestcontract now uses get-it v9 fetch-shaped request options instead of the v8 request shape. - A caller-provided internal
config.resolveFetchtakes precedence over the environment resolver. - The UMD bundle is removed from the distribution. Use a bundler or a service such as
esm.sh. typesVersionsdeclarations are removed. Use TypeScriptmoduleResolutionset tonode16,nodenext, orbundler.- The
mainandmodulepackage fields are removed. Consumers must resolve the package throughexports.
Patch Changes
-
restore editor autocomplete for
StackablePerspectiveandStudioBaseUrl(#1264) (5b0e529)Both types applied the
& {}autocomplete idiom around the whole union rather than around the
stringmember, as in('published' | 'drafts' | string) & {}. That collapses to plainstring,
so editors offered no completions forpublishedordrafts, and the three template literal
patterns inStudioBaseUrlhad no effect. Assignability is unchanged, so this only adds
suggestions that were always intended to be there.