datahike 0.8.1813 → 0.8.1815

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 (75) hide show
  1. package/boring.data.js +2 -2
  2. package/boring.options.js +7 -7
  3. package/browser/datahike.js +1577 -1576
  4. package/cljs.cache.js +3 -3
  5. package/cljs.core.async.impl.channels.js +2 -2
  6. package/cljs.core.js +109 -109
  7. package/cljs.reader.js +2 -2
  8. package/cljs.spec.alpha.js +32 -32
  9. package/cljs.tools.reader.edn.js +7 -7
  10. package/cljs.tools.reader.impl.errors.js +2 -2
  11. package/cljs.tools.reader.impl.inspect.js +4 -4
  12. package/cljs.tools.reader.impl.utils.js +2 -2
  13. package/cljs_env.js +8 -8
  14. package/cljs_node_io.core.js +3 -3
  15. package/cljs_node_io.file.js +6 -6
  16. package/clojure.data.js +4 -4
  17. package/clojure.string.js +2 -2
  18. package/clojure.walk.js +25 -24
  19. package/datahike.api.impl.js +3 -3
  20. package/datahike.api.js +11 -11
  21. package/datahike.api.specification.js +57 -57
  22. package/datahike.api.types.js +12 -12
  23. package/datahike.array.js +4 -4
  24. package/datahike.config.js +27 -27
  25. package/datahike.connections.js +2 -2
  26. package/datahike.connector.js +58 -58
  27. package/datahike.constants.js +1 -1
  28. package/datahike.datom.js +3 -3
  29. package/datahike.db.interface.js +3 -3
  30. package/datahike.db.js +43 -43
  31. package/datahike.db.search.js +12 -12
  32. package/datahike.db.utils.js +24 -24
  33. package/datahike.gc.js +4 -4
  34. package/datahike.gc_guard.js +1 -1
  35. package/datahike.impl.entity.js +5 -5
  36. package/datahike.index.interface.js +11 -11
  37. package/datahike.index.persistent_set.js +84 -84
  38. package/datahike.index.secondary.js +2 -2
  39. package/datahike.js.api.js +130 -130
  40. package/datahike.lru.js +2 -2
  41. package/datahike.pull_api.js +4 -4
  42. package/datahike.query.js +750 -750
  43. package/datahike.readers.js +5 -5
  44. package/datahike.schema.js +19 -19
  45. package/datahike.store.js +21 -21
  46. package/datahike.writer.js +516 -516
  47. package/datahike.writing.js +22 -22
  48. package/datalog.parser.pull.js +2 -2
  49. package/datalog.parser.type.js +16 -16
  50. package/environ.core.js +2 -2
  51. package/fress.impl.raw_input.js +1 -1
  52. package/fress.reader.js +3 -3
  53. package/fress.util.js +5 -5
  54. package/fress.writer.js +1 -1
  55. package/hasch.benc.js +1 -1
  56. package/hasch.core.js +1 -1
  57. package/hasch.platform.js +12 -12
  58. package/is.simm.partial_cps.sequence.js +1 -1
  59. package/konserve.compressor.js +6 -6
  60. package/konserve.core.js +22 -22
  61. package/konserve.encryptor.js +7 -7
  62. package/konserve.node_filestore.js +340 -340
  63. package/konserve.protocols.js +1 -1
  64. package/konserve.serializers.js +12 -12
  65. package/konserve.store.js +30 -30
  66. package/konserve.utils.js +4 -4
  67. package/malli.core.js +118 -118
  68. package/malli.error.js +30 -30
  69. package/org.replikativ.persistent_sorted_set.btset.js +99 -99
  70. package/org.replikativ.persistent_sorted_set.fressian.js +3 -3
  71. package/package.json +1 -1
  72. package/s3/datahike.js +2989 -2990
  73. package/superv.async.js +9 -9
  74. package/tailrecursion.priority_map.js +3 -3
  75. package/taoensso.trove.console.js +2 -2
