render-middleware v0.3.0
·
1 commit
to main
since this release
Minor Changes
-
BREAKING CHANGE:
render({ assets })now usesassets.getScriptEntry()to resolve client entries from source files so their import maps are included in rendered documents and frame responses. Custom asset server implementations must providegetScriptEntry()instead ofgetHref()andgetPreloads(). It must return aPromiseresolving to the followingScriptEntryshape:interface ScriptEntry { href: string preloads: string[] importMap: { imports: Record<string, string> scopes?: Record<string, Record<string, string>> } }
Apps using
createAssetServer()receive this integration automatically. Custom rendering setups can follow the asset server migration steps (see #11706).
Patch Changes
- Bumped
@remix-run/*dependencies: