]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: remove old mentions of Vue 2 v3
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 18 Aug 2025 07:20:18 +0000 (09:20 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 18 Aug 2025 07:20:18 +0000 (09:20 +0200)
README.md
packages/docs/ssr/nuxt.md

index c2c52c6a1983c130e541e879d7ab92696c012496..0ccba8845ca01755f19e9e965fbebaa8a79d211a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -140,7 +140,7 @@ app.use(pinia)
 app.mount('#app')
 ```
 
-For more detailed instructions, including [Nuxt configuration](https://pinia.vuejs.org/ssr/nuxt.html#nuxt-js), check the [Documentation](https://pinia.vuejs.org).
+For more detailed instructions, including [Nuxt configuration](https://pinia.vuejs.org/ssr/nuxt.html), check the [Documentation](https://pinia.vuejs.org).
 
 ### Create a Store
 
index 49aa79983b26a47a664250c01d55e11927df2c69..a6d8013b46658a4f41106fcac9a04293cbbd17ac 100644 (file)
@@ -5,7 +5,7 @@
   title="Learn about SSR best practices"
 />
 
-Using Pinia with [Nuxt](https://nuxt.com/) is easier since Nuxt takes care of a lot of things when it comes to _server side rendering_. For instance, **you don't need to care about serialization nor XSS attacks**. Pinia supports Nuxt Bridge, Nuxt 3 and Nuxt 4. For bare Nuxt 2 support, [see below](#nuxt-2-without-bridge).
+Using Pinia with [Nuxt](https://nuxt.com/) is easier since Nuxt takes care of a lot of things when it comes to _server side rendering_. For instance, **you don't need to care about serialization nor XSS attacks**. Pinia supports Nuxt 3 and 4.
 
 <RuleKitLink />
 
@@ -104,58 +104,3 @@ export default defineNuxtConfig({
 ```
 
 Note the folders are relative to the root of your project. If you change the `srcDir` option, you need to adapt the paths accordingly.
-
-## Nuxt 2 without bridge
-
-Pinia supports Nuxt 2 until `@pinia/nuxt` v0.2.1. Make sure to also install [`@nuxtjs/composition-api`](https://composition-api.nuxtjs.org/) alongside `pinia`:
-
-```bash
-yarn add pinia @pinia/nuxt@0.2.1 @nuxtjs/composition-api
-# or with npm
-npm install pinia @pinia/nuxt@0.2.1 @nuxtjs/composition-api
-```
-
-We supply a _module_ to handle everything for you, you only need to add it to `buildModules` in your `nuxt.config.js` file:
-
-```js
-// nuxt.config.js
-export default {
-  // ... other options
-  buildModules: [
-    // Nuxt 2 only:
-    // https://composition-api.nuxtjs.org/getting-started/setup#quick-start
-    '@nuxtjs/composition-api/module',
-    '@pinia/nuxt',
-  ],
-}
-```
-
-### TypeScript
-
-If you are using Nuxt 2 (`@pinia/nuxt` < 0.3.0) with TypeScript or have a `jsconfig.json`, you should also add the types for `context.pinia`:
-
-```json
-{
-  "types": [
-    // ...
-    "@pinia/nuxt"
-  ]
-}
-```
-
-This will also ensure you have autocompletion ðŸ˜‰ .
-
-### Using Pinia alongside Vuex
-
-It is recommended to **avoid using both Pinia and Vuex** but if you need to use both, you need to tell pinia to not disable it:
-
-```js
-// nuxt.config.js
-export default {
-  buildModules: [
-    '@nuxtjs/composition-api/module',
-    ['@pinia/nuxt', { disableVuex: false }],
-  ],
-  // ... other options
-}
-```