Skip to content

Commit

Permalink
chore: up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 30, 2024
1 parent cbc79df commit a44f801
Show file tree
Hide file tree
Showing 10 changed files with 2,181 additions and 1,634 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,32 @@
"@rollup/plugin-terser": "^0.4.4",
"@types/lodash.kebabcase": "^4.1.9",
"@types/node": "^20.14.12",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"@vue/compiler-sfc": "~3.4.34",
"@vue/server-renderer": "~3.4.34",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/ui": "^2.1.1",
"@vue/compiler-sfc": "~3.5.10",
"@vue/server-renderer": "~3.5.10",
"chalk": "^5.3.0",
"conventional-changelog-cli": "^2.2.2",
"enquirer": "^2.4.1",
"execa": "^9.3.0",
"globby": "^14.0.1",
"happy-dom": "^14.12.3",
"happy-dom": "^15.7.4",
"lint-staged": "^15.2.7",
"lodash.kebabcase": "^4.1.1",
"minimist": "^1.2.8",
"p-series": "^3.0.0",
"pascalcase": "^2.0.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.18.0",
"rollup": "^4.22.5",
"rollup-plugin-typescript2": "^0.36.0",
"semver": "^7.6.3",
"simple-git-hooks": "^2.11.1",
"typedoc": "^0.26.5",
"typedoc-plugin-markdown": "^4.2.3",
"typescript": "~5.5.4",
"vitest": "^2.0.4",
"vue": "~3.4.34"
"typedoc": "^0.26.7",
"typedoc-plugin-markdown": "^4.2.8",
"typescript": "~5.6.2",
"vitest": "^2.1.1",
"vue": "~3.5.10"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@chenfengyuan/vue-countdown": "^2.1.2",
"@vueuse/core": "^10.11.0",
"pinia": "workspace:*",
"vitepress": "1.3.1",
"vitepress": "1.3.4",
"vitepress-translation-helper": "^0.2.1",
"vue-use-spring": "^0.3.3"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
"pinia": "workspace:^"
},
"devDependencies": {
"@nuxt/module-builder": "^0.8.1",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.9.0",
"@nuxt/test-utils": "^3.13.1",
"nuxt": "^3.12.4",
"typescript": "^5.5.4",
"vue-tsc": "^2.0.29"
"@nuxt/test-utils": "^3.14.2",
"nuxt": "^3.13.2",
"typescript": "^5.6.2",
"vue-tsc": "^2.1.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/online-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"serve": "vite preview"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.0",
"@vitejs/plugin-vue": "^5.1.4",
"execa": "^9.3.0",
"vite": "^5.3.5"
"vite": "^5.4.8"
},
"dependencies": {
"@vue/repl": "^3.0.0",
"file-saver": "^2.0.5",
"jszip": "^3.10.1",
"pinia": "workspace:*",
"vue": "^3.4.34"
"vue": "^3.5.10"
}
}
2 changes: 1 addition & 1 deletion packages/pinia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
],
"license": "MIT",
"devDependencies": {
"@microsoft/api-extractor": "7.47.3",
"@microsoft/api-extractor": "7.47.9",
"@vue/test-utils": "^2.4.6"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/pinia/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,7 @@ export type _UnwrapAll<SS> = { [K in keyof SS]: UnwrapRef<SS[K]> }
*/
export type _ExtractStateFromSetupStore<SS> = SS extends undefined | void
? {}
: _ExtractStateFromSetupStore_Keys<SS> extends keyof SS
? Pick<SS, _ExtractStateFromSetupStore_Keys<SS>>
: never
: Pick<SS, _ExtractStateFromSetupStore_Keys<SS>>

/**
* For internal use **only**
Expand Down
11 changes: 6 additions & 5 deletions packages/pinia/test-dts/state.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computed, Ref, ref, shallowRef } from 'vue'
import { computed, type Ref, ref, shallowRef } from 'vue'
import { defineStore, expectType } from './'

const name = ref('Eduardo')
Expand All @@ -9,9 +9,9 @@ const double = computed({
counter.value = val / 2
},
})
const nestedRef = ref({ a: ref(0) })

const useStore = defineStore({
id: 'name',
const useStore = defineStore('name', {
state: () => ({
n: 0,
name,
Expand All @@ -20,12 +20,14 @@ const useStore = defineStore({
aRef: ref(0),
aShallowRef: shallowRef({ msg: 'hi' }),
anotherShallowRef: shallowRef({ aRef: ref('hello') }),
nestedRef,
}),

getters: {
myDouble: (state) => {
expectType<number>(state.double)
expectType<number>(state.counter)
expectType<number>(state.nestedRef.a)
return state.n * 2
},
other(): undefined {
Expand Down Expand Up @@ -71,8 +73,7 @@ expectType<{ msg: string }>(store.$state.aShallowRef)
expectType<{ aRef: Ref<string> }>(store.anotherShallowRef)
expectType<{ aRef: Ref<string> }>(store.$state.anotherShallowRef)

const onlyState = defineStore({
id: 'main',
const onlyState = defineStore('main', {
state: () => ({
// counter: 0,
// TODO: having only name fails...
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"serve": "vite preview"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.0",
"vite": "^5.3.5"
"@vitejs/plugin-vue": "^5.1.4",
"vite": "^5.4.8"
},
"dependencies": {
"@vueuse/core": "^10.11.0",
"mande": "^2.0.9",
"pinia": "workspace:*",
"swrv": "^1.0.4",
"vue-promised": "^2.2.0",
"vue-router": "^4.4.0"
"vue-router": "^4.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"devDependencies": {
"pinia": "workspace:*",
"tsup": "^8.2.3"
"tsup": "^8.3.0"
},
"peerDependencies": {
"pinia": ">=2.2.1"
Expand Down
Loading

0 comments on commit a44f801

Please sign in to comment.