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 22, 2024
1 parent 8998646 commit 31fbff1
Show file tree
Hide file tree
Showing 13 changed files with 1,320 additions and 1,388 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
semi: false,
trailingComma: 'es5',
singleQuote: true,
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@pinia/root",
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"type": "module",
"private": true,
"workspaces": [
"packages/*"
Expand Down Expand Up @@ -35,16 +36,16 @@
"@rollup/plugin-terser": "^0.4.4",
"@types/lodash.kebabcase": "^4.1.9",
"@types/node": "^20.14.12",
"@vitest/coverage-v8": "^2.1.4",
"@vitest/ui": "^2.1.4",
"@vue/compiler-sfc": "~3.5.12",
"@vue/server-renderer": "~3.5.12",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/ui": "^2.1.5",
"@vue/compiler-sfc": "~3.5.13",
"@vue/server-renderer": "~3.5.13",
"chalk": "^5.3.0",
"conventional-changelog-cli": "^2.2.2",
"enquirer": "^2.4.1",
"execa": "^9.5.1",
"globby": "^14.0.1",
"happy-dom": "^15.8.0",
"happy-dom": "^15.11.6",
"lint-staged": "^15.2.10",
"lodash.kebabcase": "^4.1.1",
"minimist": "^1.2.8",
Expand All @@ -59,8 +60,8 @@
"typedoc": "^0.26.11",
"typedoc-plugin-markdown": "^4.2.10",
"typescript": "~5.6.3",
"vitest": "^2.1.4",
"vue": "~3.5.12"
"vitest": "^2.1.5",
"vue": "~3.5.13"
},
"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": "^11.2.0",
"pinia": "workspace:*",
"vitepress": "1.4.5",
"vitepress": "1.5.0",
"vitepress-translation-helper": "^0.2.1",
"vue-use-spring": "^0.3.3"
}
Expand Down
42 changes: 0 additions & 42 deletions packages/nuxt/__tests__/nuxt.spec.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @pinia/nuxt -r 1"
},
"dependencies": {
"@nuxt/kit": "^3.9.0",
"@nuxt/kit": "^3.14.1592",
"pinia": "workspace:^"
},
"devDependencies": {
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.9.0",
"@nuxt/schema": "^3.14.1592",
"@nuxt/test-utils": "^3.14.4",
"nuxt": "^3.13.2",
"nuxt": "^3.14.1592",
"typescript": "^5.6.3",
"vue-tsc": "^2.1.10"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/nuxt/playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export default defineNuxtConfig({

modules: [piniaModule],

telemetry: {
enabled: false,
},

pinia: {
storesDirs: ['./stores/**', './domain/*/stores'],
},
Expand Down
36 changes: 36 additions & 0 deletions packages/nuxt/test/nuxt.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { fileURLToPath } from 'node:url'
import { describe, it, expect } from 'vitest'
import { setup, $fetch } from '@nuxt/test-utils/e2e'

describe('works with nuxt', async () => {
await setup({
server: true,
rootDir: fileURLToPath(new URL('../playground', import.meta.url)),
nuxtConfig: {
hooks: {
'vite:extendConfig'(config, { isClient }) {
config.define!.__BROWSER__ = isClient
},
},
vite: {
define: {
__DEV__: false,
__TEST__: true,
__FEATURE_PROD_DEVTOOLS__: false,
__USE_DEVTOOLS__: false,
},
},
},
})

it('works on ssr', async () => {
const html = await $fetch('/')
expect(html).toContain('Count: 101')
})

it('drops state that is marked with skipHydrate', async () => {
const html = await $fetch('/skip-hydrate')
expect(html).not.toContain('I should not be serialized or hydrated')
expect(html).toContain('skipHydrate-wrapped state is correct')
})
})
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.4",
"@vitejs/plugin-vue": "^5.2.0",
"execa": "^9.5.1",
"vite": "^5.4.10"
"vite": "^5.4.11"
},
"dependencies": {
"@vue/repl": "^3.0.0",
"file-saver": "^2.0.5",
"jszip": "^3.10.1",
"pinia": "workspace:*",
"vue": "^3.5.12"
"vue": "^3.5.13"
}
}
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"serve": "vite preview"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.4",
"vite": "^5.4.10"
"@vitejs/plugin-vue": "^5.2.0",
"vite": "^5.4.11"
},
"dependencies": {
"@vueuse/core": "^11.2.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig, Plugin } from 'vite'
import vue from '@vitejs/plugin-vue'
import Vue from '@vitejs/plugin-vue'
import { promises as fs } from 'fs'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), copyPiniaPlugin()],
plugins: [Vue(), copyPiniaPlugin()],
define: {
__DEV__: 'true',
// __BROWSER__: 'true',
Expand All @@ -17,6 +17,7 @@ export default defineConfig({
// },
dedupe: ['vue-demi', 'vue', 'pinia'],
alias: {
// FIXME: use fileToUrl
pinia: path.resolve(__dirname, '../pinia/src/index.ts'),
},
},
Expand Down
Loading

0 comments on commit 31fbff1

Please sign in to comment.