Releases: vuejs/vuex
v3.1.1
Features
- Support for debugging Vuex in a NativeScript application with the standalone Vue Devtools app (#1404)
- New ES modules build for browser (#1533): vuex.esm.browser.js and vuex.esm.browser.min.js
Improvements
- Improved jsdelivr support (#1496)
Fixed
v3.1.0
v3.0.1
v3.0.0
Breaking Changes
This major release only breaks backwards compatibility if you use TypeScript.
-
TypeScript type declarations have been updated to be compatible with Vue core 2.5+ and no longer work with 2.4 and below.
-
All type declarations are now exported using ES-style exports, and must be imported using ES modules syntax:
import { Store } from 'vuex'
v2.5.0
New
-
store.registerModule
can now be called while preserving current state if the module is already registered, by passing a 3rd argument as{ preserveState: true }
. Useful in server-side rendering. -
New method:
store.subscribeAction()
- similar tostore.subscribe
, but for actions instead. -
Namespaced modules can now also register global actions using the following syntax:
const module = { actions: { rootAction: { root: true, handler: () => {} } } }
-
The
createLogger
function now also accepts alogger
option, allowing the user to provide a custom implementation of theconsole
object to be used when logging.
v2.4.1
v2.4.0
New
-
New helper method
createNamespacedHelpers
: a helper-generator that generates namespacedmapXXX
helpers for you:const { mapState, mapActions } = createNamespacedHelpers('some/nested/module') // everything generated by mapState and mapActions are bound to the module.
See docs for more info.
Misc
- Various typing and assertion improvements.