<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title>svelte-dnd</title>
	<subtitle>Drag and drop for Svelte 5: nested zones, touch, keyboard and screen reader support.</subtitle>
	<id>https://svelte-dnd.thelukez.com/changelog.xml</id>
	<link href="https://svelte-dnd.thelukez.com/changelog" />
	<link rel="self" href="https://svelte-dnd.thelukez.com/changelog.xml" />
	<updated>2026-11-22</updated>
	<entry>
		<title>1.0.0</title>
		<id>https://svelte-dnd.thelukez.com/changelog#1.0.0</id>
		<link href="https://svelte-dnd.thelukez.com/changelog#1.0.0" />
		<updated>2026-11-22</updated>
		<content type="text">Major Changes

- &lt;p&gt;First stable release of the Svelte 5 rewrite of &lt;code&gt;svelte-dnd-action&lt;/code&gt;. Zones and drag handles are attachments (&lt;code&gt;dndzone&lt;/code&gt;, &lt;code&gt;dragHandleZone&lt;/code&gt;, &lt;code&gt;dragHandle&lt;/code&gt;), updates arrive through the &lt;code&gt;onconsider&lt;/code&gt; and &lt;code&gt;onfinalize&lt;/code&gt; options, and global settings go through &lt;code&gt;configure&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Read the &lt;a href=&quot;https://svelte-dnd.thelukez.com&quot;&gt;documentation&lt;/a&gt; to get started, or the &lt;a href=&quot;https://svelte-dnd.thelukez.com/docs/migrating&quot;&gt;migration guide&lt;/a&gt; to move from &lt;code&gt;svelte-dnd-action&lt;/code&gt;. See &lt;code&gt;1.0.0-next.0&lt;/code&gt; below for the full list of changes since the fork.&lt;/p&gt;

Patch Changes

- &lt;p&gt;&lt;code&gt;useComputedStyleForRects&lt;/code&gt; now also applies when a pointer drag starts: the dragged clone takes the item&amp;#39;s computed width, height and box-sizing instead of its bounding rect. Before, the clone was sized from the rect at drag start, and the option only took effect on the first morph.&lt;/p&gt;

- &lt;p&gt;A click on another item during a keyboard drag now ends the drag with an &lt;code&gt;onconsider&lt;/code&gt; whose trigger is &lt;code&gt;DRAG_STOPPED&lt;/code&gt; before it starts a drag of the clicked item. Before, the first drag ended without one, so code that saves on &lt;code&gt;DRAG_STOPPED&lt;/code&gt; missed its moves. No new drag starts if that handler disables dragging in the clicked item&amp;#39;s zone or removes the item.&lt;/p&gt;

- &lt;p&gt;A pointer drag now scrolls a page that only overflows horizontally when the page&amp;#39;s scroll width is not more than the window&amp;#39;s height, as in a portrait window. Before, the check compared the scroll width with the client height.&lt;/p&gt;</content>
	</entry>
	<entry>
		<title>1.0.0-next.0</title>
		<id>https://svelte-dnd.thelukez.com/changelog#1.0.0-next.0</id>
		<link href="https://svelte-dnd.thelukez.com/changelog#1.0.0-next.0" />
		<updated>2026-11-22</updated>
		<content type="text">Major Changes

- &lt;p&gt;Fork &lt;code&gt;svelte-dnd-action&lt;/code&gt; 0.9.80 as &lt;code&gt;@lukez/svelte-dnd&lt;/code&gt;. The package now ships ESM and CommonJS builds from &lt;code&gt;dist&lt;/code&gt; only (the &lt;code&gt;svelte&lt;/code&gt; field and raw &lt;code&gt;src&lt;/code&gt; entry are gone) and is moving to a breaking Svelte 5 rewrite. Expect API changes between &lt;code&gt;next&lt;/code&gt; prereleases.&lt;/p&gt;

