-
Notifications
You must be signed in to change notification settings - Fork 206
Description
v4 introduces a lot of ** breaking changes, and there is no migration guide.
For now, I feel pissed off when migrating to v4, just listing some of the issues here:
- The advanced part in readme is not updated at all
-
The
ReplStore
class touseStore
composable is ABSOLUTELY not a small refactor, a lot of option now requiresref
proxies, and I don't think dropping support of constants can improve most users experience. Why should people being enforced to pass refs if they never want something change? VueUse always allow people to provide aMaybeRef
if possible -
A lot of APIs has been removed, like a ref
vueVersion
should be passed if users want to change vue version instead of calling any API calledsetVueVersion
. These changes should be listed clearly in release page or changelog instead of letting the user read through all codes and guess how to migrate themselves.
The related refactor is too huge to let people understand what's changing at a glance in web page.
- The behavior of import map seems to have undocumented breaking changes or bugs. When including a import map in an
serializedState
before, a empty import map works as expected. Now, I am getting errors like these:
There was an option called defaultVueRuntimeURL
and it seems to be removed in v4, and I doubt why the builtinImportMap
should have a empty default value instead of a importmap containing vue. I don't think why is there any need to let users force declare vue import. Please fix it or document the breaking change in release.
I hope @sxzz can done maintenance work nicely in the future without spoiling users' experience as this is a official package published under @vue
scope.