@live-change/dao-vue3 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/live.js +6 -1
  2. package/package.json +3 -3
package/lib/live.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref, onUnmounted, getCurrentInstance, unref, reactive } from 'vue'
1
+ import { ref, onUnmounted, getCurrentInstance, unref, reactive, isRef } from 'vue'
2
2
  import { collectPointers, ExtendedObservableList } from '@live-change/dao'
3
3
  import nodeDebug from 'debug'
4
4
  const debug = nodeDebug('dao-vue3')
@@ -6,6 +6,11 @@ const debug = nodeDebug('dao-vue3')
6
6
  const liveSymbol = Symbol('live')
7
7
 
8
8
  async function live(api, path, onUnmountedCb) {
9
+ if(isRef(path)) {
10
+ /// TODO: support path as ref/computed
11
+ throw new Error('reactive paths not implemented')
12
+ }
13
+
9
14
  if(!onUnmountedCb && typeof window != 'undefined') {
10
15
  if(getCurrentInstance()) {
11
16
  onUnmountedCb = onUnmounted
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-vue3",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "author": {
5
5
  "email": "m8@em8.pl",
6
6
  "name": "Michał Łaszczewski",
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/live-change/live-change-dao/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@live-change/dao": "^0.4.2"
13
+ "@live-change/dao": "^0.4.3"
14
14
  },
15
15
  "description": "Vue.js integration for live-change dao",
16
16
  "directories": {},
@@ -32,5 +32,5 @@
32
32
  "scripts": {
33
33
  "compileTests": "webpack test/*.js tests-bundle.js"
34
34
  },
35
- "gitHead": "d4e1b7c5a3f7000c7587c7f36261fd0775ab150c"
35
+ "gitHead": "aeaabe2aa663d30301cae9e80f1f07ee1a4f382c"
36
36
  }