Skip to content

Commit 31fbff1

Browse files
committed
chore: up deps
1 parent 8998646 commit 31fbff1

File tree

13 files changed

+1320
-1388
lines changed

13 files changed

+1320
-1388
lines changed

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
semi: false,
33
trailingComma: 'es5',
44
singleQuote: true,

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@pinia/root",
3-
"packageManager": "[email protected]",
3+
"packageManager": "[email protected]",
4+
"type": "module",
45
"private": true,
56
"workspaces": [
67
"packages/*"
@@ -35,16 +36,16 @@
3536
"@rollup/plugin-terser": "^0.4.4",
3637
"@types/lodash.kebabcase": "^4.1.9",
3738
"@types/node": "^20.14.12",
38-
"@vitest/coverage-v8": "^2.1.4",
39-
"@vitest/ui": "^2.1.4",
40-
"@vue/compiler-sfc": "~3.5.12",
41-
"@vue/server-renderer": "~3.5.12",
39+
"@vitest/coverage-v8": "^2.1.5",
40+
"@vitest/ui": "^2.1.5",
41+
"@vue/compiler-sfc": "~3.5.13",
42+
"@vue/server-renderer": "~3.5.13",
4243
"chalk": "^5.3.0",
4344
"conventional-changelog-cli": "^2.2.2",
4445
"enquirer": "^2.4.1",
4546
"execa": "^9.5.1",
4647
"globby": "^14.0.1",
47-
"happy-dom": "^15.8.0",
48+
"happy-dom": "^15.11.6",
4849
"lint-staged": "^15.2.10",
4950
"lodash.kebabcase": "^4.1.1",
5051
"minimist": "^1.2.8",
@@ -59,8 +60,8 @@
5960
"typedoc": "^0.26.11",
6061
"typedoc-plugin-markdown": "^4.2.10",
6162
"typescript": "~5.6.3",
62-
"vitest": "^2.1.4",
63-
"vue": "~3.5.12"
63+
"vitest": "^2.1.5",
64+
"vue": "~3.5.13"
6465
},
6566
"simple-git-hooks": {
6667
"pre-commit": "pnpm lint-staged",

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@chenfengyuan/vue-countdown": "^2.1.2",
1717
"@vueuse/core": "^11.2.0",
1818
"pinia": "workspace:*",
19-
"vitepress": "1.4.5",
19+
"vitepress": "1.5.0",
2020
"vitepress-translation-helper": "^0.2.1",
2121
"vue-use-spring": "^0.3.3"
2222
}

packages/nuxt/__tests__/nuxt.spec.ts

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

packages/nuxt/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @pinia/nuxt -r 1"
4747
},
4848
"dependencies": {
49-
"@nuxt/kit": "^3.9.0",
49+
"@nuxt/kit": "^3.14.1592",
5050
"pinia": "workspace:^"
5151
},
5252
"devDependencies": {
5353
"@nuxt/module-builder": "^0.8.4",
54-
"@nuxt/schema": "^3.9.0",
54+
"@nuxt/schema": "^3.14.1592",
5555
"@nuxt/test-utils": "^3.14.4",
56-
"nuxt": "^3.13.2",
56+
"nuxt": "^3.14.1592",
5757
"typescript": "^5.6.3",
5858
"vue-tsc": "^2.1.10"
5959
},

packages/nuxt/playground/nuxt.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default defineNuxtConfig({
1010

1111
modules: [piniaModule],
1212

13+
telemetry: {
14+
enabled: false,
15+
},
16+
1317
pinia: {
1418
storesDirs: ['./stores/**', './domain/*/stores'],
1519
},

packages/nuxt/test/nuxt.spec.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { fileURLToPath } from 'node:url'
2+
import { describe, it, expect } from 'vitest'
3+
import { setup, $fetch } from '@nuxt/test-utils/e2e'
4+
5+
describe('works with nuxt', async () => {
6+
await setup({
7+
server: true,
8+
rootDir: fileURLToPath(new URL('../playground', import.meta.url)),
9+
nuxtConfig: {
10+
hooks: {
11+
'vite:extendConfig'(config, { isClient }) {
12+
config.define!.__BROWSER__ = isClient
13+
},
14+
},
15+
vite: {
16+
define: {
17+
__DEV__: false,
18+
__TEST__: true,
19+
__FEATURE_PROD_DEVTOOLS__: false,
20+
__USE_DEVTOOLS__: false,
21+
},
22+
},
23+
},
24+
})
25+
26+
it('works on ssr', async () => {
27+
const html = await $fetch('/')
28+
expect(html).toContain('Count: 101')
29+
})
30+
31+
it('drops state that is marked with skipHydrate', async () => {
32+
const html = await $fetch('/skip-hydrate')
33+
expect(html).not.toContain('I should not be serialized or hydrated')
34+
expect(html).toContain('skipHydrate-wrapped state is correct')
35+
})
36+
})

packages/online-playground/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
"serve": "vite preview"
1010
},
1111
"devDependencies": {
12-
"@vitejs/plugin-vue": "^5.1.4",
12+
"@vitejs/plugin-vue": "^5.2.0",
1313
"execa": "^9.5.1",
14-
"vite": "^5.4.10"
14+
"vite": "^5.4.11"
1515
},
1616
"dependencies": {
1717
"@vue/repl": "^3.0.0",
1818
"file-saver": "^2.0.5",
1919
"jszip": "^3.10.1",
2020
"pinia": "workspace:*",
21-
"vue": "^3.5.12"
21+
"vue": "^3.5.13"
2222
}
2323
}

packages/playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"serve": "vite preview"
99
},
1010
"devDependencies": {
11-
"@vitejs/plugin-vue": "^5.1.4",
12-
"vite": "^5.4.10"
11+
"@vitejs/plugin-vue": "^5.2.0",
12+
"vite": "^5.4.11"
1313
},
1414
"dependencies": {
1515
"@vueuse/core": "^11.2.0",

packages/playground/vite.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { defineConfig, Plugin } from 'vite'
2-
import vue from '@vitejs/plugin-vue'
2+
import Vue from '@vitejs/plugin-vue'
33
import { promises as fs } from 'fs'
44
import path from 'path'
55

66
// https://vitejs.dev/config/
77
export default defineConfig({
8-
plugins: [vue(), copyPiniaPlugin()],
8+
plugins: [Vue(), copyPiniaPlugin()],
99
define: {
1010
__DEV__: 'true',
1111
// __BROWSER__: 'true',
@@ -17,6 +17,7 @@ export default defineConfig({
1717
// },
1818
dedupe: ['vue-demi', 'vue', 'pinia'],
1919
alias: {
20+
// FIXME: use fileToUrl
2021
pinia: path.resolve(__dirname, '../pinia/src/index.ts'),
2122
},
2223
},

0 commit comments

Comments
 (0)