Skip to content

Commit 9c12c81

Browse files
authored
Merge pull request #14 from powersync-ja/release/0.4.0
powersync-sqlite-core 0.3.0
2 parents c9c1de8 + 95b8ba1 commit 9c12c81

6 files changed

+8
-3
lines changed

.changeset/six-candles-share.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@journeyapps/wa-sqlite": minor
3+
---
4+
5+
powersync-sqlite-core 0.3.0

dist/wa-sqlite-async.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Le)(
128128
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);
129129
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);
130130
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);
131-
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)};
131+
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)};
132132
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=
133133
{parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;k<b.length;++k)h.parameters.push(f[b[k]]);b=new e(h,a)}else{e=[1];f=b.slice(0,1);b=b.slice(1);h={i:127,p:127,j:126,f:125,d:124,e:111};e.push(96);k=b.length;128>k?e.push(k):e.push(k%128|128,k>>7);for(k=0;k<b.length;++k)e.push(h[b[k]]);"v"==f?e.push(0):e.push(1,h[f]);b=[0,97,115,109,1,0,0,0,1];f=e.length;128>f?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,
134134
{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<a.length;c++){var e=a[c];255<e&&(e&=255);b.push(String.fromCharCode(e))}return b.join("")};d.AsciiToString=a=>{for(var b="";;){var c=w[a++];if(!c)return b;b+=String.fromCharCode(c)}};

dist/wa-sqlite-async.wasm

5.04 KB
Binary file not shown.

dist/wa-sqlite.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=Z.Le)(
124124
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);
125125
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);
126126
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);
127-
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)};
127+
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)};
128128
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=
129129
{parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;k<b.length;++k)h.parameters.push(f[b[k]]);b=new e(h,a)}else{e=[1];f=b.slice(0,1);b=b.slice(1);h={i:127,p:127,j:126,f:125,d:124,e:111};e.push(96);k=b.length;128>k?e.push(k):e.push(k%128|128,k>>7);for(k=0;k<b.length;++k)e.push(h[b[k]]);"v"==f?e.push(0):e.push(1,h[f]);b=[0,97,115,109,1,0,0,0,1];f=e.length;128>f?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,
130130
{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<a.length;c++){var e=a[c];255<e&&(e&=255);b.push(String.fromCharCode(e))}return b.join("")};d.AsciiToString=a=>{for(var b="";;){var c=v[a++];if(!c)return b;b+=String.fromCharCode(c)}};

dist/wa-sqlite.wasm

4.36 KB
Binary file not shown.

0 commit comments

Comments
 (0)