Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Security
- sdx_preflight's validate endpoint is gated like the create form it stands in for: an authenticated account with create access on the entity type and bundle, content entity types only, and only the fields the caller may edit are set and reported. It was open to any "access content" holder on every entity type. All sites using sdx_preflight should update.
- SafeHtml (now @sdx/base/SafeHtml in sdx_react, replacing the copies in sdx_react_base and sdx_aurora) rebuilds each allowed tag's attributes from a real parse: event handlers are dropped whatever the quoting, href is decoded and stripped of control characters before the scheme check, values are re-emitted escaped, comments and CDATA are removed. Covered by unit tests.
- Vite dev-server PID and log files live under the framework's private:// build-config directory instead of the shared system temp directory.
- drush sdx:exec accepts a bare binary name only; a path with separators no longer escapes node_modules/.bin.
- The import map JSON is encoded with JSON_HEX_TAG.
Fixed
- Structured dialog and AJAX payloads render on Vue and Svelte sites. Drupal.sdx.renderStructured / unmountStructured were installed only by sdx_react, so on a Vue or Svelte site every structured response queued forever and the dialog body stayed empty. The queue/install logic moved into @sdx/core/structured-render, the ajax interceptor and dialog adapter share it, and each framework module ships an @sdx/base/installDialogBridge imported by its DrupalApp and DefaultLayout.
- The Svelte app boots again from the generated app entry: DrupalApp accepts initialData and ssrRegistry (the names the entry and SSR stubs pass) and a componentRegistry defaulting to the generated one; DefaultLayout subscribes to the context stores and renders the DataProvider component or the page content.
- The Vue component registry no longer imports React theme templates: themes are filtered by their own framework, not by the file extensions they happen to share.
- DrupalApp.vue provides the template registry ComponentTree expects (a Map under sdxComponentRegistry); the DataProvider registry moved to sdxDataProviderRegistry.
- @sdx/useDeferredProps and @sdx/useLazyProp are registered by all three framework modules; the guide documented them and no hook provided them.
Changed
- sdx_svelte's hooks are thin readable() adapters over the shared @sdx/core stores (useAsyncState, useChannel, usePresence, useConfirmModal, useForm, useReactive, usePage), mirroring sdx_vue; the standalone reimplementations with their own fetch, CSRF and batch-polling code are gone. Public shape kept; createPageStore remains as an alias of usePage. DrupalApp.svelte composes those hooks and its ctx exposes stores throughout.
- SdxComponentBlock fetches the optional props-form builder with ContainerInterface::NULL_ON_INVALID_REFERENCE.