Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removes the vuex store dependency from the project after successfully migrating all store modules to pinia.
I also accumulated all the related changelog items into one big changelog.
Summary
All store modules have been migrated to a pinia store module. Please see the linked issue down below for a list of all migrated stores and how to use them now.
There are a number of things that have been removed and/or moved into pinia composables instead:
Globals:
store
and$store
variables have been removed.ConfigurationManager
has been removed. The config now sits inside the configuration store.App framework:
announceStore
has been removed. There is no need for apps to announce stores to the runtime. If you need to use a store in your app, simply create a pinia store module and use it.announceExtensions
has been removed. The proper way for an app to register file extensions is via theextensions
property inside theappInfo
object.requestStore
has been removed. There is no need to request specific stores. All stores thatweb-pkg
provides can be imported and accessed via their composables.enabled
callback as well as thename
callback of theAppNavigationItem
no longer have thecapabilities
parameter.store
param of theClassicApplicationScript
has been removed.Composables:
useStore
has been removed. Use the pinia for the store you want to use instead.useAccessToken
has been removed. It now sits inside the auth store.usePublicLinkContext
has been removed. It now sits inside the auth store.usePublicLinkPassword
has been removed. It now sits inside the auth store.usePublicLinkToken
has been removed. It now sits inside the auth store.useUserContext
has been removed. It now sits inside the auth store.useConfigurationManager
has been removed. The config now sits inside the configuration store.use...Capability
composables have been removed. Capablities now sit inside the capability store.For store specific changes please see the linked issue and PRs down below.
#10212 (modal store)
#10240 (user store)
#10307 (removal of dynamic nav items)
#10309 (messages store)
#10316 (spaces store)
#10323 (auth store)
#10326 (remove left sidebar state from store)
#10329 (register nav items via extension registry)
#10331 (app store)
#10336 (configuration store)
#10338 (remove searched files from store)
#10341 (clipboard store)
#10346 (remove external app from store)
#10349 (remove
highlightedFile
from store)#10362 (shares store)
#10363 (remove file versions from vuex files store module)
#10368 (resources store)
Related Issue
Types of changes