Bruno Predot

Installation pinia-orm

@@ -35,6 +35,16 @@ export default defineNuxtConfig({ @@ -35,6 +35,16 @@ export default defineNuxtConfig({
35 ], 35 ],
36 }, 36 },
37 ], 37 ],
  38 + [
  39 + "@pinia-orm/nuxt",
  40 + {
  41 + autoImports: [
  42 + // automatically imports `useRepo`.
  43 + "useRepo", // import { useRepo } from 'pinia-orm'.
  44 + ["useRepo", "usePinaRepo"], // import { useRepo as usePinaRepo } from 'pinia-orm'.
  45 + ],
  46 + },
  47 + ],
38 "pinia-plugin-persistedstate/nuxt", 48 "pinia-plugin-persistedstate/nuxt",
39 "@nuxt/scripts", 49 "@nuxt/scripts",
40 "@nuxt/test-utils", 50 "@nuxt/test-utils",
@@ -15,14 +15,15 @@ @@ -15,14 +15,15 @@
15 "@nuxt/scripts": "^0.11.6", 15 "@nuxt/scripts": "^0.11.6",
16 "@nuxt/test-utils": "^3.17.2", 16 "@nuxt/test-utils": "^3.17.2",
17 "@nuxt/ui": "^2.22.0", 17 "@nuxt/ui": "^2.22.0",
18 - "@pinia/nuxt": "^0.11.0", 18 + "@pinia-orm/nuxt": "^1.10.2",
  19 + "@pinia/nuxt": "^0.9.0",
19 "@unhead/vue": "^2.0.8", 20 "@unhead/vue": "^2.0.8",
20 "@vueuse/core": "^13.1.0", 21 "@vueuse/core": "^13.1.0",
21 "@vueuse/nuxt": "^13.1.0", 22 "@vueuse/nuxt": "^13.1.0",
22 "eslint": "^9.25.1", 23 "eslint": "^9.25.1",
23 "lucide-vue-next": "^0.503.0", 24 "lucide-vue-next": "^0.503.0",
24 "nuxt": "^3.16.2", 25 "nuxt": "^3.16.2",
25 - "pinia": "^3.0.2", 26 + "pinia": "^2.3.1",
26 "pinia-plugin-persistedstate": "^4.2.0", 27 "pinia-plugin-persistedstate": "^4.2.0",
27 "vue": "^3.5.13", 28 "vue": "^3.5.13",
28 "vue-router": "^4.5.0", 29 "vue-router": "^4.5.0",
@@ -3820,10 +3821,35 @@ @@ -3820,10 +3821,35 @@
3820 "url": "https://opencollective.com/parcel" 3821 "url": "https://opencollective.com/parcel"
3821 } 3822 }
3822 }, 3823 },
  3824 + "node_modules/@pinia-orm/normalizr": {
  3825 + "version": "1.10.2",
  3826 + "resolved": "https://registry.npmjs.org/@pinia-orm/normalizr/-/normalizr-1.10.2.tgz",
  3827 + "integrity": "sha512-lgcCb7ST/leYXJwUT/y7RvTn+5U6OOmvSUuNGs/Mpqrx99IG3R9DSWA3w7n/wl7yDt5+35J0ERK3bebQW1STsQ==",
  3828 + "license": "MIT",
  3829 + "funding": {
  3830 + "url": "https://github.com/sponsors/codedredd"
  3831 + }
  3832 + },
  3833 + "node_modules/@pinia-orm/nuxt": {
  3834 + "version": "1.10.2",
  3835 + "resolved": "https://registry.npmjs.org/@pinia-orm/nuxt/-/nuxt-1.10.2.tgz",
  3836 + "integrity": "sha512-I/dNHuFR2V8K9X6oi5P+EKCbiSRSenbMfMXySmxQOqaMU81f2XVaPVTaq9dgomo9i5mE7x/QqRK49ne8av51ag==",
  3837 + "license": "MIT",
  3838 + "dependencies": {
  3839 + "@nuxt/kit": "^3.12.3",
  3840 + "pinia-orm": "1.10.2"
  3841 + },
  3842 + "funding": {
  3843 + "url": "https://github.com/sponsors/codedredd"
  3844 + },
  3845 + "peerDependencies": {
  3846 + "@pinia/nuxt": "<=0.9.0"
  3847 + }
  3848 + },
