repo stringlengths 5 53 | pr_number int32 1 321k | task_type stringclasses 2
values | issue_text stringlengths 0 81.2k | pr_title stringlengths 1 319 | pr_body stringlengths 0 105k | base_sha stringlengths 40 40 | head_sha stringlengths 40 40 | gold_diff stringlengths 0 202M | changed_files listlengths 0 100 | review_threads listlengths 0 100 | test_patch stringlengths 0 23.4M | merged bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
vuejs/vuex | 1,883 | comment_to_fix | fix: fix getters being destroyed on component destroy (#1878) | Shouldn't this be inside of the `scope.run` too? | 3c56e9a7c714c2cb39c72c13f13bf7c684d2bb08 | 0501bcad2aaac2479e828a6aa512b2f79c8ddc7f | diff --git a/src/store-util.js b/src/store-util.js
index cea5d8b02..e3ba18609 100644
--- a/src/store-util.js
+++ b/src/store-util.js
@@ -1,4 +1,4 @@
-import { reactive, watch } from 'vue'
+import { reactive, computed, watch, effectScope } from 'vue'
import { forEachValue, isObject, isPromise, assert, partial } from '.... | [
"src/store-util.js"
] | [
{
"comment": "Shouldn't this be inside of the `scope.run` too?",
"path": "src/store-util.js",
"hunk": "@@ -29,30 +29,42 @@ export function resetStore (store, hot) {\n \n export function resetStoreState (store, state, hot) {\n const oldState = store._state\n+ const oldScope = store._scope\n \n // bi... | true | ||
vuejs/vuex | 2,150 | issue_to_patch | docs(zh): update zh docs from en docs | based 7651d506e473886984eab625797477d63bc69981 commit, I updated zh docs from en docs | 7651d506e473886984eab625797477d63bc69981 | 48fe73b2dcb420e00c884c390749911be3a37643 | diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md
index 9a7e7343e..67a35c09c 100644
--- a/docs/zh/api/index.md
+++ b/docs/zh/api/index.md
@@ -40,9 +40,7 @@ sidebar: auto
- 类型: `{ [type: string]: Function }`
- 在 store 上注册 action。处理函数总是接受 `context` 作为第一个参数,`payload` 作为第二个参数(可选)。
-
- `context` 对象包含以下属性:
+ 在... | [
"docs/zh/api/index.md",
"docs/zh/guide/actions.md",
"docs/zh/guide/forms.md",
"docs/zh/guide/getters.md",
"docs/zh/guide/modules.md",
"docs/zh/guide/mutations.md",
"docs/zh/guide/plugins.md",
"docs/zh/guide/testing.md",
"docs/zh/guide/typescript-support.md"
] | [
{
"comment": "不建议修改英文版任何内容",
"path": "docs/guide/mutations.md",
"hunk": "@@ -96,8 +96,7 @@ import { SOME_MUTATION } from './mutation-types'\n const store = createStore({\n state: { ... },\n mutations: {\n- // we can use the ES2015 computed property name feature\n- // to use a constant as the f... | true | ||
vuejs/vuex | 2,150 | comment_to_fix | docs(zh): update zh docs from en docs | ```suggestion
`subscribe` 方法将返回一个 `unsubscribe` 函数,当不再需要订阅时应该调用该函数。例如,你可能会订阅一个 Vuex 模块,当你取消注册该模块时取消订阅。或者你可能从一个 Vue 组件内部调用 `subscribe`,然后不久就会销毁该组件。在这些情况下,你应该记得手动取消订阅。
``` | 7651d506e473886984eab625797477d63bc69981 | 48fe73b2dcb420e00c884c390749911be3a37643 | diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md
index 9a7e7343e..67a35c09c 100644
--- a/docs/zh/api/index.md
+++ b/docs/zh/api/index.md
@@ -40,9 +40,7 @@ sidebar: auto
- 类型: `{ [type: string]: Function }`
- 在 store 上注册 action。处理函数总是接受 `context` 作为第一个参数,`payload` 作为第二个参数(可选)。
-
- `context` 对象包含以下属性:
+ 在... | [
"docs/zh/api/index.md"
] | [
{
"comment": "```suggestion\r\n `subscribe` 方法将返回一个 `unsubscribe` 函数,当不再需要订阅时应该调用该函数。例如,你可能会订阅一个 Vuex 模块,当你取消注册该模块时取消订阅。或者你可能从一个 Vue 组件内部调用 `subscribe`,然后不久就会销毁该组件。在这些情况下,你应该记得手动取消订阅。\r\n```",
"path": "docs/zh/api/index.md",
"hunk": "@@ -174,58 +172,66 @@ sidebar: auto\n \n ### watch\n \n-- `watch(fn: F... | true | ||
vuejs/vuex | 2,150 | comment_to_fix | docs(zh): update zh docs from en docs | 应保持开头大写,这里不是特指 API 名称 | 7651d506e473886984eab625797477d63bc69981 | 48fe73b2dcb420e00c884c390749911be3a37643 | diff --git a/docs/zh/guide/getters.md b/docs/zh/guide/getters.md
index cc016797a..daf790e20 100644
--- a/docs/zh/guide/getters.md
+++ b/docs/zh/guide/getters.md
@@ -17,7 +17,7 @@ computed: {
Vuex 允许我们在 store 中定义“getter”(可以认为是 store 的计算属性)。
::: warning 注意
-从 Vue 3.0 开始,getter 的结果不再像计算属性一样会被缓存起来。这是一个已知的问题,将会在 3.2 版本中... | [
"docs/zh/guide/getters.md"
] | [
{
"comment": "应保持开头大写,这里不是特指 API 名称",
"path": "docs/zh/guide/getters.md",
"hunk": "@@ -40,7 +40,7 @@ const store = createStore({\n \n ## 通过属性访问\n \n-Getter 会暴露为 `store.getters` 对象,你可以以属性的形式访问这些值:\n+getter 会暴露为 `store.getters` 对象,你可以以属性的形式访问这些值:",
"resolving_sha": "48fe73b2dcb420e00c884c390749911be3a... | true | ||
vuejs/vuex | 2,150 | comment_to_fix | docs(zh): update zh docs from en docs | 保持单数 | 7651d506e473886984eab625797477d63bc69981 | 48fe73b2dcb420e00c884c390749911be3a37643 | diff --git a/docs/zh/guide/mutations.md b/docs/zh/guide/mutations.md
index a3393336b..9a8a7b6fb 100644
--- a/docs/zh/guide/mutations.md
+++ b/docs/zh/guide/mutations.md
@@ -36,6 +36,7 @@ mutations: {
}
}
```
+
``` js
store.commit('increment', 10)
```
@@ -95,7 +96,8 @@ import { SOME_MUTATION } from './mutation-t... | [
"docs/zh/guide/mutations.md"
] | [
{
"comment": "保持单数",
"path": "docs/zh/guide/mutations.md",
"hunk": "@@ -1,4 +1,4 @@\n-# Mutation\n+# Mutations",
"resolving_sha": "48fe73b2dcb420e00c884c390749911be3a37643",
"resolving_diff": "diff --git a/docs/zh/guide/mutations.md b/docs/zh/guide/mutations.md\nindex a3393336b..9a8a7b6fb 100644... | true | ||
vuejs/vuex | 2,150 | comment_to_fix | docs(zh): update zh docs from en docs | 保持单数 | 7651d506e473886984eab625797477d63bc69981 | 48fe73b2dcb420e00c884c390749911be3a37643 | diff --git a/docs/zh/guide/testing.md b/docs/zh/guide/testing.md
index 11f5a6ee8..c2ea95327 100644
--- a/docs/zh/guide/testing.md
+++ b/docs/zh/guide/testing.md
@@ -119,7 +119,7 @@ const testAction = (action, args, state, expectedMutations, done) => {
describe('actions', () => {
it('getAllProducts', done => {
- ... | [
"docs/zh/guide/testing.md"
] | [
{
"comment": "保持单数",
"path": "docs/zh/guide/testing.md",
"hunk": "@@ -119,15 +119,15 @@ const testAction = (action, args, state, expectedMutations, done) => {\n \n describe('actions', () => {\n it('getAllProducts', done => {\n- testAction(actions.getAllProducts, [], {}, [\n+ testAction(actions.g... | true | ||
vuejs/vuex | 2,156 | issue_to_patch | style: delete unused variable of shopping-cart | import { currency } from './currency'
unused | e0ea5b81b8c6ff5a7354df13648816df3c1158d7 | ecd63b6aea19beed2008120c998f7b871bd34823 | diff --git a/examples/composition/shopping-cart/app.js b/examples/composition/shopping-cart/app.js
index 23ad058d7..4f6a7b8a4 100644
--- a/examples/composition/shopping-cart/app.js
+++ b/examples/composition/shopping-cart/app.js
@@ -1,7 +1,6 @@
import { createApp } from 'vue'
import App from './components/App.vue'
i... | [
"examples/composition/shopping-cart/app.js"
] | [] | true | ||
vuejs/vuex | 2,129 | issue_to_patch | fix: wrong link | 747c4883e76ca33109574c0a1d181ef4dbd46832 | 7b10acd8af4127f56bb563d0bb05784e2a351be2 | diff --git a/docs/zh/index.md b/docs/zh/index.md
index c43a4f671..a9113faa5 100644
--- a/docs/zh/index.md
+++ b/docs/zh/index.md
@@ -1,7 +1,7 @@
# Vuex 是什么?
::: tip 提示
-这是与 Vue 3 匹配的 Vuex 4 的文档。如果您在找与 Vue 2 匹配的 Vuex 3 的文档,[请在这里查看](https://vuex.vuejs.org/)。
+这是与 Vue 3 匹配的 Vuex 4 的文档。如果您在找与 Vue 2 匹配的 Vuex 3 的文档,[请在这里... | [
"docs/zh/index.md"
] | [] | true | |||
vuejs/vuex | 2,128 | issue_to_patch | fix: wrong link | 747c4883e76ca33109574c0a1d181ef4dbd46832 | 315ecee3aa43eddec14ef8a930b02f9fbd7d2b7e | diff --git a/docs/index.md b/docs/index.md
index 35f007735..23ea35e60 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,7 +1,7 @@
# What is Vuex?
::: tip NOTE
-This is the docs for Vuex 4, which works with Vue 3. If you're looking for docs for Vuex 3, which works with Vue 2, [please check it out here](https://vu... | [
"docs/index.md"
] | [] | true | |||
vuejs/vuex | 2,086 | issue_to_patch | typo type | 80b77429ff8a581a0f41aaea5c9574d7c5500efe | 82e8f2e90b5c5c786d29cead9e91c65809437717 | diff --git a/src/helpers.js b/src/helpers.js
index 0b2aac7bc..ddd1bcc65 100644
--- a/src/helpers.js
+++ b/src/helpers.js
@@ -140,7 +140,7 @@ export const createNamespacedHelpers = (namespace) => ({
* normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
* normalizeMap({a: 1, b: 2... | [
"src/helpers.js"
] | [] | true | |||
vuejs/vuex | 1,869 | issue_to_patch | docs(typo): fix typos in comment | comment didn't update with the code. | 130606e49c03318f211500754ba140a91b589743 | a47731c595e6d59e187df83a35e8fc705c1b73e9 | diff --git a/src/store.js b/src/store.js
index 8cbf13516..33c3fa783 100644
--- a/src/store.js
+++ b/src/store.js
@@ -289,7 +289,7 @@ function resetStoreState (store, state, hot) {
const computedCache = {}
forEachValue(wrappedGetters, (fn, key) => {
// use computed to leverage its lazy-caching mechanism
- ... | [
"src/store.js"
] | [] | true | ||
vuejs/vuex | 1,922 | issue_to_patch | fix: eslint warning | 13cd6abc5223954c6af229c2ef89c57365473e91 | 50e9832d120abcc0e67467afada66eadfc24f00c | diff --git a/examples/shopping-cart/api/shop.js b/examples/shopping-cart/api/shop.js
index 09d422d8c..708a5b77b 100644
--- a/examples/shopping-cart/api/shop.js
+++ b/examples/shopping-cart/api/shop.js
@@ -2,9 +2,9 @@
* Mocking client-server processing
*/
const _products = [
- {"id": 1, "title": "iPad 4 Mini", "pr... | [
"examples/shopping-cart/api/shop.js",
"examples/webpack.config.js"
] | [] | true | |||
vuejs/vuex | 1,964 | issue_to_patch | docs: update cnd url of vuex 4.0 | 452fd5fb866946cf67b975691f86ac37d363668e | c7d52f043f290895deca905d7315d43d08ad388d | diff --git a/docs/installation.md b/docs/installation.md
index deecccd97..4c1b36b43 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -2,10 +2,10 @@
## Direct Download / CDN
-[https://unpkg.com/vuex](https://unpkg.com/vuex)
+[https://unpkg.com/vuex@4](https://unpkg.com/vuex@4)
<!--email_off-->
-[U... | [
"docs/installation.md",
"docs/ptbr/installation.md"
] | [] | true | |||
vuejs/vuex | 1,965 | issue_to_patch | docs: add zh docs for vuex 4.0 | add zh docs for Vuex 4.0, most parts are based on docs of 3.0 | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js
index dec5aa1f8..dbfc8a059 100644
--- a/docs/.vitepress/config.js
+++ b/docs/.vitepress/config.js
@@ -9,6 +9,11 @@ module.exports = {
title: 'Vuex',
description: 'Centralized State Management for Vue.js'
},
+ '/zh/': {
+ lang:... | [
"docs/.vitepress/config.js",
"docs/zh/api/index.md",
"docs/zh/guide/actions.md",
"docs/zh/guide/composition-api.md",
"docs/zh/guide/forms.md",
"docs/zh/guide/getters.md",
"docs/zh/guide/hot-reload.md",
"docs/zh/guide/index.md",
"docs/zh/guide/migrating-to-4-0-from-3-x.md",
"docs/zh/guide/modules.m... | [
{
"comment": "```suggestion\r\n 创建一个 store 实例。\r\n```",
"path": "docs/zh/api/index.md",
"hunk": "@@ -0,0 +1,392 @@\n+---\n+sidebar: auto\n+---\n+\n+# API 参考\n+\n+## Store\n+\n+### createStore\n+\n+- `createStore<S>(options: StoreOptions<S>): Store<S>`\n+\n+ Creates a new store.",
"resolving_sha": ... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
创建一个 store 实例。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md
new file mode 100644
index 000000000..9a7e7343e
--- /dev/null
+++ b/docs/zh/api/index.md
@@ -0,0 +1,392 @@
+---
+sidebar: auto
+---
+
+# API 参考
+
+## Store
+
+### createStore
+
+- `createStore<S>(options: StoreOptions<S>): Store<S>`
+
+ 创建一个 store 实例。
+
+ ```js... | [
"docs/zh/api/index.md"
] | [
{
"comment": "```suggestion\r\n 创建一个 store 实例。\r\n```",
"path": "docs/zh/api/index.md",
"hunk": "@@ -0,0 +1,392 @@\n+---\n+sidebar: auto\n+---\n+\n+# API 参考\n+\n+## Store\n+\n+### createStore\n+\n+- `createStore<S>(options: StoreOptions<S>): Store<S>`\n+\n+ Creates a new store.",
"resolving_sha": ... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
{ text: '从 3.x 迁移到 4.0', link: '/zh/guide/migrating-to-4-0-from-3-x' }
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js
index dec5aa1f8..dbfc8a059 100644
--- a/docs/.vitepress/config.js
+++ b/docs/.vitepress/config.js
@@ -9,6 +9,11 @@ module.exports = {
title: 'Vuex',
description: 'Centralized State Management for Vue.js'
},
+ '/zh/': {
+ lang:... | [
"docs/.vitepress/config.js"
] | [
{
"comment": "```suggestion\r\n { text: '从 3.x 迁移到 4.0', link: '/zh/guide/migrating-to-4-0-from-3-x' }\r\n```",
"path": "docs/.vitepress/config.js",
"hunk": "@@ -147,6 +152,65 @@ module.exports = {\n ]\n }\n ]\n+ },\n+\n+ '/zh/': {\n+ label: '简... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
TypeScript 用户可以使用 injection key 来检索已经定义了类型的 store。为了使其工作,在将 store 实例安装到 Vue 应用中时,必须定义 injection key 并将其与 store 一起传递给 Vue 应用。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md
new file mode 100644
index 000000000..9a7e7343e
--- /dev/null
+++ b/docs/zh/api/index.md
@@ -0,0 +1,392 @@
+---
+sidebar: auto
+---
+
+# API 参考
+
+## Store
+
+### createStore
+
+- `createStore<S>(options: StoreOptions<S>): Store<S>`
+
+ 创建一个 store 实例。
+
+ ```js... | [
"docs/zh/api/index.md"
] | [
{
"comment": "```suggestion\r\n TypeScript 用户可以使用 injection key 来检索已经定义了类型的 store。为了使其工作,在将 store 实例安装到 Vue 应用中时,必须定义 injection key 并将其与 store 一起传递给 Vue 应用。\r\n```",
"path": "docs/zh/api/index.md",
"hunk": "@@ -0,0 +1,392 @@\n+---\n+sidebar: auto\n+---\n+\n+# API 参考\n+\n+## Store\n+\n+### createStore\n... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
最后,将 key 传递给 `useStore` 方法以获取指定类型的 store 实例。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md
new file mode 100644
index 000000000..9a7e7343e
--- /dev/null
+++ b/docs/zh/api/index.md
@@ -0,0 +1,392 @@
+---
+sidebar: auto
+---
+
+# API 参考
+
+## Store
+
+### createStore
+
+- `createStore<S>(options: StoreOptions<S>): Store<S>`
+
+ 创建一个 store 实例。
+
+ ```js... | [
"docs/zh/api/index.md"
] | [
{
"comment": "```suggestion\r\n 最后,将 key 传递给 `useStore` 方法以获取指定类型的 store 实例。\r\n```",
"path": "docs/zh/api/index.md",
"hunk": "@@ -0,0 +1,392 @@\n+---\n+sidebar: auto\n+---\n+\n+# API 参考\n+\n+## Store\n+\n+### createStore\n+\n+- `createStore<S>(options: StoreOptions<S>): Store<S>`\n+\n+ Creates a new ... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
store.state.count // 类型为 number
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/api/index.md b/docs/zh/api/index.md
new file mode 100644
index 000000000..9a7e7343e
--- /dev/null
+++ b/docs/zh/api/index.md
@@ -0,0 +1,392 @@
+---
+sidebar: auto
+---
+
+# API 参考
+
+## Store
+
+### createStore
+
+- `createStore<S>(options: StoreOptions<S>): Store<S>`
+
+ 创建一个 store 实例。
+
+ ```js... | [
"docs/zh/api/index.md"
] | [
{
"comment": "```suggestion\r\n store.state.count // 类型为 number\r\n```",
"path": "docs/zh/api/index.md",
"hunk": "@@ -0,0 +1,392 @@\n+---\n+sidebar: auto\n+---\n+\n+# API 参考\n+\n+## Store\n+\n+### createStore\n+\n+- `createStore<S>(options: StoreOptions<S>): Store<S>`\n+\n+ Creates a new store.\n+... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
实践中,我们会经常用到 ES2015 的[参数解构](https://github.com/lukehoban/es6features#destructuring)来简化代码(特别是我们需要调用 `commit` 很多次的时候):
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/actions.md b/docs/zh/guide/actions.md
new file mode 100644
index 000000000..ed58c30cb
--- /dev/null
+++ b/docs/zh/guide/actions.md
@@ -0,0 +1,179 @@
+# Action
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/c6ggR3cG" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a... | [
"docs/zh/guide/actions.md"
] | [
{
"comment": "```suggestion\r\n实践中,我们会经常用到 ES2015 的[参数解构](https://github.com/lukehoban/es6features#destructuring)来简化代码(特别是我们需要调用 `commit` 很多次的时候):\r\n```",
"path": "docs/zh/guide/actions.md",
"hunk": "@@ -0,0 +1,179 @@\n+# Action\n+\n+<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/c6ggR3... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。\r\n```",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过在 `setup` 钩子函数中调用 `useStore` 方法访问 store,这与在组件中使用选项式API访问 `this.$store`是等效的。",
"resolv... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
// 在 computed 函数中访问 state
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n // 在 computed 函数中访问 state\r\n```",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过在 `setup` 钩子函数中调用 `useStore` 方法访问 store,这与在组件中使用选项式API访问 `this.$store`是等效的。\n+\n+```js\n+import { useStore } from 'vuex'\n+\n+export default {... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
// 在 computed 函数中访问 getter
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n // 在 computed 函数中访问 getter\r\n```",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过在 `setup` 钩子函数中调用 `useStore` 方法访问 store,这与在组件中使用选项式API访问 `this.$store`是等效的。\n+\n+```js\n+import { useStore } from 'vuex'\n+\n+export default ... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
// 使用 mutation
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n // 使用 mutation\r\n```",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过在 `setup` 钩子函数中调用 `useStore` 方法访问 store,这与在组件中使用选项式API访问 `this.$store`是等效的。\n+\n+```js\n+import { useStore } from 'vuex'\n+\n+export default {\n+ setup ... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
要使用 mutation 和 action 时,只需要在 `setup` 钩子函数中调用 `commit` 和 `dispatch` 函数。
```
稍微 rephrase 了一下。 | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n要使用 mutation 和 action 时,只需要在 `setup` 钩子函数中调用 `commit` 和 `dispatch` 函数。\r\n```\r\n\r\n稍微 rephrase 了一下。",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过在 `setup` 钩子函数中调用 `useStore` 方法访问 store,这与在组件中使用选项式API访问 `this.$store`是等效的。\n+\... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
// 使用 action
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n // 使用 action\r\n```",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过在 `setup` 钩子函数中调用 `useStore` 方法访问 store,这与在组件中使用选项式API访问 `this.$store`是等效的。\n+\n+```js\n+import { useStore } from 'vuex'\n+\n+export default {\n+ setup ()... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/cqKRgEC9" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/forms.md b/docs/zh/guide/forms.md
new file mode 100644
index 000000000..919095f78
--- /dev/null
+++ b/docs/zh/guide/forms.md
@@ -0,0 +1,62 @@
+# 表单处理
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/cqKRgEC9" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
+... | [
"docs/zh/guide/forms.md"
] | [
{
"comment": "```suggestion\r\n<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/cqKRgEC9\" target=\"_blank\" rel=\"noopener noreferrer\">在 Scrimba 上尝试这节课</a></div>\r\n```",
"path": "docs/zh/guide/forms.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 表单处理\n+\n+<div class=\"scrimba\"><a href=\"https://sc... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
从 Vue 3.0 开始,getter 的结果不再像计算属性一样会被缓存起来。这是一个已知的问题,将会在 3.1 版本中修复。详情请看 [PR #1878](https://github.com/vuejs/vuex/pull/1883)。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/getters.md b/docs/zh/guide/getters.md
new file mode 100644
index 000000000..10af41eba
--- /dev/null
+++ b/docs/zh/guide/getters.md
@@ -0,0 +1,122 @@
+# Getter
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/c2Be7TB" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a>... | [
"docs/zh/guide/getters.md"
] | [
{
"comment": "```suggestion\r\n从 Vue 3.0 开始,getter 的结果不再像计算属性一样会被缓存起来。这是一个已知的问题,将会在 3.1 版本中修复。详情请看 [PR #1878](https://github.com/vuejs/vuex/pull/1883)。\r\n```",
"path": "docs/zh/guide/getters.md",
"hunk": "@@ -0,0 +1,122 @@\n+# Getter\n+\n+<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/c... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/c2Be7TB" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/getters.md b/docs/zh/guide/getters.md
new file mode 100644
index 000000000..10af41eba
--- /dev/null
+++ b/docs/zh/guide/getters.md
@@ -0,0 +1,122 @@
+# Getter
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/c2Be7TB" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a>... | [
"docs/zh/guide/getters.md"
] | [
{
"comment": "```suggestion\r\n<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/c2Be7TB\" target=\"_blank\" rel=\"noopener noreferrer\">在 Scrimba 上尝试这节课</a></div>\r\n```",
"path": "docs/zh/guide/getters.md",
"hunk": "@@ -0,0 +1,122 @@\n+# Getter\n+\n+<div class=\"scrimba\"><a href=\"https:... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
// 创建一个新的 store 实例
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/index.md b/docs/zh/guide/index.md
new file mode 100644
index 000000000..c2b457c15
--- /dev/null
+++ b/docs/zh/guide/index.md
@@ -0,0 +1,66 @@
+# 开始
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/cMPa2Uk" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
+
+每... | [
"docs/zh/guide/index.md"
] | [
{
"comment": "```suggestion\r\n// 创建一个新的 store 实例\r\n```",
"path": "docs/zh/guide/index.md",
"hunk": "@@ -0,0 +1,66 @@\n+# 开始\n+\n+<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/cMPa2Uk\" target=\"_blank\" rel=\"noopener noreferrer\">在 Scrimba 上尝试这节课</a></div>\n+\n+每一个 Vuex 应用的核心就是 store... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
// 将 store 实例作为插件安装
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/index.md b/docs/zh/guide/index.md
new file mode 100644
index 000000000..c2b457c15
--- /dev/null
+++ b/docs/zh/guide/index.md
@@ -0,0 +1,66 @@
+# 开始
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/cMPa2Uk" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
+
+每... | [
"docs/zh/guide/index.md"
] | [
{
"comment": "```suggestion\r\n// 将 store 实例作为插件安装\r\n```",
"path": "docs/zh/guide/index.md",
"hunk": "@@ -0,0 +1,66 @@\n+# 开始\n+\n+<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/cMPa2Uk\" target=\"_blank\" rel=\"noopener noreferrer\">在 Scrimba 上尝试这节课</a></div>\n+\n+每一个 Vuex 应用的核心就是 stor... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
现在,你可以通过 `store.state` 来获取状态对象,并通过 `store.commit` 方法触发状态变更:
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/index.md b/docs/zh/guide/index.md
new file mode 100644
index 000000000..c2b457c15
--- /dev/null
+++ b/docs/zh/guide/index.md
@@ -0,0 +1,66 @@
+# 开始
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/cMPa2Uk" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a></div>
+
+每... | [
"docs/zh/guide/index.md"
] | [
{
"comment": "```suggestion\r\n现在,你可以通过 `store.state` 来获取状态对象,并通过 `store.commit` 方法触发状态变更:\r\n```",
"path": "docs/zh/guide/index.md",
"hunk": "@@ -0,0 +1,66 @@\n+# 开始\n+\n+<div class=\"scrimba\"><a href=\"https://scrimba.com/p/pnyzgAP/cMPa2Uk\" target=\"_blank\" rel=\"noopener noreferrer\">在 Scrimba 上尝试... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
- [打包产物已经与 Vue 3 配套](#打包产物已经与-Vue-3-配套)
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/migrating-to-4-0-from-3-x.md b/docs/zh/guide/migrating-to-4-0-from-3-x.md
new file mode 100644
index 000000000..774eb8eae
--- /dev/null
+++ b/docs/zh/guide/migrating-to-4-0-from-3-x.md
@@ -0,0 +1,116 @@
+# 从 3.x 迁移到 4.0
+
+几乎所有的 Vuex 4 API 都与 Vuex 3 保持不变。但是,仍有一些非兼容性变更需要注意。
+
+- [非兼容性变更](#非兼容性... | [
"docs/zh/guide/migrating-to-4-0-from-3-x.md"
] | [
{
"comment": "```suggestion\r\n - [打包产物已经与 Vue 3 配套](#打包产物已经与-Vue-3-配套)\r\n```",
"path": "docs/zh/guide/migrating-to-4-0-from-3-x.md",
"hunk": "@@ -0,0 +1,116 @@\n+# 从 3.x 迁移到 4.0\n+\n+几乎所有的 Vuex 4 API都与 Vuex 3 保持不变。但是,仍有一些重大变更需要注意。\n+\n+- [重大变更](#重大变更)\n+ - [安装过程](#安装过程)\n+ - [TypeScript 支持](#TypeSc... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | 少了一段
> ::: tip NOTE
> This is the docs for Vuex 4, which works with Vue 3. If you're looking for docs for Vuex 3, which works with Vue 2, [please check it out here](https://vuex.vuejs.org/).
> ::: | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/index.md b/docs/zh/index.md
new file mode 100644
index 000000000..6a4740fd0
--- /dev/null
+++ b/docs/zh/index.md
@@ -0,0 +1,71 @@
+# Vuex 是什么?
+
+::: tip 提示
+这是与 Vue 3 匹配的 Vuex 4 的文档。如果您在找与 Vue 2 匹配的 Vuex 3 的文档,[请在这里查看](https://vuex.vuejs.org/)。
+:::
+
+Vuex 是一个专为 Vue.js 应用程序开发的**状态管理模式 + 库**。它采用集中... | [
"docs/zh/index.md"
] | [
{
"comment": "少了一段\r\n\r\n> ::: tip NOTE\r\n> This is the docs for Vuex 4, which works with Vue 3. If you're looking for docs for Vuex 3, which works with Vue 2, [please check it out here](https://vuex.vuejs.org/).\r\n> :::",
"path": "docs/zh/index.md",
"hunk": "@@ -0,0 +1,67 @@\n+# Vuex 是什么?\n+",
"... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
[Unpkg.com](https://unpkg.com) 提供了基于 npm 的 CDN 链接。以上的链接会一直指向 npm 上发布的最新版本。您也可以通过 `https://unpkg.com/vuex@4.0.0/dist/vuex.global.js` 这样的方式指定特定的版本。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/installation.md b/docs/zh/installation.md
new file mode 100644
index 000000000..ddf3cb4b1
--- /dev/null
+++ b/docs/zh/installation.md
@@ -0,0 +1,64 @@
+# 安装
+
+### 直接下载 / CDN 引用
+
+[https://unpkg.com/vuex@4](https://unpkg.com/vuex@4)
+
+<!--email_off-->
+[Unpkg.com](https://unpkg.com) 提供了基于 npm 的 C... | [
"docs/zh/installation.md"
] | [
{
"comment": "```suggestion\r\n[Unpkg.com](https://unpkg.com) 提供了基于 npm 的 CDN 链接。以上的链接会一直指向 npm 上发布的最新版本。您也可以通过 `https://unpkg.com/vuex@4.0.0/dist/vuex.global.js` 这样的方式指定特定的版本。\r\n```",
"path": "docs/zh/installation.md",
"hunk": "@@ -0,0 +1,64 @@\n+# 安装\n+\n+### 直接下载 / CDN 引用\n+\n+[https://unpkg.com/vue... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
### npm
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/installation.md b/docs/zh/installation.md
new file mode 100644
index 000000000..ddf3cb4b1
--- /dev/null
+++ b/docs/zh/installation.md
@@ -0,0 +1,64 @@
+# 安装
+
+### 直接下载 / CDN 引用
+
+[https://unpkg.com/vuex@4](https://unpkg.com/vuex@4)
+
+<!--email_off-->
+[Unpkg.com](https://unpkg.com) 提供了基于 npm 的 C... | [
"docs/zh/installation.md"
] | [
{
"comment": "```suggestion\r\n### npm\r\n```",
"path": "docs/zh/installation.md",
"hunk": "@@ -0,0 +1,64 @@\n+# 安装\n+\n+### 直接下载 / CDN 引用\n+\n+[https://unpkg.com/vuex@4](https://unpkg.com/vuex@4)\n+\n+<!--email_off-->\n+[Unpkg.com](https://unpkg.com) 提供了基于 NPM 的 CDN 链接。以上的链接会一直指向 NPM 上发布的最新版本。您也可以通过 `h... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
查看[组合式 API 案例](https://github.com/vuejs/vuex/tree/4.0/examples/composition),以便了解使用 Vuex 和 Vue 的组合式 API 的应用案例。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/composition-api.md b/docs/zh/guide/composition-api.md
new file mode 100644
index 000000000..cf5b83fea
--- /dev/null
+++ b/docs/zh/guide/composition-api.md
@@ -0,0 +1,62 @@
+# 组合式API
+
+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `this.$store` 是等效的。
+
+```js
+import { useS... | [
"docs/zh/guide/composition-api.md"
] | [
{
"comment": "```suggestion\r\n查看[组合式 API 案例](https://github.com/vuejs/vuex/tree/4.0/examples/composition),以便了解使用 Vuex 和 Vue 的组合式 API 的应用案例。\r\n```",
"path": "docs/zh/guide/composition-api.md",
"hunk": "@@ -0,0 +1,62 @@\n+# 组合式API\n+\n+可以通过调用 `useStore` 函数,来在 `setup` 钩子函数中访问 store。这与在组件中使用选项式 API 访问 `th... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
在[组合式 API](./composition-api) 章节可以了解到更多。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/migrating-to-4-0-from-3-x.md b/docs/zh/guide/migrating-to-4-0-from-3-x.md
new file mode 100644
index 000000000..774eb8eae
--- /dev/null
+++ b/docs/zh/guide/migrating-to-4-0-from-3-x.md
@@ -0,0 +1,116 @@
+# 从 3.x 迁移到 4.0
+
+几乎所有的 Vuex 4 API 都与 Vuex 3 保持不变。但是,仍有一些非兼容性变更需要注意。
+
+- [非兼容性变更](#非兼容性... | [
"docs/zh/guide/migrating-to-4-0-from-3-x.md"
] | [
{
"comment": "```suggestion\r\n在[组合式 API](./composition-api) 章节可以了解到更多。\r\n```",
"path": "docs/zh/guide/migrating-to-4-0-from-3-x.md",
"hunk": "@@ -0,0 +1,116 @@\n+# 从 3.x 迁移到 4.0\n+\n+几乎所有的 Vuex 4 API 都与 Vuex 3 保持不变。但是,仍有一些非兼容性变更需要注意。\n+\n+- [非兼容性变更](#非兼容性变更)\n+ - [安装过程](#安装过程)\n+ - [TypeScript 支持](#... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
默认情况下,模块内部的 action 和 mutation 仍然是注册在**全局命名空间**的——这样使得多个模块能够对同一个 action 或 mutation 作出响应。Getter 同样也默认注册在全局命名空间,但是目前这并非出于功能上的目的(仅仅是维持现状来避免非兼容性变更)。必须注意,不要在不同的、无命名空间的模块中定义两个不同的 getter 从而导致错误。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/modules.md b/docs/zh/guide/modules.md
new file mode 100644
index 000000000..1f9a3cd4e
--- /dev/null
+++ b/docs/zh/guide/modules.md
@@ -0,0 +1,331 @@
+# Module
+
+<div class="scrimba"><a href="https://scrimba.com/p/pnyzgAP/cqKK4psq" target="_blank" rel="noopener noreferrer">在 Scrimba 上尝试这节课</a... | [
"docs/zh/guide/modules.md"
] | [
{
"comment": "```suggestion\r\n默认情况下,模块内部的 action 和 mutation 仍然是注册在**全局命名空间**的——这样使得多个模块能够对同一个 action 或 mutation 作出响应。Getter 同样也默认注册在全局命名空间,但是目前这并非出于功能上的目的(仅仅是维持现状来避免非兼容性变更)。必须注意,不要在不同的、无命名空间的模块中定义两个不同的 getter 从而导致错误。\r\n```",
"path": "docs/zh/guide/modules.md",
"hunk": "@@ -0,0 +1,331 @@\n+# Module\n+\... | true | ||
vuejs/vuex | 1,965 | comment_to_fix | docs: add zh docs for vuex 4.0 | ```suggestion
Vuex 提供了类型声明,因此可以使用 TypeScript 定义 store,并且不需要任何特殊的 TypeScript 配置。请遵循 [Vue 的基本 TypeScript 配置](https://v3.cn.vuejs.org/guide/typescript-support.html)来配置项目。
``` | 452fd5fb866946cf67b975691f86ac37d363668e | ba6e180e82c5ae11c5fd3587c87a837024b6856d | diff --git a/docs/zh/guide/typescript-support.md b/docs/zh/guide/typescript-support.md
new file mode 100644
index 000000000..f8cc501bd
--- /dev/null
+++ b/docs/zh/guide/typescript-support.md
@@ -0,0 +1,135 @@
+# TypeScript 支持
+
+Vuex 提供了类型声明,因此可以使用 TypeScript 定义 store,并且不需要任何特殊的 TypeScript 配置。请遵循 [Vue 的基本 TypeScript 配置... | [
"docs/zh/guide/typescript-support.md"
] | [
{
"comment": "```suggestion\r\nVuex 提供了类型声明,因此可以使用 TypeScript 定义 store,并且不需要任何特殊的 TypeScript 配置。请遵循 [Vue 的基本 TypeScript 配置](https://v3.cn.vuejs.org/guide/typescript-support.html)来配置项目。\r\n```",
"path": "docs/zh/guide/typescript-support.md",
"hunk": "@@ -0,0 +1,135 @@\n+# TypeScript 支持\n+\n+Vuex 提供了类型声明,... | true | ||
vuejs/vuex | 2,023 | issue_to_patch | remove redundant warning in guide/getters.md | - remove the redundant `warning` introduced by #2000
- change the Vue version for `ja` and `zh` docs | b18718b45777d4f029c7cb7d4ddb1b4c08ea4b9f | 3f7f92f7efbc97722760467c8880d00cd72bfe72 | diff --git a/docs/guide/getters.md b/docs/guide/getters.md
index f2242af88..8c0ca59bd 100644
--- a/docs/guide/getters.md
+++ b/docs/guide/getters.md
@@ -16,10 +16,6 @@ If more than one component needs to make use of this, we have to either duplicat
Vuex allows us to define "getters" in the store. You can think of th... | [
"docs/guide/getters.md",
"docs/ja/guide/getters.md",
"docs/zh/guide/getters.md"
] | [] | true | ||
vuejs/vuex | 2,074 | issue_to_patch | docs: fix title level | Correct the sub-title level to make sure expand the first level title, which keep the same style with EN doc.
the current style of zh and ja doc:

: bump url-parse from 1.5.1 to 1.5.3 | Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/unshiftio/url-parse/commit/ad444931666a30bad11472d89a216461cf16cae2"><code>ad44493</code></a> [dist] 1.5.3</li>
<li><a href="https://github.com/unshiftio/url-parse/com... | dba4c84d61a85394a3819e9552fd9a22609ea571 | c5a9ef9021ea6435f05925f266c853c2558451c3 | diff --git a/yarn.lock b/yarn.lock
index 4dac7fda2..bd8861b80 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11208,9 +11208,9 @@ url-parse-lax@^3.0.0:
prepend-http "^2.0.0"
url-parse@^1.4.3:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 2,043 | issue_to_patch | docs: Change `funciton` to `method` | `commit` and `dispatch` are two methods of store
const store = useStore()
increment: () => store.commit('increment'), | 3c56e9a7c714c2cb39c72c13f13bf7c684d2bb08 | f0e1aa0eadd92071225480d045e62439554c0ecb | diff --git a/docs/guide/composition-api.md b/docs/guide/composition-api.md
index 4ad444de8..6e0cb027e 100644
--- a/docs/guide/composition-api.md
+++ b/docs/guide/composition-api.md
@@ -37,7 +37,7 @@ export default {
## Accessing Mutations and Actions
-When accessing mutations and actions, you can simply provide th... | [
"docs/guide/composition-api.md"
] | [] | true | ||
vuejs/vuex | 2,057 | issue_to_patch | build(deps): bump tmpl from 1.0.4 to 1.0.5 | Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/daaku/nodejs-tmpl/commits/v1.0.5">compare view</a></li>
</ul>
</details>
<br />
[: bump prismjs from 1.23.0 to 1.25.0 | Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.25.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/PrismJS/prism/releases">prismjs's releases</a>.</em></p>
<blockquote>
<h2>v1.25.0</h2>
<p>Release 1.25.0</p>
<h2>v1.24.1</h2>
<p>Release 1.24.1</p>
<h2>v1.2... | 329828dba41dec59a6880e69a32f9da36c62f3bd | 958e11b77d371718cf7c61ad1d3fd2faa34b5d9d | diff --git a/yarn.lock b/yarn.lock
index 04fd9df2b..f84872cdc 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3574,15 +3574,6 @@ cli-width@^3.0.0:
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6"
integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RK... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 2,037 | issue_to_patch | build(deps): bump path-parse from 1.0.6 to 1.0.7 | Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/jbgutierrez/path-parse/commits/v1.0.7">compare view</a></li>
</ul>
</details>
<br />
[ => {
+ doneTodos: (state) => {
return state.todos.fil... | [
"docs/zh/guide/getters.md"
] | [] | true | ||
vuejs/vuex | 2,022 | issue_to_patch | docs(installation): remove promise polyfill info | Because Vue 3 doesn't support IE11 anyway, I thought we can remove the info regarding a `Promise` polyfill in the docs ☺️
I've removed the paragraph in all available languages | b18718b45777d4f029c7cb7d4ddb1b4c08ea4b9f | f4a586b98059ac69efd61d443a47272c01198bd4 | diff --git a/docs/installation.md b/docs/installation.md
index 4c1b36b43..bb2e3e537 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -27,31 +27,6 @@ npm install vuex@next --save
yarn add vuex@next --save
```
-## Promise
-
-Vuex requires [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScrip... | [
"docs/installation.md",
"docs/ja/installation.md",
"docs/ptbr/installation.md",
"docs/zh/installation.md"
] | [] | true | ||
vuejs/vuex | 2,018 | issue_to_patch | docs(getters): fix pull request URL | 7aa056126a5823d9278c6b6f65b004df75417eb1 | 73a743edeacd90266fddee42aadcf6c08d0cd740 | diff --git a/docs/guide/getters.md b/docs/guide/getters.md
index 8c0ca59bd..00dba7b70 100644
--- a/docs/guide/getters.md
+++ b/docs/guide/getters.md
@@ -17,7 +17,7 @@ If more than one component needs to make use of this, we have to either duplicat
Vuex allows us to define "getters" in the store. You can think of them ... | [
"docs/guide/getters.md"
] | [] | true | |||
vuejs/vuex | 2,000 | issue_to_patch | update warning version | This is a known issue that requires Vue 3.1 to be released. chang to This is a known issue that requires Vue 3.2 to be released. | 7151622d646968686546f1c4c80f7575c9b99176 | 309bcb7f2946e2e52a4016914cf5d21e343650ee | diff --git a/docs/guide/getters.md b/docs/guide/getters.md
index 981901efc..6930d3929 100644
--- a/docs/guide/getters.md
+++ b/docs/guide/getters.md
@@ -16,6 +16,10 @@ If more than one component needs to make use of this, we have to either duplicat
Vuex allows us to define "getters" in the store. You can think of th... | [
"docs/guide/getters.md"
] | [
{
"comment": "```suggestion\r\nAs 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).\r\n```",
"path": "docs/guide/getters.md",
"hunk": "@@ ... | true | ||
vuejs/vuex | 2,000 | comment_to_fix | update warning version | ```suggestion
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).
``` | 7151622d646968686546f1c4c80f7575c9b99176 | 309bcb7f2946e2e52a4016914cf5d21e343650ee | diff --git a/docs/guide/getters.md b/docs/guide/getters.md
index 981901efc..6930d3929 100644
--- a/docs/guide/getters.md
+++ b/docs/guide/getters.md
@@ -16,6 +16,10 @@ If more than one component needs to make use of this, we have to either duplicat
Vuex allows us to define "getters" in the store. You can think of th... | [
"docs/guide/getters.md"
] | [
{
"comment": "```suggestion\r\nAs 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).\r\n```",
"path": "docs/guide/getters.md",
"hunk": "@@ ... | true | ||
vuejs/vuex | 1,999 | issue_to_patch | build(deps): bump ws from 6.2.1 to 6.2.2 | Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/websockets/ws/commits">compare view</a></li>
</ul>
</details>
<br />
[: fix __VUE_PROD_DEVTOOLS__ defined in cjs build (#1991) | fix #1991
I don't know if I changed it right
But I think __VUE_PROD_DEVTOOLS__ should be replaced to 'false' in the cjs mode.
There should be some small errors here. | 7744e74f50ff41fc7084466728f1a033610f43b5 | 177ceeca9be62406b729b5d9015a8f50524084e7 | diff --git a/rollup.config.js b/rollup.config.js
index 1ff829389..30b9df0bb 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -27,6 +27,7 @@ function createEntries() {
function createEntry(config) {
const isGlobalBuild = config.format === 'iife'
const isBundlerBuild = config.format !== 'iife' && !config.br... | [
"rollup.config.js"
] | [
{
"comment": "I wonder if it should be `const isBundlerESMBuild = config.format === 'es'`\r\notherwise I cannot build and told me `format is not defined`",
"path": "rollup.config.js",
"hunk": "@@ -27,6 +27,7 @@ function createEntries() {\n function createEntry(config) {\n const isGlobalBuild = config.... | true | ||
vuejs/vuex | 1,989 | issue_to_patch | build(deps): bump dns-packet from 1.3.1 to 1.3.4 | Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/mafintosh/dns-packet/commit/ebdf849da5dc0d96836e87628349776c623c5be7"><code>ebdf849</code></a> 1.3.4</li>
<li><a href="https://github.com/mafintosh/dns-packet/commit... | abc32cabf9a8ee981eb1d36aa7f1f8951c88c044 | a196664f8f028ab8ff5f187e092aca6629fb773e | diff --git a/yarn.lock b/yarn.lock
index 8aacfa3f5..34084b3a1 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4602,9 +4602,9 @@ dns-equal@^1.0.0:
integrity sha1-s55/HabrCnW6nBcySzR1PEfgZU0=
dns-packet@^1.3.1:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.1.tgz#12aa426981075be... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,987 | issue_to_patch | build(deps): bump browserslist from 4.14.0 to 4.16.6 | Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.0 to 4.16.6.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md">browserslist's changelog</a>.</em></p>
<blockquote>
<h2>4.16.6</h2>
<ul>
<li>Fixed <code>npm-... | abc32cabf9a8ee981eb1d36aa7f1f8951c88c044 | 3d6cc4fef660059b265210f8fa9ff85ae51b53ec | diff --git a/yarn.lock b/yarn.lock
index 8aacfa3f5..7b83654d8 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3165,26 +3165,16 @@ browserify-zlib@^0.2.0:
dependencies:
pako "~1.0.5"
-browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.8.5:
- version "4.14.0"
- resolved "https://registry.yarnpkg.com/browse... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,980 | issue_to_patch | docs(ja): add Japanese docs for vuex 4.0 | This PR adds Japanese docs for vuex v4.0.
## TODO
### Translation
- [x] docs/ja/api/index.md
- [x] docs/ja/guide/actions.md
- [x] docs/ja/guide/composition-api.md
- [x] docs/ja/guide/forms.md
- [x] docs/ja/guide/getters.md
- [x] docs/ja/guide/hot-reload.md
- [x] docs/ja/guide/index.md
- [x] docs/ja/guide/mi... | db8c476f76b6b6de97ec072650e30de9dcfc4a93 | 6ddbdd4c676299c51a027184a70e6ed384ec9de1 | diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js
index dbfc8a059..300264a62 100644
--- a/docs/.vitepress/config.js
+++ b/docs/.vitepress/config.js
@@ -14,6 +14,11 @@ module.exports = {
title: 'Vuex',
description: 'Vue.js 的中心化状态管理方案'
},
+ '/ja/': {
+ lang: 'ja',
+ title:... | [
"docs/.vitepress/config.js",
"docs/ja/api/index.md",
"docs/ja/guide/actions.md",
"docs/ja/guide/composition-api.md",
"docs/ja/guide/forms.md",
"docs/ja/guide/getters.md",
"docs/ja/guide/hot-reload.md",
"docs/ja/guide/index.md",
"docs/ja/guide/migrating-to-4-0-from-3-x.md",
"docs/ja/guide/modules.m... | [] | true | ||
vuejs/vuex | 1,990 | issue_to_patch | Docs (pt-br): Update typescript-support.md store.js to store.ts | self-explanatory | 7744e74f50ff41fc7084466728f1a033610f43b5 | 340dcc0e6b5c5b270f0b1cca287e78033dc7fce3 | diff --git a/docs/ptbr/guide/typescript-support.md b/docs/ptbr/guide/typescript-support.md
index 49bd2c528..6fae7fd59 100644
--- a/docs/ptbr/guide/typescript-support.md
+++ b/docs/ptbr/guide/typescript-support.md
@@ -96,7 +96,7 @@ Por baixo dos panos, o Vuex instala o _store_ para a aplicação Vue usando o [P
Ter que i... | [
"docs/ptbr/guide/typescript-support.md"
] | [] | true | ||
vuejs/vuex | 1,986 | issue_to_patch | fix: no getters displayed on root module + better getters inspector | 7744e74f50ff41fc7084466728f1a033610f43b5 | 2186711519567badf148d58a07d756cf5889cb3e | diff --git a/src/plugins/devtool.js b/src/plugins/devtool.js
index f68bf6823..8d6237b14 100644
--- a/src/plugins/devtool.js
+++ b/src/plugins/devtool.js
@@ -59,7 +59,7 @@ export function addDevtools (app, store) {
makeLocalGetters(store, modulePath)
payload.state = formatStoreForInspectorState(
... | [
"src/plugins/devtool.js"
] | [] | true | |||
vuejs/vuex | 1,945 | issue_to_patch | build(deps): bump elliptic from 6.5.3 to 6.5.4 | Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/indutny/elliptic/commit/43ac7f230069bd1575e1e4a58394a512303ba803"><code>43ac7f2</code></a> 6.5.4</li>
<li><a href="https://github.com/indutny/elliptic/commit/f4bc72be11b0a... | 9039c2169634925682ffcb21c57f5df355e16ad1 | 84a9ca8b9edb5e6baa679e452bf5589e5b1c91a7 | diff --git a/yarn.lock b/yarn.lock
index 98fc08f15..45643b3e5 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2999,10 +2999,10 @@ bluebird@3.7.2, bluebird@^3.1.1, bluebird@^3.5.5:
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
integrity sha512-XpNj6GDQzdf... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,979 | issue_to_patch | build(deps): bump url-parse from 1.4.7 to 1.5.1 | Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.1.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/unshiftio/url-parse/commit/eb6d9f51e395b7e47bf2594e457d541db21c713b"><code>eb6d9f5</code></a> [dist] 1.5.1</li>
<li><a href="https://github.com/unshiftio/url-parse/com... | 4f4f14631d2e7a3234fedfff94f7071ccc06b831 | f02dd586e4501e9f2a4022820850201a6584fb81 | diff --git a/yarn.lock b/yarn.lock
index 1c5c3241b..750f0de22 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11271,9 +11271,9 @@ url-parse-lax@^3.0.0:
prepend-http "^2.0.0"
url-parse@^1.4.3:
- version "1.4.7"
- resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.7.tgz#a8a83535e8c00a316e403a5db4ac1b9b... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,978 | issue_to_patch | build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 | Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md">hosted-git-info's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/npm/hosted-git-... | 4f4f14631d2e7a3234fedfff94f7071ccc06b831 | 1a9ea3a8e6a4ea5e21e91b105ea2ee3bbad9f2f1 | diff --git a/yarn.lock b/yarn.lock
index 1c5c3241b..4b38cd386 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6006,9 +6006,9 @@ hogan.js@^3.0.2:
nopt "1.0.10"
hosted-git-info@^2.1.4:
- version "2.8.8"
- resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e02624... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,977 | issue_to_patch | build(deps): bump handlebars from 4.7.6 to 4.7.7 | Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md">handlebars's changelog</a>.</em></p>
<blockquote>
<h2>v4.7.7 - February 15th, 2021</h2>
<ul>... | 4f4f14631d2e7a3234fedfff94f7071ccc06b831 | 2b7672d4d736615113ee957687f60ba3a0975a40 | diff --git a/yarn.lock b/yarn.lock
index 1c5c3241b..94b7573a8 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5862,9 +5862,9 @@ handle-thing@^2.0.0:
integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==
handlebars@^4.7.6:
- version "4.7.6"
- resolved "https://regis... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,976 | issue_to_patch | build(deps): bump lodash from 4.17.20 to 4.17.21 | Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/lodash/lodash/commit/f299b52f39486275a9e6483b60a410e06520c538"><code>f299b52</code></a> Bump to v4.17.21</li>
<li><a href="https://github.com/lodash/lodash/commit/c4847ebe7... | 044fd201d37a8f944b6c75b6ebe22f76671af671 | fdee2cdf80b6d41c38dd24dd20e447b5871e996d | diff --git a/yarn.lock b/yarn.lock
index 7231968f0..74a068ca4 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -7579,9 +7579,9 @@ lodash.uniq@^4.5.0:
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3, lodash@^4.17.5:
- version... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,971 | issue_to_patch | build(deps): bump ssri from 6.0.1 to 6.0.2 | Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md">ssri's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/zkat/ssri/compare/v6.0.1...v6.0.2">6.0.2</a> (2021-04-07)</... | 4f4f14631d2e7a3234fedfff94f7071ccc06b831 | 5e2449565681a36735c161ec2f52c6ae921cdcac | diff --git a/yarn.lock b/yarn.lock
index 1c5c3241b..7dc1f62c0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10413,9 +10413,9 @@ sshpk@^1.7.0:
tweetnacl "~0.14.0"
ssri@^6.0.1:
- version "6.0.1"
- resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8"
- integrity sh... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,940 | issue_to_patch | build(deps): bump prismjs from 1.21.0 to 1.23.0 | Bumps [prismjs](https://github.com/PrismJS/prism) from 1.21.0 to 1.23.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/PrismJS/prism/releases">prismjs's releases</a>.</em></p>
<blockquote>
<h2>v1.23.0</h2>
<h3>New components</h3>
<ul>
<li><strong>Apex</strong> (<a href="http... | 044fd201d37a8f944b6c75b6ebe22f76671af671 | 196ea04b86bd9ef0c5a2faed3ba6e2bf8ebf62d0 | diff --git a/yarn.lock b/yarn.lock
index 7231968f0..876198eb0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3590,9 +3590,9 @@ cli-width@^3.0.0:
integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==
clipboard@^2.0.0:
- version "2.0.6"
- resolved "https://registry.... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,949 | issue_to_patch | Vuex 4 devtools integration
The API for Vue Devtools 6.x is now documented [here](https://devtools.vuejs.org/plugin/api-reference.html).
I open this issue so we can keep track of the Vuex 4 integration.
- [x] Custom inspector with the module tree on the left & module state/getters on the right
- [x] Timeline la... | feat: setup devtools integration | Closes #1942 | c3944f33690aae47b7113edebbf13fffe01b9256 | 0fc1447ce2bb95e5cf8e5b1bdd4b43470e1b6197 | diff --git a/.babelrc b/.babelrc
index 1320b9a32..9d8eb6f14 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,3 +1,9 @@
{
- "presets": ["@babel/preset-env"]
+ "presets": [
+ ["@babel/preset-env", {
+ "exclude": [
+ "transform-regenerator"
+ ]
+ }]
+ ]
}
diff --git a/.eslintrc.json b/.eslintrc.json
... | [
".babelrc",
".eslintrc.json",
"examples/classic/shopping-cart/api/shop.js",
"examples/classic/shopping-cart/store/modules/cart.js",
"examples/classic/shopping-cart/store/modules/nested.js",
"examples/classic/shopping-cart/store/modules/products.js",
"package.json",
"rollup.config.js",
"src/plugins/d... | [
{
"comment": "Should we remove other than\r\n\r\n- `const COLOR_LIME_500 = 0x22d3ee`\r\n- `const COLOR_DARK = 0x666666`\r\n- `const COLOR_WHITE = 0xffffff`\r\n\r\nSince seems like we're not using them...?",
"path": "src/plugins/devtool.js",
"hunk": "@@ -1,26 +1,264 @@\n-const target = typeof window !== ... | true | |
vuejs/vuex | 1,967 | issue_to_patch | docs: [RU] Translation update | 96a265a345c76ec7d0f81a115aef74b7eda89452 | eb537a056d3ab95a0245989569b6ecfd54c4b999 | diff --git a/docs/ru/README.md b/docs/ru/README.md
index 00590087b..1183d95f8 100644
--- a/docs/ru/README.md
+++ b/docs/ru/README.md
@@ -1,5 +1,9 @@
# Что такое Vuex?
+:::tip Примечание
+Эта документация для Vuex 3, который работает с Vue 2. Документация для Vuex 4, который работает с Vue 3 [находится здесь](https:/... | [
"docs/ru/README.md",
"docs/ru/guide/README.md",
"docs/ru/guide/modules.md",
"docs/ru/installation.md"
] | [] | true | |||
vuejs/vuex | 1,962 | issue_to_patch | build(deps): bump y18n from 4.0.0 to 4.0.1 | Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yargs/y18n/blob/master/CHANGELOG.md">y18n's changelog</a>.</em></p>
<blockquote>
<h1>Change Log</h1>
<p>All notable changes to this project will be documented in this f... | 96a265a345c76ec7d0f81a115aef74b7eda89452 | a0dba715dee5df4f9a17fa78eac38f1dfbd2766f | diff --git a/yarn.lock b/yarn.lock
index 98fc08f15..1c5c3241b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11916,9 +11916,9 @@ xtend@^4.0.0, xtend@~4.0.1:
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
y18n@^4.0.0:
- version "4.0.0"
- resolved "https://re... | [
"yarn.lock"
] | [] | true | ||
vuejs/vuex | 1,933 | issue_to_patch | Clarify nested modules requirement for array in docs | fixes: #1781
Documents the nested modules requirement of being an array and not a string. | c3944f33690aae47b7113edebbf13fffe01b9256 | 1bc21fdd63995e2056ecee723f279487665493f9 | diff --git a/docs/guide/modules.md b/docs/guide/modules.md
index 27bafd03c..599405daa 100644
--- a/docs/guide/modules.md
+++ b/docs/guide/modules.md
@@ -312,7 +312,7 @@ Dynamic module registration makes it possible for other Vue plugins to also leve
You can also remove a dynamically registered module with `store.unr... | [
"docs/guide/modules.md"
] | [
{
"comment": "@bikingbadger could \"past\" be changed to \"passed\"?",
"path": "docs/guide/modules.md",
"hunk": "@@ -312,7 +312,7 @@ Dynamic module registration makes it possible for other Vue plugins to also leve\n \n You can also remove a dynamically registered module with `store.unregisterModule(modu... | true | ||
vuejs/vuex | 1,933 | comment_to_fix | Clarify nested modules requirement for array in docs | @bikingbadger could "past" be changed to "passed"? | c3944f33690aae47b7113edebbf13fffe01b9256 | 1bc21fdd63995e2056ecee723f279487665493f9 | diff --git a/docs/guide/modules.md b/docs/guide/modules.md
index 27bafd03c..599405daa 100644
--- a/docs/guide/modules.md
+++ b/docs/guide/modules.md
@@ -312,7 +312,7 @@ Dynamic module registration makes it possible for other Vue plugins to also leve
You can also remove a dynamically registered module with `store.unr... | [
"docs/guide/modules.md"
] | [
{
"comment": "@bikingbadger could \"past\" be changed to \"passed\"?",
"path": "docs/guide/modules.md",
"hunk": "@@ -312,7 +312,7 @@ Dynamic module registration makes it possible for other Vue plugins to also leve\n \n You can also remove a dynamically registered module with `store.unregisterModule(modu... | true | ||
vuejs/vuex | 1,936 | issue_to_patch | spelling mistake? | change utilising to utilizing | c3944f33690aae47b7113edebbf13fffe01b9256 | 5f05c2d4c976f87dcc8abc73eb8c37baf8eb20fb | diff --git a/docs/guide/composition-api.md b/docs/guide/composition-api.md
index 956bb4244..4ad444de8 100644
--- a/docs/guide/composition-api.md
+++ b/docs/guide/composition-api.md
@@ -59,4 +59,4 @@ export default {
## Examples
-Check out the [Composition API example](https://github.com/vuejs/vuex/tree/4.0/example... | [
"docs/guide/composition-api.md"
] | [] | true | ||
vuejs/vuex | 1,944 | issue_to_patch | docs: remove errant apostrophe | c3944f33690aae47b7113edebbf13fffe01b9256 | 7ffb94b10c892f9854a4771f3c4e3e71591bd54c | diff --git a/docs/guide/typescript-support.md b/docs/guide/typescript-support.md
index 9d2c2a676..87bb72568 100644
--- a/docs/guide/typescript-support.md
+++ b/docs/guide/typescript-support.md
@@ -118,7 +118,7 @@ export function useStore () {
}
```
-Now, by importing your own composable function, you can retrieve t... | [
"docs/guide/typescript-support.md"
] | [] | true | |||
w7corp/easywechat | 2,986 | issue_to_patch | Fix formatting in index.md for suite_secret | 示例代码缺少一个逗号, 导致复制粘贴到IDE后报错, 不利于新手 | 13cb50b58916315d311a00288749b532055e9f67 | 2bbc15a9451009b17570cb2b74591414705709e4 | diff --git a/docs/src/6.x/work/index.md b/docs/src/6.x/work/index.md
index 7f80852cd..6c14764d9 100755
--- a/docs/src/6.x/work/index.md
+++ b/docs/src/6.x/work/index.md
@@ -15,7 +15,7 @@ $config = [
'aes_key' => '35d4687abb469072a29f1c242xxxxxx',
// 记得配置suite_id,不然suite_ticket不能自动存储
'suite_id' => 'ww9f1388bf66... | [
"docs/src/6.x/work/index.md"
] | [] | true | ||
w7corp/easywechat | 2,984 | issue_to_patch | build(deps): bump axios from 1.13.5 to 1.15.0 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [axios](https://github.com/axios/axios).
Updates `axios` from 1.13.5 to 1.15.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/axios/axios/releases">axios's releases</a>.</em></p>
<blockquote>
<h2>v1.15.0</h2>... | 289499074fb9be2cab29e165d4c917c677b735cf | 4f44dd88f40f3facba15778a198499cf24635237 | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index 1350d0c6e..9c74db4e0 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -41,7 +41,7 @@ importers:
version: 0.14.0
vitepress:
specifier: 1.6.3
- version: 1.6.3(@algolia/client-search@5.41.0)(@types/node@22.18.12)(axio... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,981 | issue_to_patch | build(deps): bump brace-expansion from 2.0.2 to 2.0.3 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [brace-expansion](https://github.com/juliangruber/brace-expansion).
Updates `brace-expansion` from 2.0.2 to 2.0.3
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/juliangruber/brace-expansion/commit/73b5459d2ab973c984d01324769d... | 17225082b214a0e4b86ab0394e98b4828bfe830f | 0ff7234fd27e1a2b37c452ce459afb387b17c33a | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index b6d2eeb29..1350d0c6e 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -681,8 +681,8 @@ packages:
birpc@2.6.1:
resolution: {integrity: sha512-LPnFhlDpdSH6FJhJyn4M0kFO7vtQ5iPw24FnG0y21q09xC7e8+1LeR31S1MAIrDAHp4m7aas4bEkTDTvMAtebQ==}
- br... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,982 | issue_to_patch | Add Symfony 8 compatibility support | ## Summary
- widen the Symfony component constraints in `composer.json` to include `^8.0`
- update the main PHPUnit workflow to actually provision the matrix PHP version via `shivammathur/setup-php`
- add a dedicated `PHP-8.4-symfony-8` job in `.github/workflows/test.yml` so Symfony 8 compatibility stays explicitly cov... | 17225082b214a0e4b86ab0394e98b4828bfe830f | 817c16e80c7795db2a09fd01b0655f33a7fd174a | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3a18cb087..36edcdfc5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,7 +3,7 @@ on: [push, pull_request]
jobs:
phpunit:
- name: PHP-${{ matrix.php_version }}-${{ matrix.perfer }}
+ name: PHP-${{ matrix.p... | [
".github/workflows/test.yml",
"composer.json",
"src/Kernel/Config.php",
"src/Kernel/Encryptor.php",
"src/Kernel/Form/File.php",
"src/Kernel/Form/Form.php",
"src/Kernel/HttpClient/RequestUtil.php",
"src/Kernel/HttpClient/Response.php",
"src/Kernel/Support/Arr.php",
"src/Kernel/Support/PrivateKey.ph... | [
{
"comment": "`composer require` is run without `--no-interaction`. In GitHub Actions this can still occasionally block on prompts (e.g., plugin/trust prompts or constraint replacement confirmations). Add `--no-interaction` (or set `COMPOSER_NO_INTERACTION=1`) to keep the Symfony 8 job fully non-interactive and... | diff --git a/tests/Kernel/Traits/InteractWithHandlersTest.php b/tests/Kernel/Traits/InteractWithHandlersTest.php
index a8b3425d1..bcd0c7142 100644
--- a/tests/Kernel/Traits/InteractWithHandlersTest.php
+++ b/tests/Kernel/Traits/InteractWithHandlersTest.php
@@ -4,13 +4,14 @@
namespace EasyWeChat\Tests\Kernel\Traits;
... | true | |
w7corp/easywechat | 2,982 | comment_to_fix | Add Symfony 8 compatibility support | `composer require` is run without `--no-interaction`. In GitHub Actions this can still occasionally block on prompts (e.g., plugin/trust prompts or constraint replacement confirmations). Add `--no-interaction` (or set `COMPOSER_NO_INTERACTION=1`) to keep the Symfony 8 job fully non-interactive and deterministic.
```sug... | 17225082b214a0e4b86ab0394e98b4828bfe830f | 817c16e80c7795db2a09fd01b0655f33a7fd174a | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3a18cb087..36edcdfc5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,7 +3,7 @@ on: [push, pull_request]
jobs:
phpunit:
- name: PHP-${{ matrix.php_version }}-${{ matrix.perfer }}
+ name: PHP-${{ matrix.p... | [
".github/workflows/test.yml"
] | [
{
"comment": "`composer require` is run without `--no-interaction`. In GitHub Actions this can still occasionally block on prompts (e.g., plugin/trust prompts or constraint replacement confirmations). Add `--no-interaction` (or set `COMPOSER_NO_INTERACTION=1`) to keep the Symfony 8 job fully non-interactive and... | true | ||
w7corp/easywechat | 2,979 | issue_to_patch | build(deps): bump picomatch from 2.3.1 to 2.3.2 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [picomatch](https://github.com/micromatch/picomatch).
Updates `picomatch` from 2.3.1 to 2.3.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/micromatch/picomatch/releases">picomatch's releases</a>.</em></p>
<... | 19d09d6ef85a45646f43eb0cc0e47087bd3ec55b | 0b026e3e9b537f9aa93689f7e0c501cc189a5e6d | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index bf2786582..b6d2eeb29 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -1087,8 +1087,8 @@ packages:
picocolors@1.1.1:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,978 | issue_to_patch | build(deps): bump minimatch from 9.0.6 to 9.0.9 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [minimatch](https://github.com/isaacs/minimatch).
Updates `minimatch` from 9.0.6 to 9.0.9
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/isaacs/minimatch/commit/8a10e473e2e0ff03c2d4de308f257093af2bce21"><code>8a10e47</code></... | 5eb029e0adeba9684043c1fc4cde2c47d086791f | b7cba4097b7ed89fb2d641dffa8267c8241e2691 | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index 71ea8d492..bf2786582 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -667,9 +667,8 @@ packages:
axios@1.13.5:
resolution: {integrity: sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==}
- b... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,977 | issue_to_patch | build(deps): bump rollup from 4.52.5 to 4.59.0 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [rollup](https://github.com/rollup/rollup).
Updates `rollup` from 4.52.5 to 4.59.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rollup/rollup/releases">rollup's releases</a>.</em></p>
<blockquote>
<h2>v4.59... | 394148d4390827db877d8e3a510a4b639934fe62 | 1abac0dd928f26846b198d5f3a9f94cd34f7c2ad | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index ed5494dff..71ea8d492 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -345,113 +345,128 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,974 | issue_to_patch | build(deps): bump minimatch from 9.0.5 to 9.0.6 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [minimatch](https://github.com/isaacs/minimatch).
Updates `minimatch` from 9.0.5 to 9.0.6
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/isaacs/minimatch/commit/7117ef381e74deace1c62a74d2298c8fe61d10ca"><code>7117ef3</code></... | c5f85f5ebaf15571a032dbc8031b1f148f0ece09 | 3ed90e9257ffeaef8ce398735d0ac442c2fb0849 | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index d62dadb3e..ed5494dff 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -604,8 +604,8 @@ packages:
'@vueuse/shared@12.8.2':
resolution: {integrity: sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,973 | issue_to_patch | build(deps): bump axios from 1.12.2 to 1.13.5 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [axios](https://github.com/axios/axios).
Updates `axios` from 1.12.2 to 1.13.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/axios/axios/releases">axios's releases</a>.</em></p>
<blockquote>
<h2>v1.13.5</h2>... | a4ce9fb5fad83b2319657332cbd25cb8476a91b4 | be57bc5a18a30e88e56ef1712d83f41b1834fc7e | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index 5583654f7..d62dadb3e 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -41,7 +41,7 @@ importers:
version: 0.14.0
vitepress:
specifier: 1.6.3
- version: 1.6.3(@algolia/client-search@5.41.0)(@types/node@22.18.12)(axio... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,970 | issue_to_patch | build(deps): bump the npm_and_yarn group across 1 directory with 2 updates | Bumps the npm_and_yarn group with 2 updates in the /docs directory: [mdast-util-to-hast](https://github.com/syntax-tree/mdast-util-to-hast) and [preact](https://github.com/preactjs/preact).
Updates `mdast-util-to-hast` from 13.2.0 to 13.2.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https:... | 37e65c89a6dda2fe9f559f7bb7608f6819994110 | 11de4e441065bc4706db18fefa771af65bb9a8dc | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index 8420a388d..5583654f7 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -973,8 +973,8 @@ packages:
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
engines: {node: '>... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,968 | issue_to_patch | 请问一下消息推送不支持json格式解密吗?
微信小程序后台设置的json格式,但是看代码好像只支持xml解密消息? | feat: 自动检测消息类型 | resolve #2965 | e80e1b96d025ee73c3c843812df8368a01e09aa2 | a9bbe55a3b5e33418f0fa86019fc40266dc7b0be | diff --git a/phpstan.neon b/phpstan.neon
index 73d5d8faa..6034b7fff 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -9,9 +9,6 @@ parameters:
-
message: '#Property EasyWeChat\\Kernel\\Config::\$items \(array<string, mixed>\) does not accept array#'
path: src/Kernel/Config.php
- ... | [
"phpstan.neon",
"src/Kernel/Message.php",
"src/Kernel/Support/MessageParser.php",
"src/Kernel/Traits/DecryptJsonMessage.php",
"src/Kernel/Traits/DecryptMessage.php",
"src/Kernel/Traits/DecryptXmlMessage.php",
"src/OfficialAccount/Server.php",
"src/OpenPlatform/Server.php",
"src/OpenWork/Server.php",... | [] | diff --git a/tests/Kernel/Support/MessageParserTest.php b/tests/Kernel/Support/MessageParserTest.php
new file mode 100644
index 000000000..ac7a80823
--- /dev/null
+++ b/tests/Kernel/Support/MessageParserTest.php
@@ -0,0 +1,96 @@
+<?php
+
+declare(strict_types=1);
+
+namespace EasyWeChat\Tests\Kernel\Support;
+
+use Eas... | true |
w7corp/easywechat | 2,964 | issue_to_patch | build(deps): bump glob from 10.4.5 to 10.5.0 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [glob](https://github.com/isaacs/node-glob).
Updates `glob` from 10.4.5 to 10.5.0
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/isaacs/node-glob/commit/56774ef73b495eb0b17cdd0f42921f5ef62297c1"><code>56774ef</code></a> 10.5.... | d8e7a56aa0f91a254d04744a87abcd33c205874e | 282d9f4772afe07acb2fa5baa49e40797523e950 | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index db715e5bf..8420a388d 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -877,8 +877,8 @@ packages:
resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
engines: {node: '>... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,967 | issue_to_patch | Replace Psr6Adapter with Psr16Adapter in cache.md | d8e7a56aa0f91a254d04744a87abcd33c205874e | 50ce0dd8ced974acc35e63a2301802be909eddaa | diff --git a/docs/src/6.x/cache.md b/docs/src/6.x/cache.md
index 15679bdd4..6254015f8 100644
--- a/docs/src/6.x/cache.md
+++ b/docs/src/6.x/cache.md
@@ -152,12 +152,12 @@ Laravel 框架提供了便捷的缓存管理,你可以直接使用 Laravel 的
### 使用 Laravel Cache
```php
-use Symfony\Component\Cache\Adapter\Psr6Adapter;
+use Symfony\Component\Cache... | [
"docs/src/6.x/cache.md"
] | [] | true | |||
w7corp/easywechat | 2,961 | issue_to_patch | Add getPhoneNumber method to MiniApp Utils | - [x] Add getPhoneNumber method to src/MiniApp/Utils.php to call WeChat Mini Program API
- [x] Add test for getPhoneNumber in tests/MiniApp/UtilsTest.php
- [x] Update documentation in docs/src/6.x/mini-app/utils.md
- [x] Address code review feedback: add errcode validation and error test case
- [x] Fix PHPStan linting ... | cbece8ba1a260c9d958fe13cb3bce2a2463f6bee | d3ef075f59a4dea891dbba9ca5c1775728a08e84 | diff --git a/docs/src/6.x/mini-app/utils.md b/docs/src/6.x/mini-app/utils.md
index 46974ef6a..df1503396 100644
--- a/docs/src/6.x/mini-app/utils.md
+++ b/docs/src/6.x/mini-app/utils.md
@@ -43,3 +43,27 @@ $session = $utils->decryptSession($sessionKey, $iv, $encryptedData);
// }
//}
```
+
+### 获取手机号
+
+获取用户绑定的手机号,需... | [
"docs/src/6.x/mini-app/utils.md",
"src/MiniApp/Utils.php",
"tests/MiniApp/UtilsTest.php"
] | [] | diff --git a/tests/MiniApp/UtilsTest.php b/tests/MiniApp/UtilsTest.php
index 493019897..bc09e9ceb 100644
--- a/tests/MiniApp/UtilsTest.php
+++ b/tests/MiniApp/UtilsTest.php
@@ -86,4 +86,68 @@ public function test_decrypt_session()
],
], $utils->decryptSession($sessionKey, $iv, $encryptedData));
... | true | |
w7corp/easywechat | 2,960 | issue_to_patch | Fix the lint failings and optim the codes in `FQN` style | 9ccf262389e7a3dba5a61f563c5bfd589872d664 | ebfb89daf0a8d3eecbb847add0847129165c6c20 | diff --git a/docs/package.json b/docs/package.json
index be1aba652..4ad4925f0 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -12,14 +12,14 @@
"clipboard": "^2.0.11",
"dynamics.js": "^1.1.5",
"gsap": "^3.13.0",
- "tailwindcss": "^3.4.17"
+ "tailwindcss": "^3.4.18"
},
"devDependencie... | [
"docs/package.json",
"docs/pnpm-lock.yaml",
"phpstan.neon",
"src/Kernel/Config.php",
"src/Kernel/Form/Form.php",
"src/Kernel/HttpClient/RequestUtil.php",
"src/Kernel/Support/Arr.php",
"src/Kernel/Support/PrivateKey.php",
"src/Kernel/Traits/InteractWithHandlers.php",
"src/Kernel/Traits/MockableHttp... | [] | true | |||
w7corp/easywechat | 2,956 | issue_to_patch | build(deps): bump vite from 5.4.20 to 5.4.21 in /docs in the npm_and_yarn group across 1 directory | Bumps the npm_and_yarn group with 1 update in the /docs directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).
Updates `vite` from 5.4.20 to 5.4.21
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/vitejs/vite/releases">vite's releases</a>.</em></p>
<blockqu... | 9affd6c57be15928cb4e4a44d02596acbdfbb797 | 2db5e0179d34855b8c363f884abfbeac787d7cd4 | diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index c89fa5a1e..65b724cdf 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -1319,8 +1319,8 @@ packages:
vfile@6.0.3:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- ... | [
"docs/pnpm-lock.yaml"
] | [] | true | ||
w7corp/easywechat | 2,958 | issue_to_patch | Add missing open_kfid parameter to sync method (backward compatible) - fixes #2938 | ## Description
This PR fixes issue #2938 by adding the missing `open_kfid` parameter to the `sync()` method in `MessageClient.php`.
## Problem
The `sync()` method for reading messages from WeChat Work's customer service API was missing the required `open_kfid` parameter according to the <a href="https://open.work.we... | fb8c14c0c0f96bd7a4d8769d84e672746c31a087 | af09bf75a2464659d89ba90a5676712c5ae77163 | diff --git a/src/Work/Kf/MessageClient.php b/src/Work/Kf/MessageClient.php
index 4246879a0c..a670be7f9d 100644
--- a/src/Work/Kf/MessageClient.php
+++ b/src/Work/Kf/MessageClient.php
@@ -80,13 +80,14 @@ public function updateState(string $openKfId, string $externalUserId, int $servi
* @param string $cursor
... | [
"src/Work/Kf/MessageClient.php",
"tests/Work/Kf/MessageClientTest.php"
] | [] | diff --git a/tests/Work/Kf/MessageClientTest.php b/tests/Work/Kf/MessageClientTest.php
index e93d56d964..19aaa9037c 100644
--- a/tests/Work/Kf/MessageClientTest.php
+++ b/tests/Work/Kf/MessageClientTest.php
@@ -55,10 +55,11 @@ public function testSync()
$client->expects()->httpPostJson('cgi-bin/kf/sync_msg', [... | true | |
w7corp/easywechat | 2,953 | issue_to_patch | Fix lint failings and upgrade docs deps | 0fa92d0b4a2dd30033c0689afb9293f64c7d003b | 7b24067d9f97e153f4465a0b160a2cee10392934 | diff --git a/docs/package.json b/docs/package.json
index 6a0533ceb..be1aba652 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -16,10 +16,10 @@
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
- "@types/node": "^22.15.31",
- "postcss": "^8.5.4",
- "postcss-import": "^16.1.0",
- "... | [
"docs/package.json",
"docs/pnpm-lock.yaml",
"src/Kernel/Encryptor.php",
"src/Kernel/Traits/DecryptJsonMessage.php",
"src/Kernel/Traits/RespondJsonMessage.php",
"src/Work/Server.php"
] | [] | true | |||
w7corp/easywechat | 2,952 | issue_to_patch | Update payment document | 347e6bdf465bdeec4c87e7e1b48b3131eb993079 | ac5f1c38f8c71873585315f06103146a7c59b351 | diff --git a/docs/src/6.x/pay/index.md b/docs/src/6.x/pay/index.md
index d734571b2..e089f8519 100755
--- a/docs/src/6.x/pay/index.md
+++ b/docs/src/6.x/pay/index.md
@@ -29,11 +29,11 @@ $config = [
// 下载工具:https://github.com/wechatpay-apiv3/CertificateDownloader
'platform_certs' => [
// 如果是「平台证书」模式
- ... | [
"docs/src/6.x/pay/index.md"
] | [] | true | |||
w7corp/easywechat | 2,950 | issue_to_patch | Complete missing documentation for 5.x version modules - Add 12 undocumented features | This PR addresses the significant documentation gaps identified in the EasyWeChat project by adding comprehensive documentation for 12 previously undocumented modules in the 5.x version.
## Problem
The EasyWeChat project had substantial documentation coverage gaps where many features available in the source code lack... | a733b0d1a1f1cf40e5d2c5f63c11400470ff44af | 85fdbbfccbb5e6534352ecb744f2ed7e14249d21 | diff --git a/docs/src/5.x/mini-program/activity_message.md b/docs/src/5.x/mini-program/activity_message.md
new file mode 100644
index 000000000..913632ec8
--- /dev/null
+++ b/docs/src/5.x/mini-program/activity_message.md
@@ -0,0 +1,279 @@
+# 动态消息
+
+小程序动态消息功能允许开发者创建可变更的消息内容,在特定条件下更新消息显示内容。
+
+## 获取实例
+
+```php
+$activi... | [
"docs/src/5.x/mini-program/activity_message.md",
"docs/src/5.x/mini-program/business.md",
"docs/src/5.x/mini-program/mall.md",
"docs/src/5.x/mini-program/ocr.md",
"docs/src/5.x/mini-program/realtime_log.md",
"docs/src/5.x/mini-program/risk_control.md",
"docs/src/5.x/mini-program/search.md",
"docs/src/... | [] | true | ||
w7corp/easywechat | 2,945 | issue_to_patch | Add missing sidebar entry for logging documentation in 通用 (Common) section | Fixes issue #2944 where the logging documentation was added but the sidebar entry was forgotten.
The comprehensive HTTP client logging documentation was added in the previous commit, but the corresponding sidebar navigation entry remained commented out and pointed to an incorrect path.
## Changes Made
- Uncommented ... | d1783fa690a8809d14a0afc871087c7c1a581530 | 186aea2da4847b05fbdad88aacd7c34e04102a1e | diff --git a/docs/src/6.x/sidebar.js b/docs/src/6.x/sidebar.js
index 3e3fb0337..b0caec1ec 100644
--- a/docs/src/6.x/sidebar.js
+++ b/docs/src/6.x/sidebar.js
@@ -87,7 +87,7 @@ exports = module.exports = [
{ text: 'API 调用', link: '/6.x/client.html' },
{ text: '网页授权', link: '/6.x/oauth.html' },
{ text... | [
"docs/src/6.x/sidebar.js"
] | [] | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.