@duckdb/duckdb-wasm 1.27.1-dev125.0 → 1.28.0

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 (35) hide show
  1. package/dist/duckdb-browser-blocking.cjs +1 -1
  2. package/dist/duckdb-browser-blocking.cjs.map +3 -3
  3. package/dist/duckdb-browser-blocking.mjs +1 -1
  4. package/dist/duckdb-browser-blocking.mjs.map +3 -3
  5. package/dist/duckdb-browser-coi.pthread.worker.js +1 -1
  6. package/dist/duckdb-browser-coi.pthread.worker.js.map +3 -3
  7. package/dist/duckdb-browser-coi.worker.js +1 -1
  8. package/dist/duckdb-browser-coi.worker.js.map +3 -3
  9. package/dist/duckdb-browser-eh.worker.js +1 -1
  10. package/dist/duckdb-browser-eh.worker.js.map +3 -3
  11. package/dist/duckdb-browser-mvp.worker.js +1 -1
  12. package/dist/duckdb-browser-mvp.worker.js.map +3 -3
  13. package/dist/duckdb-browser.cjs +1 -1
  14. package/dist/duckdb-browser.cjs.map +2 -2
  15. package/dist/duckdb-browser.mjs +1 -1
  16. package/dist/duckdb-browser.mjs.map +2 -2
  17. package/dist/duckdb-coi.wasm +0 -0
  18. package/dist/duckdb-eh.wasm +0 -0
  19. package/dist/duckdb-mvp.wasm +0 -0
  20. package/dist/duckdb-node-blocking.cjs +4 -4
  21. package/dist/duckdb-node-blocking.cjs.map +3 -3
  22. package/dist/duckdb-node-eh.worker.cjs +4 -4
  23. package/dist/duckdb-node-eh.worker.cjs.map +3 -3
  24. package/dist/duckdb-node-mvp.worker.cjs +3 -3
  25. package/dist/duckdb-node-mvp.worker.cjs.map +3 -3
  26. package/dist/duckdb-node.cjs +1 -1
  27. package/dist/duckdb-node.cjs.map +2 -2
  28. package/dist/img/duckdb_version_badge.svg +1 -1
  29. package/dist/tests-browser.js +11 -22
  30. package/dist/tests-browser.js.map +2 -2
  31. package/dist/tests-node.cjs +10 -22
  32. package/dist/tests-node.cjs.map +2 -2
  33. package/dist/types/src/bindings/index.d.ts +1 -0
  34. package/dist/types/src/targets/duckdb.d.ts +1 -1
  35. package/package.json +8 -8
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="94" height="20" role="img" aria-label="duckdb: v0.9.0"><title>duckdb: v0.9.0</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="94" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="49" height="20" fill="#555"/><rect x="49" width="45" height="20" fill="#007ec6"/><rect width="94" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="255" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="390">duckdb</text><text x="255" y="140" transform="scale(.1)" fill="#fff" textLength="390">duckdb</text><text aria-hidden="true" x="705" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="350">v0.9.0</text><text x="705" y="140" transform="scale(.1)" fill="#fff" textLength="350">v0.9.0</text></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="94" height="20" role="img" aria-label="duckdb: v0.9.1"><title>duckdb: v0.9.1</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="94" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="49" height="20" fill="#555"/><rect x="49" width="45" height="20" fill="#007ec6"/><rect width="94" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="255" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="390">duckdb</text><text x="255" y="140" transform="scale(.1)" fill="#fff" textLength="390">duckdb</text><text aria-hidden="true" x="705" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="350">v0.9.1</text><text x="705" y="140" transform="scale(.1)" fill="#fff" textLength="350">v0.9.1</text></g></svg>
@@ -687,7 +687,6 @@ var duckdb = (() => {
687
687
  var wasmBinary;
688
688
  if (Module["wasmBinary"])
689
689
  wasmBinary = Module["wasmBinary"];
690
- var noExitRuntime = Module["noExitRuntime"] || true;
691
690
  if (typeof WebAssembly != "object") {
692
691
  abort("no native wasm support detected");
693
692
  }
@@ -716,10 +715,6 @@ var duckdb = (() => {
716
715
  var __ATMAIN__ = [];
717
716
  var __ATPOSTRUN__ = [];
718
717
  var runtimeInitialized = false;
719
- var runtimeKeepaliveCounter = 0;
720
- function keepRuntimeAlive() {
721
- return noExitRuntime || runtimeKeepaliveCounter > 0;
722
- }
723
718
  function preRun() {
724
719
  if (Module["preRun"]) {
725
720
  if (typeof Module["preRun"] == "function")
@@ -796,12 +791,8 @@ var duckdb = (() => {
796
791
  throw e;
797
792
  }
798
793
  var dataURIPrefix = "data:application/octet-stream;base64,";
799
- function isDataURI(filename) {
800
- return filename.startsWith(dataURIPrefix);
801
- }
802
- function isFileURI(filename) {
803
- return filename.startsWith("file://");
804
- }
794
+ var isDataURI = (filename) => filename.startsWith(dataURIPrefix);
795
+ var isFileURI = (filename) => filename.startsWith("file://");
805
796
  var wasmBinaryFile;
806
797
  wasmBinaryFile = "./duckdb-mvp.wasm";
807
798
  if (!isDataURI(wasmBinaryFile)) {
@@ -887,6 +878,7 @@ var duckdb = (() => {
887
878
  callbacks.shift()(Module);
888
879
  }
889
880
  };
881
+ var noExitRuntime = Module["noExitRuntime"] || true;
890
882
  var exceptionCaught = [];
891
883
  var uncaughtExceptionCount = 0;
892
884
  var convertI32PairToI53Checked = (lo, hi) => hi + 2097152 >>> 0 < 4194305 - !!lo ? (lo >>> 0) + hi * 4294967296 : NaN;
@@ -2155,6 +2147,8 @@ var duckdb = (() => {
2155
2147
  loc >>>= 0;
2156
2148
  return _strftime(s, maxsize, format, tm);
2157
2149
  }
2150
+ var runtimeKeepaliveCounter = 0;
2151
+ var keepRuntimeAlive = () => noExitRuntime || runtimeKeepaliveCounter > 0;
2158
2152
  var _proc_exit = (code) => {
2159
2153
  EXITSTATUS = code;
2160
2154
  if (!keepRuntimeAlive()) {
@@ -5711,7 +5705,6 @@ var duckdb = (() => {
5711
5705
  var wasmBinary;
5712
5706
  if (Module["wasmBinary"])
5713
5707
  wasmBinary = Module["wasmBinary"];
5714
- var noExitRuntime = Module["noExitRuntime"] || true;
5715
5708
  if (typeof WebAssembly != "object") {
5716
5709
  abort("no native wasm support detected");
5717
5710
  }
@@ -5740,10 +5733,6 @@ var duckdb = (() => {
5740
5733
  var __ATMAIN__ = [];
5741
5734
  var __ATPOSTRUN__ = [];
5742
5735
  var runtimeInitialized = false;
5743
- var runtimeKeepaliveCounter = 0;
5744
- function keepRuntimeAlive() {
5745
- return noExitRuntime || runtimeKeepaliveCounter > 0;
5746
- }
5747
5736
  function preRun() {
5748
5737
  if (Module["preRun"]) {
5749
5738
  if (typeof Module["preRun"] == "function")
@@ -5823,12 +5812,8 @@ var duckdb = (() => {
5823
5812
  throw e;
5824
5813
  }
5825
5814
  var dataURIPrefix = "data:application/octet-stream;base64,";
5826
- function isDataURI(filename) {
5827
- return filename.startsWith(dataURIPrefix);
5828
- }
5829
- function isFileURI(filename) {
5830
- return filename.startsWith("file://");
5831
- }
5815
+ var isDataURI = (filename) => filename.startsWith(dataURIPrefix);
5816
+ var isFileURI = (filename) => filename.startsWith("file://");
5832
5817
  var wasmBinaryFile;
5833
5818
  wasmBinaryFile = "./duckdb-eh.wasm";
5834
5819
  if (!isDataURI(wasmBinaryFile)) {
@@ -5913,6 +5898,7 @@ var duckdb = (() => {
5913
5898
  callbacks.shift()(Module);
5914
5899
  }
5915
5900
  };
5901
+ var noExitRuntime = Module["noExitRuntime"] || true;
5916
5902
  var UTF8Decoder = typeof TextDecoder != "undefined" ? new TextDecoder("utf8") : void 0;
5917
5903
  var UTF8ArrayToString = (heapOrArray, idx, maxBytesToRead) => {
5918
5904
  idx >>>= 0;
@@ -7012,6 +6998,8 @@ var duckdb = (() => {
7012
6998
  loc >>>= 0;
7013
6999
  return _strftime(s, maxsize, format, tm);
7014
7000
  }
7001
+ var runtimeKeepaliveCounter = 0;
7002
+ var keepRuntimeAlive = () => noExitRuntime || runtimeKeepaliveCounter > 0;
7015
7003
  var _proc_exit = (code) => {
7016
7004
  EXITSTATUS = code;
7017
7005
  if (!keepRuntimeAlive()) {
@@ -20061,6 +20049,7 @@ return true;`);
20061
20049
  } else {
20062
20050
  xhr2.open("GET", file.dataUrl, false);
20063
20051
  }
20052
+ xhr2.responseType = "arraybuffer";
20064
20053
  xhr2.setRequestHeader("Range", `bytes=0-0`);
20065
20054
  xhr2.send(null);
20066
20055
  const contentLength2 = xhr2.getResponseHeader("Content-Length");