Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
662.53 KB
MD5: b5cef067a8e70b3a46865ca5ec942bd9
SHA-1: d332b385cf33510416cff78466ca6e34440d99eb
SHA-256: c48e5408b3b5fba1e63dfca1525ca3317e10b5656ee14b35d3442750d1b5d70e
Download zip
1.15 MB
MD5: a224e0f0b5d8a2890a7d80a2d292beb7
SHA-1: 53ae9a5e13f8d88de576268d73bfbebf640fdbcf
SHA-256: e17c39b456c748e769dad9db09add471e723a12c67c6136034f170d54d029fa1
Release notes
Added
- ComponentDataProvider plugins. Drop a
{Camel}.phpnext to a component's.component.ymland DrupalComponentBase resolves props server-side; invalidation metadata bubbles onto#cacheautomatically. A newhook_sdx_component_data_alterfires for every SDX component render regardless of where it lives in the render pipeline. - ComponentBrowserUrlMap plus
drupalSettings.sdx_[framework].componentsexpose the Vite manifest's componentId to hashed-URL map so the runtime mount coordinator, modulepreload link tags, and library script tags all resolve to the identical URL string per file. - ImportMapRegistry records every URL declared in the request's importmap script so sdx_engine can preload react, react-dom,
@sdx/runtime, andhook_sdx_aliasesexports in parallel with component chunks. - RenderedComponentRegistry tracks every
#type: componentelement ComponentPreRender processes: regions, hook_page_top / hook_page_bottom, AJAX commands, lazy builders. - ComponentPreloadResolver plus sdx_vite manifest emission (
build.manifest: true) power framework-aware preload URL resolution. entity_queryandcurrent_usersources in DataResolver.
Changed
- Content-hashed Vite entries.
entryFileNames: '[name]-[hash].js'; libraries declaretype: externalso Drupal no longer appends its per-build AssetQueryString query. Every loader resolves to the identical URL and the browser dedupes by module map. sdx/ajax-interceptor,sdx/dialog, andsdx_router/navigatescripts are now defer-loaded (removed from the parser-blocking critical path; roughly 200 to 400 ms saved on cold loads).- Async widgets hydrate as React-owned MountPointScaffolds; widget roots survive SPA nav across same-template reconciliation.
- Dependency declarations moved from
sdx.packages.jsonto per-module{module}.sdx.ymlmanifests with runtime / build / dev sections. Sites must rundrush sdx:migrate-to-ymlbefore rebuilding.
Fixed
sdx.dataYAML resolution, previously dead code (read from the wrong property on ComponentMetadata). Now resolves into props correctly on every render.- SSR envelope extraction, mount structure, and hoistable-resource pipeline.
Breaking
sdx.packages.jsonremoved. Rundrush sdx:migrate-to-yml.SdxFrameworkPluginInterface::getRuntimeDependencies()andgetMinimumRuntimeVersions()removed (npm deps move into the framework module's own.sdx.yml).sdx.dependency_versionsconfig removed; DependencyVersionManager deleted.drush sdx:pm:install/sdx:pm:remove/sdx:pm:list/sdx:pm:rebuildremoved. Usesdx:require,sdx:remove,sdx:list,sdx:resolve.drush sdx:buildandViteConfigGenerator::ensurePackageJson()now requiresdx.lock. Rundrush sdx:resolvefirst.