The focus for Vuex 4 is compatibility. Vuex 4 supports Vue 3, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code with Vue 3.
There are a few breaking changes described in a later section, so please check them out.
You can find basic usage with both Option and Composition API in the example directory.
It's still released under next tag in NPM package as same as Vue 3. We're planning to remove next tag once Vue 3 is ready to remove it.
There have been a lot of contribution to make Vuex 4 stable. Thank you all for your very much appreciated help. It wouldn't have been possible without this wonderful Vue community!
Whilst this is not technically a breaking change, you may still use the new Store(...) syntax, we recommend this approach to align with Vue 3 and Vue Router 4.
The focus for Vuex 4 is compatibility. Vuex 4 supports Vue 3, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code with Vue 3.
There are a few breaking changes described in a later section, so please check them out.
You can find basic usage with both Option and Composition API in the example directory.
It's still released under next tag in NPM package as same as Vue 3. We're planning to remove next tag once Vue 3 is ready to remove it.
There have been a lot of contribution to make Vuex 4 stable. Thank you all for your very much appreciated help. It wouldn't have been possible without this wonderful Vue community!
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [vuex](https://github.com/vuejs/vuex) from 3.6.2 to 4.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/vuejs/vuex/releases">vuex's releases</a>.</em></p>
<blockquote>
<h2>v4.0.2</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>devtools:</strong> fix no getters displayed on root module + better getters inspector (<a href="https://github.com/vuejs/vuex/issues/1986">#1986</a>) (<a href="https://github.com/vuejs/vuex/commit/bc20295331eb2bee40d6ae779d1ada31c542604c">bc20295</a>)</li>
<li><strong>build:</strong> cjs build failing due to <code>__VUE_PROD_DEVTOOLS__</code> defined (<a href="https://github.com/vuejs/vuex/issues/1991">#1991</a>) (<a href="https://github.com/vuejs/vuex/issues/1992">#1992</a>) (<a href="https://github.com/vuejs/vuex/commit/7151622d646968686546f1c4c80f7575c9b99176">7151622</a>)</li>
</ul>
<h2>v4.0.1</h2>
<h3>Features</h3>
<ul>
<li>dx: add devtools integration (<a href="https://github.com/vuejs/vuex/pull/1949">#1949</a>)</li>
</ul>
<h2>v4.0.0</h2>
<p>This is the official Vuex 4 release.</p>
<p>The focus for Vuex 4 is compatibility. Vuex 4 supports Vue 3, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code with Vue 3.</p>
<p>There are a few breaking changes described in a later section, so please check them out.</p>
<p>You can find basic usage with both Option and Composition API in the <code>example</code> directory.</p>
<p>It's still released under <code>next</code> tag in NPM package as same as Vue 3. We're planning to remove <code>next</code> tag once Vue 3 is ready to remove it.</p>
<p>There have been a lot of contribution to make Vuex 4 stable. Thank you all for your very much appreciated help. It wouldn't have been possible without this wonderful Vue community!</p>
<h2>Documentation</h2>
<p>To check out docs, visit <a href="https://next.vuex.vuejs.org/">next.vuex.vuejs.org</a>.</p>
<h2>Breaking changes</h2>
<h3>Installation process has changed</h3>
<p>To align with the new Vue 3 initialization process, the installation process of Vuex has changed.</p>
<p>To create a new store instance, users are now encouraged to use the newly introduced <code>createStore</code> function.</p>
<pre lang="js"><code>import { createStore } from 'vuex'
<p>export const store = createStore({
state() {
return {
count: 1
}
}
})
</code></pre></p>
<blockquote>
<p>Whilst this is not technically a breaking change, you may still use the <code>new Store(...)</code> syntax, we recommend this approach to align with Vue 3 and Vue Router 4.</p>
</blockquote>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/vuejs/vuex/blob/main/CHANGELOG.md">vuex's changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/vuejs/vuex/compare/v4.0.2...v4.1.0">4.1.0</a> (2022-10-14)</h1>
<h3>Vue Core Version Requirement Change</h3>
<p><strong>This release contains an important fix (<a href="https://github.com/vuejs/vuex/pull/1883">#1883</a>) that relies on the <code>effectScope</code> API from Vue core, which is only available in Vue 3.2+.</strong></p>
<h3>Bug Fixes</h3>
<ul>
<li><strong>build:</strong> node deprecated warning in export module (<a href="https://github.com/vuejs/vuex/issues/2048">#2048</a>) (<a href="https://github.com/vuejs/vuex/commit/397e9fba45c8b4ec0c4a33d2578e34829bd348d7">397e9fb</a>)</li>
<li>getters being destroyed on component destroy (<a href="https://github.com/vuejs/vuex/issues/1878">#1878</a>) (<a href="https://github.com/vuejs/vuex/issues/1883">#1883</a>) (<a href="https://github.com/vuejs/vuex/commit/b2f851f427aa872d1e4f5a4774e07c4c69562789">b2f851f</a>)</li>
</ul>
<h2><a href="https://github.com/vuejs/vuex/compare/v4.0.1...v4.0.2">4.0.2</a> (2021-06-17)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>devtools:</strong> fix no getters displayed on root module + better getters inspector (<a href="https://github.com/vuejs/vuex/issues/1986">#1986</a>) (<a href="https://github.com/vuejs/vuex/commit/bc20295331eb2bee40d6ae779d1ada31c542604c">bc20295</a>)</li>
<li><strong>build:</strong> cjs build failing due to <code>__VUE_PROD_DEVTOOLS__</code> defined (<a href="https://github.com/vuejs/vuex/issues/1991">#1991</a>) (<a href="https://github.com/vuejs/vuex/issues/1992">#1992</a>) (<a href="https://github.com/vuejs/vuex/commit/7151622d646968686546f1c4c80f7575c9b99176">7151622</a>)</li>
</ul>
<h2><a href="https://github.com/vuejs/vuex/compare/v4.0.0...v4.0.1">4.0.1</a> (2021-05-24)</h2>
<h3>Features</h3>
<ul>
<li>dx: add devtools integration (<a href="https://github.com/vuejs/vuex/pull/1949">#1949</a>)</li>
</ul>
<h1><a href="https://github.com/vuejs/vuex/compare/v4.0.0-rc.2...v4.0.0">4.0.0</a> (2021-02-02)</h1>
<p>This is the official Vuex 4 release.</p>
<p>The focus for Vuex 4 is compatibility. Vuex 4 supports Vue 3, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code with Vue 3.</p>
<p>There are a few breaking changes described in a later section, so please check them out.</p>
<p>You can find basic usage with both Option and Composition API in the <code>example</code> directory.</p>
<p>It's still released under <code>next</code> tag in NPM package as same as Vue 3. We're planning to remove <code>next</code> tag once Vue 3 is ready to remove it.</p>
<p>There have been a lot of contribution to make Vuex 4 stable. Thank you all for your very much appreciated help. It wouldn't have been possible without this wonderful Vue community!</p>
<h2>Documentation</h2>
<p>To check out docs, visit <a href="https://next.vuex.vuejs.org/">next.vuex.vuejs.org</a>.</p>
<h2>Breaking changes</h2>
<h3>Installation process has changed</h3>
<p>To align with the new Vue 3 initialization process, the installation process of Vuex has changed.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/vuejs/vuex/commit/d56222431b91e1927459f7f463e74bb43158ef2b"><code>d562224</code></a> release: v4.1.0</li>
<li><a href="https://github.com/vuejs/vuex/commit/01f87f0c3d59d0796a2535719dfa8328d1af390d"><code>01f87f0</code></a> docs(zh): update zh docs from en docs (<a href="https://github.com/vuejs/vuex/issues/2150">#2150</a>)</li>
<li><a href="https://github.com/vuejs/vuex/commit/75d20ece2d360689ba59150a6856eed069330be1"><code>75d20ec</code></a> chore: delete unused import of shopping-cart example (<a href="https://github.com/vuejs/vuex/issues/2156">#2156</a>)</li>
<li><a href="https://github.com/vuejs/vuex/commit/e0ea5b81b8c6ff5a7354df13648816df3c1158d7"><code>e0ea5b8</code></a> docs: add note about Pinia becoming the new default</li>
<li><a href="https://github.com/vuejs/vuex/commit/7651d506e473886984eab625797477d63bc69981"><code>7651d50</code></a> docs(zh): wrong link to v3 docs in zh docs (<a href="https://github.com/vuejs/vuex/issues/2129">#2129</a>)</li>
<li><a href="https://github.com/vuejs/vuex/commit/dea4e36dd0885456dcadf08a9bb3cef97ee725b0"><code>dea4e36</code></a> docs: fix broken link to v3 docs (<a href="https://github.com/vuejs/vuex/issues/2128">#2128</a>)</li>
<li><a href="https://github.com/vuejs/vuex/commit/747c4883e76ca33109574c0a1d181ef4dbd46832"><code>747c488</code></a> chore: remove next references [ci skip]</li>
<li><a href="https://github.com/vuejs/vuex/commit/29483f48377b03fcb0733dab1eb09ee2cd1ab4d0"><code>29483f4</code></a> docs: update v3 links</li>
<li><a href="https://github.com/vuejs/vuex/commit/a03dc6a350f0b8554c4fde3ee980f24ee99d0f61"><code>a03dc6a</code></a> chore: update branch references</li>
<li><a href="https://github.com/vuejs/vuex/commit/eb52dfa1d5f4120149e7a126fd118311a745e43d"><code>eb52dfa</code></a> docs: fix heading level (<a href="https://github.com/vuejs/vuex/issues/2075">#2075</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/vuejs/vuex/compare/v3.6.2...v4.1.0">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot rebase` will rebase this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
Dependabot won't notify anymore about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
Dependabot won't notify anymore about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an [`ignore` condition](https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#ignore) with the desired `update_types` to your config file.
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps vuex from 3.6.2 to 4.1.0.
Release notes
Sourced from vuex's releases.
... (truncated)
Changelog
Sourced from vuex's changelog.
... (truncated)
Commits
d562224release: v4.1.001f87f0docs(zh): update zh docs from en docs (#2150)75d20ecchore: delete unused import of shopping-cart example (#2156)e0ea5b8docs: add note about Pinia becoming the new default7651d50docs(zh): wrong link to v3 docs in zh docs (#2129)dea4e36docs: fix broken link to v3 docs (#2128)747c488chore: remove next references [ci skip]29483f4docs: update v3 linksa03dc6achore: update branch referenceseb52dfadocs: fix heading level (#2075)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflictsDependabot won't notify anymore about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an
ignorecondition with the desiredupdate_typesto your config file.Pull request closed