github remix-run/remix render-middleware@0.3.0
render-middleware v0.3.0

latest releases: remix@3.0.0-rc.2, static-middleware@0.4.15, spa@0.1.1...
4 hours ago

Minor Changes

  • BREAKING CHANGE: render({ assets }) now uses assets.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 provide getScriptEntry() instead of getHref() and getPreloads(). It must return a Promise resolving to the following ScriptEntry shape:

    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

Don't miss a new remix release

NewReleases is sending notifications on new releases.