Install

Works with Drupal: ^10.3 || ^11

Using 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}.php next to a component's .component.yml and DrupalComponentBase resolves props server-side; invalidation metadata bubbles onto #cache automatically. A new hook_sdx_component_data_alter fires for every SDX component render regardless of where it lives in the render pipeline.
  • ComponentBrowserUrlMap plus drupalSettings.sdx_[framework].components expose 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, and hook_sdx_aliases exports in parallel with component chunks.
  • RenderedComponentRegistry tracks every #type: component element 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_query and current_user sources in DataResolver.

Changed

  • Content-hashed Vite entries. entryFileNames: '[name]-[hash].js'; libraries declare type: external so 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, and sdx_router/navigate scripts 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.json to per-module {module}.sdx.yml manifests with runtime / build / dev sections. Sites must run drush sdx:migrate-to-yml before rebuilding.

Fixed

  • sdx.data YAML 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.json removed. Run drush sdx:migrate-to-yml.
  • SdxFrameworkPluginInterface::getRuntimeDependencies() and getMinimumRuntimeVersions() removed (npm deps move into the framework module's own .sdx.yml).
  • sdx.dependency_versions config removed; DependencyVersionManager deleted.
  • drush sdx:pm:install / sdx:pm:remove / sdx:pm:list / sdx:pm:rebuild removed. Use sdx:require, sdx:remove, sdx:list, sdx:resolve.
  • drush sdx:build and ViteConfigGenerator::ensurePackageJson() now require sdx.lock. Run drush sdx:resolve first.
Created by: vzsigmond
Created on: 20 Apr 2026 at 10:29 UTC
Last updated: 20 Apr 2026 at 10:29 UTC
Bug fixes
New features

Other releases