diff --git a/.changeset/six-candles-share.md b/.changeset/six-candles-share.md new file mode 100644 index 00000000..2cc5d899 --- /dev/null +++ b/.changeset/six-candles-share.md @@ -0,0 +1,5 @@ +--- +"@journeyapps/wa-sqlite": minor +--- + +powersync-sqlite-core 0.3.0 diff --git a/dist/wa-sqlite-async.mjs b/dist/wa-sqlite-async.mjs index de6be05f..b82616ee 100644 --- a/dist/wa-sqlite-async.mjs +++ b/dist/wa-sqlite-async.mjs @@ -128,7 +128,7 @@ d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Le)( d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=V.Se)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=V.Te)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=V.Ue)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=V.Ve)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=V.We)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=V.Xe)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=V.Ye)(a,b); d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=V.Ze)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=V._e)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=V.$e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=V.af)();var $c=d._malloc=a=>($c=d._malloc=V.bf)(a),ed=d._free=a=>(ed=d._free=V.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=V.df)(a);d._set_authorizer=a=>(d._set_authorizer=V.ef)(a); d._create_function=(a,b,c,e,f,h)=>(d._create_function=V.ff)(a,b,c,e,f,h);d._on_tables_changed=(a,b,c,e,f,h)=>(d._on_tables_changed=V.gf)(a,b,c,e,f,h);d._register_table_update_hook=a=>(d._register_table_update_hook=V.hf)(a);d._create_module=(a,b,c,e)=>(d._create_module=V.jf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=V.kf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=V.lf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=V.mf)();var qd=d._main=(a,b)=>(qd=d._main=V.nf)(a,b); -d._setup_powersync=()=>(d._setup_powersync=V.of)();var gb=(a,b)=>(gb=V.qf)(a,b),rd=()=>(rd=V.rf)(),ld=a=>(ld=V.sf)(a),md=a=>(md=V.tf)(a),nd=()=>(nd=V.uf)(),cd=a=>(cd=V.vf)(a),Rc=()=>(Rc=V.wf)(),bd=a=>(bd=V.xf)(a),dd=()=>(dd=V.yf)();d._sqlite3_version=46872;d.getTempRet0=()=>rd();d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:(...h)=>Z(a,b,c,h,e)}; +d._setup_powersync=()=>(d._setup_powersync=V.of)();var gb=(a,b)=>(gb=V.qf)(a,b),rd=()=>(rd=V.rf)(),ld=a=>(ld=V.sf)(a),md=a=>(md=V.tf)(a),nd=()=>(nd=V.uf)(),cd=a=>(cd=V.vf)(a),Rc=()=>(Rc=V.wf)(),bd=a=>(bd=V.xf)(a),dd=()=>(dd=V.yf)();d._sqlite3_version=50840;d.getTempRet0=()=>rd();d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:(...h)=>Z(a,b,c,h,e)}; d.addFunction=(a,b)=>{if(!jd){jd=new WeakMap;var c=hd.length;if(jd)for(var e=0;e<0+c;e++){var f=hd.get(e);f&&jd.set(f,e)}}if(c=jd.get(a)||0)return c;if(kd.length)c=kd.pop();else{try{hd.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=hd.length-1}try{hd.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if("function"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var h= {parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;kk?e.push(k):e.push(k%128|128,k>>7);for(k=0;kf?b.push(f):b.push(f%128|128,f>>7);b.push(...e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b));b=(new WebAssembly.Instance(b, {e:{f:a}})).exports.f}hd.set(c,b)}jd.set(a,c);return c};d.setValue=I;d.getValue=H;d.UTF8ToString=(a,b)=>a?J(w,a,b):"";d.stringToUTF8=(a,b,c)=>K(a,w,b,c);d.lengthBytesUTF8=Ua;d.intArrayFromString=Va;d.intArrayToString=function(a){for(var b=[],c=0;c{for(var b="";;){var c=w[a++];if(!c)return b;b+=String.fromCharCode(c)}}; diff --git a/dist/wa-sqlite-async.wasm b/dist/wa-sqlite-async.wasm index 1d0f4391..cb353fc4 100755 Binary files a/dist/wa-sqlite-async.wasm and b/dist/wa-sqlite-async.wasm differ diff --git a/dist/wa-sqlite.mjs b/dist/wa-sqlite.mjs index 32dab844..d5554a0a 100644 --- a/dist/wa-sqlite.mjs +++ b/dist/wa-sqlite.mjs @@ -124,7 +124,7 @@ d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=Z.Le)( d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=Z.Se)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=Z.Te)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=Z.Ue)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=Z.Ve)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=Z.We)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=Z.Xe)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=Z.Ye)(a,b); d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=Z.Ze)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=Z._e)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=Z.$e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=Z.af)();d._malloc=a=>(d._malloc=Z.bf)(a);d._free=a=>(d._free=Z.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=Z.df)(a);d._set_authorizer=a=>(d._set_authorizer=Z.ef)(a); d._create_function=(a,b,c,e,f,h)=>(d._create_function=Z.ff)(a,b,c,e,f,h);d._on_tables_changed=(a,b,c,e,f,h)=>(d._on_tables_changed=Z.gf)(a,b,c,e,f,h);d._register_table_update_hook=a=>(d._register_table_update_hook=Z.hf)(a);d._create_module=(a,b,c,e)=>(d._create_module=Z.jf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=Z.kf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=Z.lf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=Z.mf)();var Pc=d._main=(a,b)=>(Pc=d._main=Z.nf)(a,b); -d._setup_powersync=()=>(d._setup_powersync=Z.of)();var eb=(a,b)=>(eb=Z.qf)(a,b),Qc=()=>(Qc=Z.rf)(),Mc=a=>(Mc=Z.sf)(a),Kc=a=>(Kc=Z.tf)(a),Lc=()=>(Lc=Z.uf)();d._sqlite3_version=46872;d.getTempRet0=()=>Qc();d.ccall=Y;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:(...h)=>Y(a,b,c,h,e)}; +d._setup_powersync=()=>(d._setup_powersync=Z.of)();var eb=(a,b)=>(eb=Z.qf)(a,b),Qc=()=>(Qc=Z.rf)(),Mc=a=>(Mc=Z.sf)(a),Kc=a=>(Kc=Z.tf)(a),Lc=()=>(Lc=Z.uf)();d._sqlite3_version=50840;d.getTempRet0=()=>Qc();d.ccall=Y;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:(...h)=>Y(a,b,c,h,e)}; d.addFunction=(a,b)=>{if(!Ic){Ic=new WeakMap;var c=Hc.length;if(Ic)for(var e=0;e<0+c;e++){var f=Hc.get(e);f&&Ic.set(f,e)}}if(c=Ic.get(a)||0)return c;if(Jc.length)c=Jc.pop();else{try{Hc.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=Hc.length-1}try{Hc.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if("function"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var h= {parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;kk?e.push(k):e.push(k%128|128,k>>7);for(k=0;kf?b.push(f):b.push(f%128|128,f>>7);b.push(...e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b));b=(new WebAssembly.Instance(b, {e:{f:a}})).exports.f}Hc.set(c,b)}Ic.set(a,c);return c};d.setValue=I;d.getValue=H;d.UTF8ToString=(a,b)=>a?J(v,a,b):"";d.stringToUTF8=(a,b,c)=>K(a,v,b,c);d.lengthBytesUTF8=Ta;d.intArrayFromString=Ua;d.intArrayToString=function(a){for(var b=[],c=0;c{for(var b="";;){var c=v[a++];if(!c)return b;b+=String.fromCharCode(c)}}; diff --git a/dist/wa-sqlite.wasm b/dist/wa-sqlite.wasm index 47824ab8..f1c8c142 100755 Binary files a/dist/wa-sqlite.wasm and b/dist/wa-sqlite.wasm differ diff --git a/powersync-sqlite-core b/powersync-sqlite-core index 8e4d4d18..053f7fca 160000 --- a/powersync-sqlite-core +++ b/powersync-sqlite-core @@ -1 +1 @@ -Subproject commit 8e4d4d18ceb1c0bf5b8a01a310a6aa527f6ffaec +Subproject commit 053f7fca93945f7fd7491e3c53434d59dd68129f