Skip to content

Commit a7c61c2

Browse files
committed
Merge branch 'main' into mjames/UW-34662
2 parents 65d616f + 7b024d8 commit a7c61c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3906
-4684
lines changed

.circleci/config.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "\U0001F41E Bug report"
2+
description: Create a report to help us improve
3+
labels: ['bug: pending triage']
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
Please note that Vuex is now in maintenance mode and we will only prioritize critical issues.
10+
Consider checking out [Pinia](https://pinia.vuejs.org/) for a more type-friendly and actively
11+
maintained alternative.
12+
- type: input
13+
id: version
14+
attributes:
15+
label: Version
16+
description: What version of Vuex is used in your project?
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: bug-description
21+
attributes:
22+
label: Describe the bug
23+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
24+
placeholder: Bug description
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: reproduction
29+
attributes:
30+
label: Reproduction
31+
description: Steps to reproduce the behavior.
32+
placeholder: Reproduction
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: expected
37+
attributes:
38+
label: Expected behavior
39+
description: A clear and concise description of what you expected to happen.
40+
placeholder: Expected behavior
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: additional-context
45+
attributes:
46+
label: Additional context
47+
description: Add any other context or screenshots about the bug report here.
48+
- type: checkboxes
49+
id: checkboxes
50+
attributes:
51+
label: Validations
52+
description: Before submitting the issue, please make sure you do the following
53+
options:
54+
- label: Follow our [Code of Conduct](https://vuejs.org/about/coc.html)
55+
required: true
56+
- label: Read the [docs](https://vuex.vuejs.org/).
57+
required: true
58+
- label: Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
59+
required: true

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'ci'
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
pull_request:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read # to fetch code (actions/checkout)
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set node version to 16
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: 16
23+
24+
- name: Install deps
25+
uses: bahmutov/npm-install@v1
26+
27+
- name: Run tests
28+
run: npm test

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# [4.1.0](https://github.com/vuejs/vuex/compare/v4.0.2...v4.1.0) (2022-10-14)
2+
3+
### Vue Core Version Requirement Change
4+
5+
**This release contains an important fix ([#1883](https://github.com/vuejs/vuex/pull/1883)) that relies on the `effectScope` API from Vue core, which is only available in Vue 3.2+.**
6+
7+
### Bug Fixes
8+
9+
* **build:** node deprecated warning in export module ([#2048](https://github.com/vuejs/vuex/issues/2048)) ([397e9fb](https://github.com/vuejs/vuex/commit/397e9fba45c8b4ec0c4a33d2578e34829bd348d7))
10+
* getters being destroyed on component destroy ([#1878](https://github.com/vuejs/vuex/issues/1878)) ([#1883](https://github.com/vuejs/vuex/issues/1883)) ([b2f851f](https://github.com/vuejs/vuex/commit/b2f851f427aa872d1e4f5a4774e07c4c69562789))
11+
12+
13+
114
## [4.0.2](https://github.com/vuejs/vuex/compare/v4.0.1...v4.0.2) (2021-06-17)
215

316
### Bug Fixes

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
# Vuex
22

3-
[![npm](https://img.shields.io/npm/v/vuex/next.svg)](https://npmjs.com/package/vuex)
4-
[![ci status](https://circleci.com/gh/vuejs/vuex/tree/dev.png?style=shield)](https://circleci.com/gh/vuejs/vuex)
3+
[![npm](https://img.shields.io/npm/v/vuex.svg)](https://npmjs.com/package/vuex)
4+
[![ci status](https://github.com/vuejs/vuex/actions/workflows/ci.yml/badge.svg)](https://github.com/vuejs/vuex/actions/workflows/ci.yml)
55

66
---
77

8-
:fire: **HEADS UP!** You're currently looking at Vuex 4 branch. If you're looking for Vuex 3, [please check out `dev` branch](https://github.com/vuejs/vuex).
8+
**Pinia is now the new default**
9+
10+
The official state management library for Vue has changed to [Pinia](https://pinia.vuejs.org). Pinia has almost the exact same or enhanced API as Vuex 5, described in [Vuex 5 RFC](https://github.com/vuejs/rfcs/pull/271). You could simply consider Pinia as Vuex 5 with a different name. Pinia also works with Vue 2.x as well.
11+
12+
Vuex 3 and 4 will still be maintained. However, it's unlikely to add new functionalities to it. Vuex and Pinia can be installed in the same project. If you're migrating existing Vuex app to Pinia, it might be a suitable option. However, if you're planning to start a new project, we highly recommend using Pinia instead.
913

1014
---
1115

1216
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official [devtools extension](https://github.com/vuejs/vue-devtools) to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
1317

14-
Learn more about Vuex at "[What is Vuex?](https://next.vuex.vuejs.org/)", or get started by looking into [full documentation](http://next.vuex.vuejs.org/).
18+
Learn more about Vuex at "[What is Vuex?](https://vuex.vuejs.org/)", or get started by looking into [full documentation](http://vuex.vuejs.org/).
1519

1620
## Documentation
1721

18-
To check out docs, visit [vuex.vuejs.org](https://next.vuex.vuejs.org/).
22+
To check out docs, visit [vuex.vuejs.org](https://vuex.vuejs.org/).
1923

2024
## Examples
2125

@@ -34,7 +38,7 @@ For questions and support please use the [Discord chat server](https://chat.vuej
3438

3539
## Issues
3640

37-
Please make sure to read the [Issue Reporting Checklist](https://github.com/vuejs/vuex/blob/dev/.github/contributing.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
41+
Please make sure to read the [Issue Reporting Checklist](https://github.com/vuejs/vuex/blob/main/.github/contributing.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
3842

3943
## Changelog
4044

@@ -46,7 +50,7 @@ For latest releases and announcements, follow on Twitter: [@vuejs](https://twitt
4650

4751
## Contribution
4852

49-
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/blob/dev/.github/contributing.md) before making a pull request.
53+
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/blob/main/.github/contributing.md) before making a pull request.
5054

5155
## License
5256

docs/.vitepress/config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
themeConfig: {
3737
repo: 'vuejs/vuex',
3838
docsDir: 'docs',
39-
docsBranch: '4.0',
39+
docsBranch: 'main',
4040

4141
editLinks: true,
4242

@@ -54,7 +54,7 @@ module.exports = {
5454
{
5555
text: 'v4.x',
5656
items: [
57-
{ text: 'v3.x', link: 'https://vuex.vuejs.org/' }
57+
{ text: 'v3.x', link: 'https://v3.vuex.vuejs.org/' }
5858
]
5959
}
6060
],
@@ -113,7 +113,7 @@ module.exports = {
113113
{
114114
text: 'v4.x',
115115
items: [
116-
{ text: 'v3.x', link: 'https://vuex.vuejs.org/zh' }
116+
{ text: 'v3.x', link: 'https://v3.vuex.vuejs.org/zh' }
117117
]
118118
}
119119
],
@@ -172,7 +172,7 @@ module.exports = {
172172
{
173173
text: 'v4.x',
174174
items: [
175-
{ text: 'v3.x', link: 'https://vuex.vuejs.org/ja' }
175+
{ text: 'v3.x', link: 'https://v3.vuex.vuejs.org/ja' }
176176
]
177177
}
178178
],
@@ -231,7 +231,7 @@ module.exports = {
231231
{
232232
text: 'v4.x',
233233
items: [
234-
{ text: 'v3.x', link: 'https://vuex.vuejs.org/ptbr/' }
234+
{ text: 'v3.x', link: 'https://v3.vuex.vuejs.org/ptbr/' }
235235
]
236236
}
237237
],

docs/guide/composition-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737

3838
## Accessing Mutations and Actions
3939

40-
When accessing mutations and actions, you can simply provide the `commit` and `dispatch` function inside the `setup` hook.
40+
When accessing mutations and actions, you can simply provide the `commit` and `dispatch` method inside the `setup` hook.
4141

4242
```js
4343
import { useStore } from 'vuex'

docs/guide/getters.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ If more than one component needs to make use of this, we have to either duplicat
1717
Vuex allows us to define "getters" in the store. You can think of them as computed properties for stores.
1818

1919
::: warning WARNING
20-
As of Vue 3.0, the getter's result is **not cached** as the computed property does. This is a known issue that requires Vue 3.1 to be released. You can learn more at [PR #1878](https://github.com/vuejs/vuex/pull/1883).
21-
:::
22-
23-
::: warning WARNING
24-
As of Vue 3.0, the getter's result is **not cached** as the computed property does. This is a known issue that requires Vue 3.2 to be released. You can learn more at [PR #1883](https://github.com/vuejs/vuex/pull/1883).
20+
As of Vue 3.0, the getter's result is **not cached** as the computed property does. This is a known issue that requires Vue 3.1 to be released. You can learn more at [PR #1878](https://github.com/vuejs/vuex/pull/1878).
2521
:::
2622

2723
Getters will receive the state as their 1st argument:

docs/guide/hot-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (module.hot) {
3838
}
3939
```
4040

41-
Checkout the [counter-hot example](https://github.com/vuejs/vuex/tree/dev/examples/counter-hot) to play with hot-reload.
41+
Checkout the [counter-hot example](https://github.com/vuejs/vuex/tree/main/examples/counter-hot) to play with hot-reload.
4242

4343
## Dynamic module hot reloading
4444

docs/guide/typescript-support.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ To do so, declare custom typings for Vue's `ComponentCustomProperties` by adding
1212

1313
```ts
1414
// vuex.d.ts
15-
import { ComponentCustomProperties } from 'vue'
1615
import { Store } from 'vuex'
1716

1817
declare module '@vue/runtime-core' {

0 commit comments

Comments
 (0)