@live-change/vue3-ssr 0.9.118 → 0.9.119

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/Api.js +9 -1
  2. package/package.json +4 -4
package/Api.js CHANGED
@@ -40,7 +40,15 @@ class Api extends DaoProxy {
40
40
  setupCaches() {
41
41
  let dao = this.source
42
42
  if(this.settings.cache) {
43
- const cacheSettings = (typeof this.settings.cache) == 'object' ? this.settings.cache : {}
43
+ const userCacheSettings = (typeof this.settings.cache) == 'object' ? this.settings.cache : {}
44
+ const cacheSettings = {
45
+ ...userCacheSettings,
46
+ cacheFilter: (path) => {
47
+ if(userCacheSettings.cacheFilter && !userCacheSettings.cacheFilter(path)) return false
48
+ if(path[0] === 'online') return false /// online tracker is never cached
49
+ return true
50
+ }
51
+ }
44
52
  this.dataCache = new DaoCache(dao, cacheSettings)
45
53
  dao = this.dataCache
46
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-ssr",
3
- "version": "0.9.118",
3
+ "version": "0.9.119",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/dao-vue3": "^0.9.118",
25
- "@live-change/uid": "^0.9.118",
24
+ "@live-change/dao-vue3": "^0.9.119",
25
+ "@live-change/uid": "^0.9.119",
26
26
  "@vueuse/core": "^12.3.0",
27
27
  "debug": "^4.3.4"
28
28
  },
29
- "gitHead": "bacf9b3b71c1bc883d650f3fa4baba0257099629"
29
+ "gitHead": "b93111cbcd227526a64a46e14dda74adf03064fe"
30
30
  }