Skip to content

Commit

Permalink
chore: up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 21, 2022
1 parent c42a54c commit 80f2c28
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 123 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@rollup/plugin-replace": "^4.0.0",
"@types/lodash.kebabcase": "^4.1.7",
"@types/node": "^16.18.3",
"@vitest/coverage-c8": "^0.24.5",
"@vitest/coverage-c8": "^0.25.2",
"@vue/compiler-sfc": "^3.2.45",
"@vue/server-renderer": "^3.2.45",
"c8": "^7.12.0",
Expand All @@ -49,10 +49,10 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.32.1",
"semver": "^7.3.8",
"typedoc": "^0.23.20",
"typedoc": "^0.23.21",
"typedoc-plugin-markdown": "^3.13.6",
"typescript": "^4.8.4",
"vitest": "^0.24.5",
"vitest": "^0.25.2",
"vue": "^3.2.45",
"yorkie": "^2.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ newValue`.

**events**: `DebuggerEvent`

DEV ONLY. Different mutation calls.
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
devtools and plugins **during development only**.

#### Overrides

[_SubscriptionCallbackMutationBase](pinia._SubscriptionCallbackMutationBase.md).[events](pinia._SubscriptionCallbackMutationBase.md#events)

___

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ with a function.

**events**: `DebuggerEvent`[]

DEV ONLY. Array of all the mutations done inside of the callback.
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
devtools and plugins **during development only**.

#### Overrides

[_SubscriptionCallbackMutationBase](pinia._SubscriptionCallbackMutationBase.md).[events](pinia._SubscriptionCallbackMutationBase.md#events)

___

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ with an object.

**events**: `DebuggerEvent`[]

DEV ONLY. Array for patch calls.
🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
devtools and plugins **during development only**.

#### Overrides

[_SubscriptionCallbackMutationBase](pinia._SubscriptionCallbackMutationBase.md).[events](pinia._SubscriptionCallbackMutationBase.md#events)

___

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ___
▸ (`callback`): `void`

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

##### Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ Base type for the context passed to a subscription callback. Internal type.

## Properties

### events

`Optional` **events**: `DebuggerEvent` \| `DebuggerEvent`[]

🔴 DEV ONLY, DO NOT use for production code. Different mutation calls. Comes from
https://vuejs.org/guide/extras/reactivity-in-depth.html#reactivity-debugging and allows to track mutations in
devtools and plugins **during development only**.

___

### storeId

**storeId**: `string`
Expand Down
71 changes: 15 additions & 56 deletions packages/docs/api/modules/pinia.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ ___

### \_StoreObject

Ƭ **\_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 } : {}
Ƭ **\_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 } : {}

For internal use **only**.

Expand Down Expand Up @@ -810,38 +810,11 @@ ___
▸ **mapGetters**<`Id`, `S`, `G`, `A`, `KeyMapper`\>(`useStore`, `keyMapper`): [`_MapStateObjectReturn`](pinia.md#_mapstateobjectreturn)<`Id`, `S`, `G`, `A`, `KeyMapper`\>
Allows using state and getters from one store without using the composition
API (`setup()`) by generating an object to be spread in the `computed` field
of a component. The values of the object are the state properties/getters
while the keys are the names of the resulting computed properties.
Optionally, you can also pass a custom function that will receive the store
as its first argument. Note that while it has access to the component
instance via `this`, it won't be typed.
**`Example`**
Alias for `mapState()`. You should use `mapState()` instead.
```js
export default {
computed: {
// other computed properties
// useCounterStore has a state property named `count` and a getter `double`
...mapState(useCounterStore, {
n: 'count',
triple: store => store.n * 3,
// note we can't use an arrow function if we want to use `this`
custom(store) {
return this.someComponentValue + store.n
},
doubleN: 'double'
})
},
**`Deprecated`**
created() {
this.n // 2
this.doubleN // 4
}
}
```
use `mapState()` instead.
#### Type parameters
Expand All @@ -855,36 +828,22 @@ export default {
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> | store to map from |
| `keyMapper` | `KeyMapper` | object of state properties or getters |
| Name | Type |
| :------ | :------ |
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> |
| `keyMapper` | `KeyMapper` |
#### Returns
[`_MapStateObjectReturn`](pinia.md#_mapstateobjectreturn)<`Id`, `S`, `G`, `A`, `KeyMapper`\>
▸ **mapGetters**<`Id`, `S`, `G`, `A`, `Keys`\>(`useStore`, `keys`): [`_MapStateReturn`](pinia.md#_mapstatereturn)<`S`, `G`, `Keys`\>
Allows using state and getters from one store without using the composition
API (`setup()`) by generating an object to be spread in the `computed` field
of a component.
**`Example`**
Alias for `mapState()`. You should use `mapState()` instead.
```js
export default {
computed: {
// other computed properties
...mapState(useCounterStore, ['count', 'double'])
},
**`Deprecated`**
created() {
this.count // 2
this.double // 4
}
}
```
use `mapState()` instead.
#### Type parameters
Expand All @@ -898,10 +857,10 @@ export default {
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> | store to map from |
| `keys` | readonly `Keys`[] | array of state properties or getters |
| Name | Type |
| :------ | :------ |
| `useStore` | [`StoreDefinition`](../interfaces/pinia.StoreDefinition.md)<`Id`, `S`, `G`, `A`\> |
| `keys` | readonly `Keys`[] |
#### Returns
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@chenfengyuan/vue-countdown": "^2.1.0",
"@vueuse/core": "^9.4.0",
"@vueuse/core": "^9.5.0",
"pinia": "workspace:^2.0.18",
"vitepress": "^0.22.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/pinia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"license": "MIT",
"devDependencies": {
"@microsoft/api-extractor": "7.33.6",
"@vue/test-utils": "^2.2.3"
"@vue/test-utils": "^2.2.4"
},
"dependencies": {
"@vue/devtools-api": "^6.4.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"vite": "^3.2.4"
},
"dependencies": {
"@vueuse/core": "^9.4.0",
"@vueuse/core": "^9.5.0",
"mande": "^1.0.1",
"pinia": "workspace:^2.0.18",
"swrv": "^1.0.0-beta.8",
"swrv": "^1.0.1",
"vue-promised": "^2.2.0",
"vue-router": "^4.1.6"
}
Expand Down
Loading

0 comments on commit 80f2c28

Please sign in to comment.