package/cljs.cache.js CHANGED
@@ -1,11 +1,11 @@
1
1
  var window=global;var $CLJS=require("./cljs_env.js");require("./cljs.core.js");require("./tailrecursion.priority_map.js");
2
2
  'use strict';var poa;
3
- poa=function(a,b){return $CLJS.gj.h($CLJS.SF(),$CLJS.Xh.h($CLJS.uo.h(b-$CLJS.Se(a),function(){return function e(d){return new $CLJS.xg(null,function(){for(;;){var f=$CLJS.y(d);if(f){if($CLJS.Ff(f)){var g=$CLJS.zd(f),h=$CLJS.Se(g),l=$CLJS.zg(h);a:{for(var k=0;;)if(k<h){var n=$CLJS.jf(g,k);l.add(new $CLJS.N(null,2,5,$CLJS.O,[n,n],null));k+=1}else{g=!0;break a}g=void 0}return g?$CLJS.Dg($CLJS.Gg(l),e($CLJS.Ad(f))):$CLJS.Dg($CLJS.Gg(l),null)}l=$CLJS.z(f);return $CLJS.tg(new $CLJS.N(null,2,5,$CLJS.O,[l,
4
- l],null),e($CLJS.le(f)))}return null}},null,null)}($CLJS.Ko.h(-b,0))}()),function(){return function e(d){return new $CLJS.xg(null,function(){for(;;){var f=$CLJS.y(d);if(f){if($CLJS.Ff(f)){var g=$CLJS.zd(f),h=$CLJS.Se(g),l=$CLJS.zg(h);a:{for(var k=0;;)if(k<h){var n=$CLJS.jf(g,k),p=$CLJS.B(n,0,null);$CLJS.B(n,1,null);l.add(new $CLJS.N(null,2,5,$CLJS.O,[p,0],null));k+=1}else{g=!0;break a}g=void 0}return g?$CLJS.Dg($CLJS.Gg(l),e($CLJS.Ad(f))):$CLJS.Dg($CLJS.Gg(l),null)}l=$CLJS.z(f);g=$CLJS.B(l,0,null);
3
+ poa=function(a,b){return $CLJS.gj.h($CLJS.SF(),$CLJS.Xh.h($CLJS.ro.h(b-$CLJS.Se(a),function(){return function e(d){return new $CLJS.xg(null,function(){for(;;){var f=$CLJS.y(d);if(f){if($CLJS.Ff(f)){var g=$CLJS.zd(f),h=$CLJS.Se(g),l=$CLJS.zg(h);a:{for(var k=0;;)if(k<h){var n=$CLJS.jf(g,k);l.add(new $CLJS.N(null,2,5,$CLJS.O,[n,n],null));k+=1}else{g=!0;break a}g=void 0}return g?$CLJS.Dg($CLJS.Gg(l),e($CLJS.Ad(f))):$CLJS.Dg($CLJS.Gg(l),null)}l=$CLJS.z(f);return $CLJS.tg(new $CLJS.N(null,2,5,$CLJS.O,[l,
4
+ l],null),e($CLJS.le(f)))}return null}},null,null)}($CLJS.Ho.h(-b,0))}()),function(){return function e(d){return new $CLJS.xg(null,function(){for(;;){var f=$CLJS.y(d);if(f){if($CLJS.Ff(f)){var g=$CLJS.zd(f),h=$CLJS.Se(g),l=$CLJS.zg(h);a:{for(var k=0;;)if(k<h){var n=$CLJS.jf(g,k),p=$CLJS.B(n,0,null);$CLJS.B(n,1,null);l.add(new $CLJS.N(null,2,5,$CLJS.O,[p,0],null));k+=1}else{g=!0;break a}g=void 0}return g?$CLJS.Dg($CLJS.Gg(l),e($CLJS.Ad(f))):$CLJS.Dg($CLJS.Gg(l),null)}l=$CLJS.z(f);g=$CLJS.B(l,0,null);
5
5
  $CLJS.B(l,1,null);return $CLJS.tg(new $CLJS.N(null,2,5,$CLJS.O,[g,0],null),e($CLJS.le(f)))}return null}},null,null)}(a)}()))};$CLJS.UF=function(a,b,c,d){this.cache=a;this.gd=b;this.dg=c;this.cb=d;this.C=10487566;this.H=131072};$CLJS.VF=function(a,b){b=$CLJS.bh(b);b=$CLJS.mf(b,$CLJS.Pu,32);return(new $CLJS.UF($CLJS.ah,$CLJS.SF(),0,b)).Hg(a)};$CLJS.WF=new $CLJS.be("cljs.cache","-conj","cljs.cache/-conj",837886777,null);$CLJS.XF=new $CLJS.be("cljs.cache","-empty","cljs.cache/-empty",-190310872,null);var qoa;
6
6
  qoa=function(){function a(d,e,f){var g=$CLJS.YF[$CLJS.Xa(d==null?null:d)];if(g!=null)return g.i?g.i(d,e,f):g.call(null,d,e,f);g=$CLJS.YF._;if(g!=null)return g.i?g.i(d,e,f):g.call(null,d,e,f);throw $CLJS.Tb("CacheProtocol.lookup",d);}function b(d,e){var f=$CLJS.YF[$CLJS.Xa(d==null?null:d)];if(f!=null)return f.h?f.h(d,e):f.call(null,d,e);f=$CLJS.YF._;if(f!=null)return f.h?f.h(d,e):f.call(null,d,e);throw $CLJS.Tb("CacheProtocol.lookup",d);}var c=null;c=function(d,e,f){switch(arguments.length){case 2:return b.call(this,d,
7
7
  e);case 3:return a.call(this,d,e,f)}throw Error("Invalid arity: "+arguments.length);};c.h=b;c.i=a;return c}();$CLJS.YF=function YF(a){switch(arguments.length){case 2:return YF.h(arguments[0],arguments[1]);case 3:return YF.i(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};$CLJS.YF.h=function(a,b){return a!=null&&a.oi!=null?a.oi(a,b):qoa(a,b)};$CLJS.YF.i=function(a,b,c){return a!=null&&a.dl!=null?a.dl(a,b,c):qoa(a,b,c)};$CLJS.YF.J=3;
8
8
  $CLJS.m=$CLJS.UF.prototype;$CLJS.m.toString=function(){return""+$CLJS.T.g(this.cache)+$CLJS.T.g(",")+$CLJS.T.g(" ")+$CLJS.T.g(this.gd)+$CLJS.T.g(",")+$CLJS.T.g(" ")+$CLJS.T.g(this.dg)+$CLJS.T.g(",")+$CLJS.T.g(" ")+$CLJS.T.g(this.cb)};$CLJS.m.U=function(a,b){return $CLJS.A.h(b,this.cache)};$CLJS.m.ba=function(a,b){return this.Hg($CLJS.WF.h?$CLJS.WF.h(this.cache,b):$CLJS.WF.call(null,this.cache,b))};$CLJS.m.Ha=function(){return this.Hg($CLJS.XF.g?$CLJS.XF.g(this.cache):$CLJS.XF.call(null,this.cache))};
9
9
  $CLJS.m.X=function(){return $CLJS.fc(this.cache)};$CLJS.m.V=function(){return $CLJS.gd(this.cache)};$CLJS.m.oi=function(a,b){return $CLJS.C(this.cache,b)};$CLJS.m.dl=function(a,b,c){return $CLJS.mf(this.cache,b,c)};$CLJS.m.Gg=function(a,b){return $CLJS.Pf(this.cache,b)};$CLJS.m.wj=$CLJS.Va(84);
10
- $CLJS.m.pi=function(a,b,c){a=this.dg+1;if($CLJS.Se(this.gd)>=this.cb){var d=$CLJS.Pf(this.gd,b)?b:$CLJS.z($CLJS.vf(this.gd));c=$CLJS.ck.i($CLJS.oo.h(this.cache,d),b,c);b=$CLJS.ck.i($CLJS.oo.h(this.gd,d),b,a);return new $CLJS.UF(c,b,a,this.cb)}return new $CLJS.UF($CLJS.ck.i(this.cache,b,c),$CLJS.ck.i(this.gd,b,a),a,this.cb)};$CLJS.m.ni=function(a,b){return $CLJS.Pf(this.cache,b)?new $CLJS.UF($CLJS.oo.h(this.cache,b),$CLJS.oo.h(this.gd,b),this.dg+1,this.cb):this};
10
+ $CLJS.m.pi=function(a,b,c){a=this.dg+1;if($CLJS.Se(this.gd)>=this.cb){var d=$CLJS.Pf(this.gd,b)?b:$CLJS.z($CLJS.vf(this.gd));c=$CLJS.ck.i($CLJS.lo.h(this.cache,d),b,c);b=$CLJS.ck.i($CLJS.lo.h(this.gd,d),b,a);return new $CLJS.UF(c,b,a,this.cb)}return new $CLJS.UF($CLJS.ck.i(this.cache,b,c),$CLJS.ck.i(this.gd,b,a),a,this.cb)};$CLJS.m.ni=function(a,b){return $CLJS.Pf(this.cache,b)?new $CLJS.UF($CLJS.lo.h(this.cache,b),$CLJS.lo.h(this.gd,b),this.dg+1,this.cb):this};
11
11
  $CLJS.m.Hg=function(a){return new $CLJS.UF(a,poa(a,this.cb),0,this.cb)};$CLJS.m.fa=function(){return this.cache.iterator()};$CLJS.m.K=function(a,b,c){return this.pi(null,b,c)};$CLJS.m.ea=function(a,b){return this.Gg(null,b)};$CLJS.m.ia=function(a,b){return this.ni(null,b)};$CLJS.m.aa=function(a,b){return this.G(null,b,null)};$CLJS.m.G=function(a,b,c){return $CLJS.u(this.Gg(null,b))?this.oi(null,b):c};
@@ -4,7 +4,7 @@ bz=function(a,b,c){bz=Function.prototype.bind&&Function.prototype.bind.toString(
4
4
  xja=function(){var a=$CLJS.sa.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!$CLJS.xa("Presto")&&(a=function(){var e=wja();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=bz(function(l){if((h=="*"||l.origin==h)&&l.data==g)this.port1.onmessage()},this);
5
5
  f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}});if(typeof a!=="undefined"&&!$CLJS.xa("Trident")&&!$CLJS.xa("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.ki;c.ki=null;e()}};return function(e){d.next={ki:e};d=d.next;b.port2.postMessage(0)}}return function(e){$CLJS.sa.setTimeout(e,0)}};
6
6
  cz=function(a,b){if(a!=null&&a.kl!=null)a=a.kl(a,b);else{var c=cz[$CLJS.Xa(a==null?null:a)];if(c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else if(c=cz._,c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else throw $CLJS.Tb("Buffer.add!*",a);}return a};yja=function(){dz=!0;ez=!1;for(var a=0;;){var b=$CLJS.az.pop();if(b!=null&&(b.m?b.m():b.call(null),a<1024)){a+=1;continue}break}dz=!1;return $CLJS.az.length>0?fz.m?fz.m():fz.call(null):null};
7
- fz=function(){if(ez&&dz)return null;ez=!0;typeof $CLJS.sa.setImmediate!=="function"||$CLJS.sa.Window&&$CLJS.sa.Window.prototype&&!$CLJS.xa("Edge")&&$CLJS.sa.Window.prototype.setImmediate==$CLJS.sa.setImmediate?(gz||(gz=xja()),gz(yja)):$CLJS.sa.setImmediate(yja)};$CLJS.hz=function(a){$CLJS.az.unbounded_unshift(a);return fz()};iz=function(a,b){this.N=a;this.Hr=b;this.C=425984;this.H=0};$CLJS.jz=function(a){return new iz(a,$CLJS.ah)};
7
+ fz=function(){if(ez&&dz)return null;ez=!0;typeof $CLJS.sa.setImmediate!=="function"||$CLJS.sa.Window&&$CLJS.sa.Window.prototype&&!$CLJS.xa("Edge")&&$CLJS.sa.Window.prototype.setImmediate==$CLJS.sa.setImmediate?(gz||(gz=xja()),gz(yja)):$CLJS.sa.setImmediate(yja)};$CLJS.hz=function(a){$CLJS.az.unbounded_unshift(a);return fz()};iz=function(a,b){this.N=a;this.Gr=b;this.C=425984;this.H=0};$CLJS.jz=function(a){return new iz(a,$CLJS.ah)};
8
8
  $CLJS.kz=function(a,b,c,d){this.di=a;this.Gj=0;this.Wf=b;this.Fj=0;this.ma=c;this.closed=!1;this.re=d};$CLJS.zja=function(a){for(;;){var b=a.Wf.pop();if(b!=null){var c=b.Ki,d=b.N;if(c.Ad(null)){var e=c.cd(null);$CLJS.hz(function(f){return function(){return f.g?f.g(!0):f.call(null,!0)}}(e,c,d,b,a))}else continue}break}a.Wf.cleanup($CLJS.uh(!1));a.oh(null)};Aja=function(a){console.log(a);return null};Bja=function(a,b,c){b=$CLJS.u(b)?b:Aja;c=b.g?b.g(c):b.call(null,c);return c==null?a:lz.h(a,c)};
9
9
  $CLJS.Cja=function(a,b,c){return new $CLJS.kz(new $CLJS.$y(Array(32)),new $CLJS.$y(Array(32)),a,function(){var d=$CLJS.u(b)?b.g?b.g(lz):b.call(null,lz):lz;return function(){function e(h,l){try{return d.h?d.h(h,l):d.call(null,h,l)}catch(k){return Bja(h,c,k)}}function f(h){try{return d.g?d.g(h):d.call(null,h)}catch(l){return Bja(h,c,l)}}var g=null;g=function(h,l){switch(arguments.length){case 1:return f.call(this,h);case 2:return e.call(this,h,l)}throw Error("Invalid arity: "+arguments.length);};g.g=
10
- f;g.h=e;return g}()}())};lz=function lz(a){switch(arguments.length){case 1:return lz.g(arguments[0]);case 2:return lz.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};lz.g=function(a){return a};lz.h=function(a,b){return cz(a,b)};lz.J=2;var dz=!1,ez=!1;iz.prototype.S=function(a,b){return new iz(this.N,b)};iz.prototype.O=function(){return this.Hr};iz.prototype.Pa=function(){return this.N};$CLJS.m=$CLJS.kz.prototype;$CLJS.m.yi=$CLJS.Va(58);$CLJS.m.Xp=$CLJS.Wd;$CLJS.m.Aj=$CLJS.Va(60);$CLJS.m.Wp=$CLJS.Wd;$CLJS.m.oh=$CLJS.Va(57);
10
+ f;g.h=e;return g}()}())};lz=function lz(a){switch(arguments.length){case 1:return lz.g(arguments[0]);case 2:return lz.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};lz.g=function(a){return a};lz.h=function(a,b){return cz(a,b)};lz.J=2;var dz=!1,ez=!1;iz.prototype.S=function(a,b){return new iz(this.N,b)};iz.prototype.O=function(){return this.Gr};iz.prototype.Pa=function(){return this.N};$CLJS.m=$CLJS.kz.prototype;$CLJS.m.yi=$CLJS.Va(58);$CLJS.m.Xp=$CLJS.Wd;$CLJS.m.Aj=$CLJS.Va(60);$CLJS.m.Wp=$CLJS.Wd;$CLJS.m.oh=$CLJS.Va(57);