3823 "node_modules/@pinia/nuxt": { 3849 "node_modules/@pinia/nuxt": {
3824 - "version": "0.11.0", 3850 + "version": "0.9.0",
3825 - "resolved": "https://registry.npmjs.org/@pinia/nuxt/-/nuxt-0.11.0.tgz", 3851 + "resolved": "https://registry.npmjs.org/@pinia/nuxt/-/nuxt-0.9.0.tgz",
3826 - "integrity": "sha512-QGFlUAkeVAhPCTXacrtNP4ti24sGEleVzmxcTALY9IkS6U5OUox7vmNL1pkqBeW39oSNq/UC5m40ofDEPHB1fg==", 3852 + "integrity": "sha512-2yeRo7LeyCF68AbNeL3xu2h6uw0617RkcsYxmA8DJM0R0PMdz5wQHnc44KeENQxR/Mrq8T910XVT6buosqsjBQ==",
3827 "license": "MIT", 3853 "license": "MIT",
3828 "dependencies": { 3854 "dependencies": {
3829 "@nuxt/kit": "^3.9.0" 3855 "@nuxt/kit": "^3.9.0"
@@ -3832,7 +3858,7 @@ @@ -3832,7 +3858,7 @@
3832 "url": "https://github.com/sponsors/posva" 3858 "url": "https://github.com/sponsors/posva"
3833 }, 3859 },
3834 "peerDependencies": { 3860 "peerDependencies": {
3835 - "pinia": "^3.0.2" 3861 + "pinia": "^2.3.0"
3836 } 3862 }
3837 }, 3863 },
3838 "node_modules/@pkgjs/parseargs": { 3864 "node_modules/@pkgjs/parseargs": {
@@ -13014,12 +13040,13 @@ @@ -13014,12 +13040,13 @@
13014 } 13040 }
13015 }, 13041 },
13016 "node_modules/pinia": { 13042 "node_modules/pinia": {
13017 - "version": "3.0.2", 13043 + "version": "2.3.1",
13018 - "resolved": "https://registry.npmjs.org/pinia/-/pinia-3.0.2.tgz", 13044 + "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.3.1.tgz",
13019 - "integrity": "sha512-sH2JK3wNY809JOeiiURUR0wehJ9/gd9qFN2Y828jCbxEzKEmEt0pzCXwqiSTfuRsK9vQsOflSdnbdBOGrhtn+g==", 13045 + "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==",
13020 "license": "MIT", 13046 "license": "MIT",
13021 "dependencies": { 13047 "dependencies": {
13022 - "@vue/devtools-api": "^7.7.2" 13048 + "@vue/devtools-api": "^6.6.3",
  13049 + "vue-demi": "^0.14.10"
13023 }, 13050 },
13024 "funding": { 13051 "funding": {
13025 "url": "https://github.com/sponsors/posva" 13052 "url": "https://github.com/sponsors/posva"
@@ -13034,6 +13061,22 @@ @@ -13034,6 +13061,22 @@
13034 } 13061 }
13035 } 13062 }
13036 }, 13063 },
  13064 + "node_modules/pinia-orm": {
  13065 + "version": "1.10.2",
  13066 + "resolved": "https://registry.npmjs.org/pinia-orm/-/pinia-orm-1.10.2.tgz",
  13067 + "integrity": "sha512-Q8QwFFdAmhc347QY6ndXtLZX4kE+46dUQbyy0ha6URmdIaz1jf8FbZEJ8BhHMLGPx+PeO/QJraxvvETx62lMQA==",
  13068 + "license": "MIT",
  13069 + "dependencies": {
  13070 + "@pinia-orm/normalizr": "1.10.2",
  13071 + "vue-demi": "^0.14.10"
  13072 + },
  13073 + "funding": {
  13074 + "url": "https://github.com/sponsors/codedredd"
  13075 + },
  13076 + "peerDependencies": {
  13077 + "pinia": "^2.1.7"
  13078 + }
  13079 + },
13037 "node_modules/pinia-plugin-persistedstate": { 13080 "node_modules/pinia-plugin-persistedstate": {
13038 "version": "4.2.0", 13081 "version": "4.2.0",
13039 "resolved": "https://registry.npmjs.org/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-4.2.0.tgz", 13082 "resolved": "https://registry.npmjs.org/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-4.2.0.tgz",
@@ -13058,15 +13101,6 @@ @@ -13058,15 +13101,6 @@
13058 } 13101 }
13059 } 13102 }
13060 }, 13103 },
13061 - "node_modules/pinia/node_modules/@vue/devtools-api": {  
13062 - "version": "7.7.5",  
13063 - "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.5.tgz",  
13064 - "integrity": "sha512-HYV3tJGARROq5nlVMJh5KKHk7GU8Au3IrrmNNqr978m0edxgpHgYPDoNUGrvEgIbObz09SQezFR3A1EVmB5WZg==",  
13065 - "license": "MIT",  
13066 - "dependencies": {  
13067 - "@vue/devtools-kit": "^7.7.5"  
13068 - }  
13069 - },  
13070 "node_modules/pirates": { 13104 "node_modules/pirates": {
13071 "version": "4.0.7", 13105 "version": "4.0.7",
13072 "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", 13106 "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
@@ -17155,6 +17189,32 @@ @@ -17155,6 +17189,32 @@
17155 "ufo": "^1.5.4" 17189 "ufo": "^1.5.4"
17156 } 17190 }
17157 }, 17191 },
  17192 + "node_modules/vue-demi": {
  17193 + "version": "0.14.10",
  17194 + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz",
  17195 + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
  17196 + "hasInstallScript": true,
  17197 + "license": "MIT",
  17198 + "bin": {
  17199 + "vue-demi-fix": "bin/vue-demi-fix.js",
  17200 + "vue-demi-switch": "bin/vue-demi-switch.js"
  17201 + },
  17202 + "engines": {
  17203 + "node": ">=12"
  17204 + },
  17205 + "funding": {
  17206 + "url": "https://github.com/sponsors/antfu"
  17207 + },
  17208 + "peerDependencies": {
  17209 + "@vue/composition-api": "^1.0.0-rc.1",
  17210 + "vue": "^3.0.0-0 || ^2.6.0"
  17211 + },
  17212 + "peerDependenciesMeta": {
  17213 + "@vue/composition-api": {
  17214 + "optional": true
  17215 + }
  17216 + }
  17217 + },
17158 "node_modules/vue-devtools-stub": { 17218 "node_modules/vue-devtools-stub": {
17159 "version": "0.1.0", 17219 "version": "0.1.0",
17160 "resolved": "https://registry.npmjs.org/vue-devtools-stub/-/vue-devtools-stub-0.1.0.tgz", 17220 "resolved": "https://registry.npmjs.org/vue-devtools-stub/-/vue-devtools-stub-0.1.0.tgz",
@@ -21,14 +21,15 @@ @@ -21,14 +21,15 @@
21 "@nuxt/scripts": "^0.11.6", 21 "@nuxt/scripts": "^0.11.6",
22 "@nuxt/test-utils": "^3.17.2", 22 "@nuxt/test-utils": "^3.17.2",
23 "@nuxt/ui": "^2.22.0", 23 "@nuxt/ui": "^2.22.0",
24 - "@pinia/nuxt": "^0.11.0", 24 + "@pinia-orm/nuxt": "^1.10.2",
  25 + "@pinia/nuxt": "^0.9.0",
25 "@unhead/vue": "^2.0.8", 26 "@unhead/vue": "^2.0.8",
26 "@vueuse/core": "^13.1.0", 27 "@vueuse/core": "^13.1.0",
27 "@vueuse/nuxt": "^13.1.0", 28 "@vueuse/nuxt": "^13.1.0",
28 "eslint": "^9.25.1", 29 "eslint": "^9.25.1",
29 "lucide-vue-next": "^0.503.0", 30 "lucide-vue-next": "^0.503.0",
30 "nuxt": "^3.16.2", 31 "nuxt": "^3.16.2",
31 - "pinia": "^3.0.2", 32 + "pinia": "^2.3.1",
32 "pinia-plugin-persistedstate": "^4.2.0", 33 "pinia-plugin-persistedstate": "^4.2.0",
33 "vue": "^3.5.13", 34 "vue": "^3.5.13",
34 "vue-router": "^4.5.0", 35 "vue-router": "^4.5.0",