]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: add missing file
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Sep 2020 16:42:41 +0000 (18:42 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Sep 2020 16:42:41 +0000 (18:42 +0200)
README.md
src/deprecated.ts [new file with mode: 0644]

index f1f28be629122e33643cd0cc534344235deb6b26..c57a5f0ce83724b08959495c6d527bcb6b9364d6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -82,7 +82,7 @@ import { createPinia } from 'pinia'
 app.use(createPinia())
 ```
 
-This will also add devtools support.
+This will also add devtools support. Some features like time traveling and editing are still not supported because vue-devtools doesn't expose the necessary APIs yet.
 **NOTE**: this API is still experimental and is currently only used for devtools and SSR but that might change in the future.
 
 ### Creating a Store
diff --git a/src/deprecated.ts b/src/deprecated.ts
new file mode 100644 (file)
index 0000000..06791aa
--- /dev/null
@@ -0,0 +1,8 @@
+import { defineStore } from './store'
+
+export const createStore = ((options: any) => {
+  console.warn(
+    '[🍍]: "createStore" has been deprecated and will be removed on the sable release, use "defineStore" instead.'
+  )
+  return defineStore(options)
+}) as typeof defineStore