svecosystem / runed

Magical utilities for your Svelte applications (WIP)
https://runed.dev
MIT License
387 stars 21 forks source link

Suggestion: deprecate activeElement #100

Closed ollema closed 1 month ago

ollema commented 1 month ago

Describe the feature in detail (code, mocks, or screenshots encouraged)

I suggest to deprecate and/or remove the activeElement utility and instead refer to the now builtin activeElement binding on <svelte:document>.

Alternatively, the activeElement could be rewritten to reuse the new builtin binding if you would like to keep it.

What type of pull request would this be?

Enhancement

Provide relevant links or additional information.

https://github.com/sveltejs/svelte/pull/11879

TGlide commented 1 month ago

Runed is meant to work outside of Svelte components as well, so we'll keep the utility, but a note in the docs would be helpful.