]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: remove old warning
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 27 Apr 2021 12:53:06 +0000 (14:53 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 27 Apr 2021 12:55:49 +0000 (14:55 +0200)
src/rootStore.ts
src/types.ts

index 811b20029e7d88d2a17dc3486af900dd7f9e8bf5..faf4e5b5ed8fac260b4e484330970eff0085f4a2 100644 (file)
@@ -109,6 +109,7 @@ declare module '@vue/runtime-core' {
     /**
      * Cache of stores instantiated by the current instance. Used by map
      * helpers.
+     *
      * @internal
      */
     _pStores?: Record<string, GenericStore>
@@ -151,12 +152,6 @@ export function createPinia(): Pinia {
     },
 
     use(plugin) {
-      /* istanbul ignore next */
-      if (__DEV__ && !__TEST__) {
-        console.warn(
-          `[🍍]: The plugin API has plans to change to bring better extensibility. "pinia.use()" signature will change in the next release. It is recommended to avoid using this API.`
-        )
-      }
       if (!localApp) {
         toBeInstalled.push(plugin)
       } else {
index a7a5a2a410b54ed8b1d3a647eaf14b468f94ad3b..6d1d8a26c58e7a65fed9515c2fdb34b80e3e9191 100644 (file)
@@ -1,4 +1,3 @@
-import { Ref } from 'vue'
 import { Pinia } from './rootStore'
 
 /**