huntabyte / svelte-toolbelt

Shared utilities used in the various libraries I maintain.
MIT License
24 stars 1 forks source link

breaking: value -> current #5

Closed huntabyte closed 3 months ago

huntabyte commented 3 months ago

After using these utilities heavily in the Bits UI rewrite for Svelte 5, I often find myself having value properties that I want to box, resulting in situations like select.value.value which makes it easy to forget to add the last .value and just looks unpleasant.

This also aligns this project with how Runed handles boxed state, accessing with .current.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 0be416d140ed356cd9c9073cc7b224dae9cd2698

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | svelte-toolbelt | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR