Skip to content

Commit 80f2c28

Browse files
committed
chore: up deps
1 parent c42a54c commit 80f2c28

11 files changed

+118
-123
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@rollup/plugin-replace": "^4.0.0",
2828
"@types/lodash.kebabcase": "^4.1.7",
2929
"@types/node": "^16.18.3",
30-
"@vitest/coverage-c8": "^0.24.5",
30+
"@vitest/coverage-c8": "^0.25.2",
3131
"@vue/compiler-sfc": "^3.2.45",
3232
"@vue/server-renderer": "^3.2.45",
3333
"c8": "^7.12.0",
@@ -49,10 +49,10 @@
4949
"rollup-plugin-terser": "^7.0.2",
5050
"rollup-plugin-typescript2": "^0.32.1",
5151
"semver": "^7.3.8",
52-
"typedoc": "^0.23.20",
52+
"typedoc": "^0.23.21",
5353
"typedoc-plugin-markdown": "^3.13.6",
5454
"typescript": "^4.8.4",
55-
"vitest": "^0.24.5",
55+
"vitest": "^0.25.2",
5656
"vue": "^3.2.45",
5757
"yorkie": "^2.0.0"
5858
},

packages/docs/api/interfaces/pinia.SubscriptionCallbackMutationDirect.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ newValue`.
2626

2727
**events**: `DebuggerEvent`
2828

29-
DEV ONLY. Different mutation calls.
29+
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
30+
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
31+
devtools and plugins **during development only**.
32+
33+
#### Overrides
34+
35+
[_SubscriptionCallbackMutationBase](pinia._SubscriptionCallbackMutationBase.md).[events](pinia._SubscriptionCallbackMutationBase.md#events)
3036

3137
___
3238

packages/docs/api/interfaces/pinia.SubscriptionCallbackMutationPatchFunction.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ with a function.
2525

2626
**events**: `DebuggerEvent`[]
2727

28-
DEV ONLY. Array of all the mutations done inside of the callback.
28+
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
29+
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
30+
devtools and plugins **during development only**.
31+
32+
#### Overrides
33+
34+
[_SubscriptionCallbackMutationBase](pinia._SubscriptionCallbackMutationBase.md).[events](pinia._SubscriptionCallbackMutationBase.md#events)
2935

3036
___
3137

packages/docs/api/interfaces/pinia.SubscriptionCallbackMutationPatchObject.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ with an object.
3131

3232
**events**: `DebuggerEvent`[]
3333

34-
DEV ONLY. Array for patch calls.
34+
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
35+
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
36+
devtools and plugins **during development only**.
37+
38+
#### Overrides
39+
40+
[_SubscriptionCallbackMutationBase](pinia._SubscriptionCallbackMutationBase.md).[events](pinia._SubscriptionCallbackMutationBase.md#events)
3541

3642
___
3743

packages/docs/api/interfaces/pinia._StoreOnActionListenerContext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ___
7272
▸ (`callback`): `void`
7373

7474
Sets up a hook if the action fails. Return `false` to catch the error and
75-
stop it fro propagating.
75+
stop it from propagating.
7676

7777
##### Parameters
7878

packages/docs/api/interfaces/pinia._SubscriptionCallbackMutationBase.md

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ Base type for the context passed to a subscription callback. Internal type.
2424

2525
## Properties
2626

27+
### events
28+
29+
`Optional` **events**: `DebuggerEvent` \| `DebuggerEvent`[]
30+
31+
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
32+
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
33+
devtools and plugins **during development only**.
34+
35+
___
36+
2737
### storeId
2838

2939
**storeId**: `string`

packages/docs/api/modules/pinia.md

+15-56
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ ___
490490

491491
### \_StoreObject
492492

493-
Ƭ **\_StoreObject**<`S`\>: `S` extends [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<infer Ids, infer State, infer Getters, infer Actions\> ? { [Id in \`${Ids}${MapStoresCustomization extends Record<"suffix", string\> ? MapStoresCustomization["suffix"] : "Store"}\`]: Function } : {}
493+
Ƭ **\_StoreObject**<`S`\>: `S` extends [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<infer Ids, infer State, infer Getters, infer Actions\> ? { [Id in \`${Ids}${MapStoresCustomization extends Record<"suffix", infer Suffix extends string\> ? Suffix : "Store"}\`]: Function } : {}
494494

495495
For internal use **only**.
496496

@@ -810,38 +810,11 @@ ___
810810
811811
▸ **mapGetters**<`Id`, `S`, `G`, `A`, `KeyMapper`\>(`useStore`, `keyMapper`): [`_MapStateObjectReturn`](pinia.md#_mapstateobjectreturn)<`Id`, `S`, `G`, `A`, `KeyMapper`\>
812812
813-
Allows using state and getters from one store without using the composition
814-
API (`setup()`) by generating an object to be spread in the `computed` field
815-
of a component. The values of the object are the state properties/getters
816-
while the keys are the names of the resulting computed properties.
817-
Optionally, you can also pass a custom function that will receive the store
818-
as its first argument. Note that while it has access to the component
819-
instance via `this`, it won't be typed.
820-
821-
**`Example`**
813+
Alias for `mapState()`. You should use `mapState()` instead.
822814
823-
```js
824-
export default {
825-
computed: {
826-
// other computed properties
827-
// useCounterStore has a state property named `count` and a getter `double`
828-
...mapState(useCounterStore, {
829-
n: 'count',
830-
triple: store => store.n * 3,
831-
// note we can't use an arrow function if we want to use `this`
832-
custom(store) {
833-
return this.someComponentValue + store.n
834-
},
835-
doubleN: 'double'
836-
})
837-
},
815+
**`Deprecated`**
838816
839-
created() {
840-
this.n // 2
841-
this.doubleN // 4
842-
}
843-
}
844-
```
817+
use `mapState()` instead.
845818
846819
#### Type parameters
847820
@@ -855,36 +828,22 @@ export default {
855828
856829
#### Parameters
857830
858-
| Name | Type | Description |
859-
| :------ | :------ | :------ |
860-
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> | store to map from |
861-
| `keyMapper` | `KeyMapper` | object of state properties or getters |
831+
| Name | Type |
832+
| :------ | :------ |
833+
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> |
834+
| `keyMapper` | `KeyMapper` |
862835
863836
#### Returns
864837
865838
[`_MapStateObjectReturn`](pinia.md#_mapstateobjectreturn)<`Id`, `S`, `G`, `A`, `KeyMapper`\>
866839
867840
▸ **mapGetters**<`Id`, `S`, `G`, `A`, `Keys`\>(`useStore`, `keys`): [`_MapStateReturn`](pinia.md#_mapstatereturn)<`S`, `G`, `Keys`\>
868841
869-
Allows using state and getters from one store without using the composition
870-
API (`setup()`) by generating an object to be spread in the `computed` field
871-
of a component.
872-
873-
**`Example`**
842+
Alias for `mapState()`. You should use `mapState()` instead.
874843
875-
```js
876-
export default {
877-
computed: {
878-
// other computed properties
879-
...mapState(useCounterStore, ['count', 'double'])
880-
},
844+
**`Deprecated`**
881845
882-
created() {
883-
this.count // 2
884-
this.double // 4
885-
}
886-
}
887-
```
846+
use `mapState()` instead.
888847
889848
#### Type parameters
890849
@@ -898,10 +857,10 @@ export default {
898857
899858
#### Parameters
900859
901-
| Name | Type | Description |
902-
| :------ | :------ | :------ |
903-
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> | store to map from |
904-
| `keys` | readonly `Keys`[] | array of state properties or getters |
860+
| Name | Type |
861+
| :------ | :------ |
862+
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> |
863+
| `keys` | readonly `Keys`[] |
905864
906865
#### Returns
907866

packages/docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@chenfengyuan/vue-countdown": "^2.1.0",
12-
"@vueuse/core": "^9.4.0",
12+
"@vueuse/core": "^9.5.0",
1313
"pinia": "workspace:^2.0.18",
1414
"vitepress": "^0.22.4"
1515
}

packages/pinia/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"license": "MIT",
7171
"devDependencies": {
7272
"@microsoft/api-extractor": "7.33.6",
73-
"@vue/test-utils": "^2.2.3"
73+
"@vue/test-utils": "^2.2.4"
7474
},
7575
"dependencies": {
7676
"@vue/devtools-api": "^6.4.5",

packages/playground/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"vite": "^3.2.4"
1313
},
1414
"dependencies": {
15-
"@vueuse/core": "^9.4.0",
15+
"@vueuse/core": "^9.5.0",
1616
"mande": "^1.0.1",
1717
"pinia": "workspace:^2.0.18",
18-
"swrv": "^1.0.0-beta.8",
18+
"swrv": "^1.0.1",
1919
"vue-promised": "^2.2.0",
2020
"vue-router": "^4.1.6"
2121
}

0 commit comments

Comments
 (0)