- &lt;p&gt;Rewrite the public API for Svelte 5. See &lt;a href=&quot;https://github.com/The-LukeZ/svelte-dnd/blob/master/packages/svelte-dnd/MIGRATING.md&quot;&gt;MIGRATING.md&lt;/a&gt; for the steps.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The action became an attachment factory that takes an options getter: &lt;code&gt;use:dndzone={options}&lt;/code&gt; is now &lt;code&gt;{@attach dndzone(() =&amp;gt; options)}&lt;/code&gt;. The same applies to &lt;code&gt;dragHandleZone&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;consider&lt;/code&gt; and &lt;code&gt;finalize&lt;/code&gt; DOM events became the &lt;code&gt;onconsider&lt;/code&gt; and &lt;code&gt;onfinalize&lt;/code&gt; options. They receive the event directly, so &lt;code&gt;e.detail.items&lt;/code&gt; is now &lt;code&gt;e.items&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The global setters &lt;code&gt;setAriaStrings&lt;/code&gt;, &lt;code&gt;setKeyboardDragTrigger&lt;/code&gt;, &lt;code&gt;setDebugMode&lt;/code&gt; and &lt;code&gt;overrideItemIdKeyNameBeforeInitialisingDndZones&lt;/code&gt; became &lt;code&gt;configure({ ariaStrings, keyboardDragTrigger, debug, idKey })&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;setFeatureFlag&lt;/code&gt; and &lt;code&gt;FEATURE_FLAG_NAMES&lt;/code&gt; became the per-zone &lt;code&gt;useComputedStyleForRects&lt;/code&gt; option.&lt;/li&gt;
&lt;li&gt;Drag handles are attachments: &lt;code&gt;{@attach dragHandle}&lt;/code&gt; inside a &lt;code&gt;dragHandleZone&lt;/code&gt;. &lt;code&gt;dragDisabled&lt;/code&gt; applies to that zone&amp;#39;s handles only.&lt;/li&gt;
&lt;li&gt;Types: the public generics take &lt;code&gt;T extends object&lt;/code&gt;, so interfaces work as item types, and &lt;code&gt;transformDraggedElement&lt;/code&gt; receives the zone&amp;#39;s item type. &lt;code&gt;DndEventInfo&lt;/code&gt; takes the item type, and &lt;code&gt;info.id&lt;/code&gt; is inferred from the item&amp;#39;s &lt;code&gt;id&lt;/code&gt; field (&lt;code&gt;unknown&lt;/code&gt; for items without one, as with a custom &lt;code&gt;idKey&lt;/code&gt;) instead of typed &lt;code&gt;string&lt;/code&gt;. &lt;code&gt;Item&lt;/code&gt; is &lt;code&gt;Record&amp;lt;string, unknown&amp;gt;&lt;/code&gt; instead of &lt;code&gt;Record&amp;lt;string, any&amp;gt;&lt;/code&gt;, so code that leaves the item type out, such as &lt;code&gt;(e: DndEvent) =&amp;gt; e.items[0].name&lt;/code&gt;, no longer compiles: pass the item type. &lt;code&gt;DndZoneAttributes&lt;/code&gt; is removed.&lt;/li&gt;
&lt;li&gt;Requires &lt;code&gt;svelte&lt;/code&gt; &lt;code&gt;^5.32&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

Patch Changes

- &lt;p&gt;&lt;code&gt;configure&lt;/code&gt; now checks every key and value before applying any, so a call that throws no longer leaves some settings changed.&lt;/p&gt;

- &lt;p&gt;A zone created on an element during the drop animation of a drag from the previous zone on it no longer receives that drag&amp;#39;s finalize event or loses its registration when the drop ends.&lt;/p&gt;

- &lt;p&gt;A handle zone created again on the same element now takes over the handles of the zone it replaces.&lt;/p&gt;

- &lt;p&gt;&lt;code&gt;info.id&lt;/code&gt; is inferred from an optional &lt;code&gt;id&lt;/code&gt; field too.&lt;/p&gt;

- &lt;p&gt;A zone nested in an element marked with the shadow item hint is now set up once the hint is removed. Before, the dropped item&amp;#39;s nested zone stayed dead after the drop (#7).&lt;/p&gt;

- &lt;p&gt;A zone created with a different &lt;code&gt;type&lt;/code&gt; on an element during the drop animation of a drag from the previous zone on it no longer leaves the old type registered, which kept &lt;code&gt;configure({ idKey })&lt;/code&gt; throwing and broke the next drag of that type.&lt;/p&gt;</content>
	</entry>
</feed>