# Svelte changelog ## Unreleased * Fix mounting component at detached DOM node ([#6567](https://github.com/sveltejs/svelte/issues/6567)) ## 3.40.2 * Fix dynamic `autofocus={...}` attribute handling ([#4995](https://github.com/sveltejs/svelte/issues/4995)) * Add filename to combined source map if needed ([#6089](https://github.com/sveltejs/svelte/pull/6089)) * In AST, parse empty attribute values as an empty string ([#6286](https://github.com/sveltejs/svelte/issues/6286)) * Fix tracking whether transition has started ([#6399](https://github.com/sveltejs/svelte/pull/6399)) * Fix incorrect scoping of `:global()` selectors ([#6550](https://github.com/sveltejs/svelte/issues/6550)) ## 3.40.1 * Fix store reactivity regression when using reactive statements ([#6557](https://github.com/sveltejs/svelte/issues/6557)) ## 3.40.0 * Support rendering a component in a shadow DOM ([#5869](https://github.com/sveltejs/svelte/issues/5869)) * Fix `:root` selector being erroneously scoped to component ([#4767](https://github.com/sveltejs/svelte/issues/4767)) * Fix `.end` in AST for expressions inside attributes ([#6258](https://github.com/sveltejs/svelte/issues/6258)) * Fix one-way `