Releases: feathersjs-ecosystem/feathers-vuex
Fix compatibility with latest @vue/composition-api
This release brings the composition-api features inline with the latest breaking changes to the @vue/composition-api
package. The breaking change is in the useFind
and useGet
utilities. The lazy
option has been replaced by the immediate
option.
Migration
- If you are manually using
lazy: true
anywhere, replace it withimmediate: false
. - Remember that the change to composition-api requires you to set
{ immediate: true }
in the options, where that used to be the default.
https://github.com/vuejs/composition-api/releases/tag/v0.6.0
🐜 Fix duplicate queries performed with useGet utility
The useGet
Composition API utility was running multiple queries when both an id
and params
were passed. This update turns on lazy mode by default and performs a single query during setup. This makes it so a single query runs at startup and subsequent queries run when either the params or id change.
🐜 Fix bug where haveLoaded is always false for local
This fixes the useFind
Vue Composition API utility. The haveLoaded
property will now always be set to true
when local: true
is enabled in the options. This will allow UIs controlling local pagination to be coded the same as non-local ones. Thanks to @amoghpalnitkar for identifying the bug.
🎁 Fix bug with queries containing special `$` operators, Support Nuxt Universal Mode
This release contains small fixes but makes huge improvements to feathers-vuex.
Find Getter Now Support Special Query Operators
- #479: The
find
getter should now properly return results for queries containing the special$
operators, like$or
,$and
, and$in
, and maybe others. Thanks to @J3m5 for the PR!
Support Nuxt Universal Mode
- #478: This release adds Stateless SSR Improvements to better support Nuxt Universal Mode. Thanks to @nakedgun for the great PR!
Documentation Updates
- #477: Documentation has been added for the advanced
handleEvents
functionality that was released this week. Thanks to @hamiltoes for the feature and the new docs! - #481: Cleans up inconsistencies in the
useFind
Vue Composition API docs. Thanks to @amoghpalnitkar for the PR!
🐜 Vue Plugin will now auto-register the FeathersVuexInputWrapper
The FeathersVuexInputWrapper
wasn't getting auto-registered by the Vue Plugin. This releases fixes that issue. It also adds a note to the docs for Quasar users, who may no longer require to use transpileDependencies
if their app's dependencies are all up to date.
🎁 Specify Auth Params and Handle Complex Events
AKA, the @hamiltoes release, because this release includes three well-tested PRs from @hamiltoes.
🎁 New Features
- #476 Handle Complex Events: Model-layer events have gained some additional smarts, now supporting an array tuple syntax in additional to the regular dispatched model object. Using the tuple syntax allows returning a tuple [affectsStore, dataToDispatch] where affectsStore behaves exactly as it does now (can be truthy), and dataToDispatch is the data to dispatch to actions. To preserve current functionality and not make this a breaking change, if an array is not returned from the handler, the value is used for affectsStore and the original item is dispatched. Thank you @hamiltoes for the great PR and tests!
- #474 Allow Passing Auth Params: You can now pass a params object to the Auth plugin's
authenticate
method. Thank you @hamiltoes for the great PR and tests!
🐜 handleEvents
Bug Fix
This release also includes one bug fix surrounding the handleEvents
options for makeServicePlugin. After a regression a couple of patch releases ago, the handleEvents
methods weren't even running. Thanks to @s3ns3i and @J3m5for reporting and reviewing the bug, and finally @hamiltoes for the PR to fix it.
Better check for ref in find getter
Fixes a bug where an error would occur for null
values being passed as params
to the find getter.
Fix FeathersVuexPagination currentPage when there are no pages
When there are no pages loaded, the currentPage is now 0
instead of 1
.
🎁 Improved temp clone management & four bug fixes 🐜
Includes the following fixes:
- #459: Temp clone management
- #462: Fix: Auth module responseHandler modifying state outside of mutation
- #467: fix issue #466 (Bug: FeathersVuexFind component)
- #468: fix(utils): GetId - Check idField first - Fix #463
Thanks to @J3m5, @Barbapapazes, & @hamiltoes for their "commit"ment. ;)
🐜 Bug fixes & Tidy Ups
This release addresses a few bugs and cleans up the codebase a bit.
- Fixes an issue with service name comparison in the auth responseHandler (by @JorgenVatle): #452
- Code cleanup, bug fixes, and better windows dev support by @fratzinger : #451
- Removes a double
await
that snuck into the codebase (by @J3m5): #454 - Cleans up the
get
getter with an early return & more (by @J3m5): #455 - Makes it possible to configure the
responseIdentityField
andentityIdField
for the auth plugin: #453
Many thanks to @JorgenVatle, @fratzinger, and @J3m5, @hiob10hiob for the reported bugs and fixes.