@dolthub/doltlite-wasm 0.11.39 → 0.11.41
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.
- package/package.json +1 -1
- package/sqlite3-bundler-friendly.mjs +13 -10
- package/sqlite3-node.mjs +10 -10
- package/sqlite3.mjs +19 -16
- package/sqlite3.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolthub/doltlite-wasm",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.41",
|
|
4
4
|
"description": "DoltLite compiled to WebAssembly: SQLite with Dolt-style version control (branches, commits, merge, diff) for the browser and any JS runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
**
|
|
30
30
|
** SQLITE_VERSION "3.54.0"
|
|
31
31
|
** SQLITE_VERSION_NUMBER 3054000
|
|
32
|
-
** SQLITE_SOURCE_ID "2026-
|
|
32
|
+
** SQLITE_SOURCE_ID "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1"
|
|
33
33
|
**
|
|
34
34
|
** Emscripten SDK: 3.1.74
|
|
35
35
|
*/
|
|
@@ -97,7 +97,7 @@ var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIR
|
|
|
97
97
|
/**
|
|
98
98
|
This file was preprocessed using:
|
|
99
99
|
|
|
100
|
-
./c-pp -o ./bld/pre-js.bundler.js -Dtarget:es6-module -Dtarget:es6-bundler-friendly -DModule.instantiateWasm api/pre-js.c-pp.js
|
|
100
|
+
./c-pp -o ./bld/pre-js.bundler.js -Dtarget:es6-module -Dtarget:es6-bundler-friendly -Dsqlite3.wasm.base64=./jswasm/sqlite3.wasm -DModule.instantiateWasm api/pre-js.c-pp.js
|
|
101
101
|
*/
|
|
102
102
|
/* END FILE: api/pre-js.js. */
|
|
103
103
|
// end include: /home/runner/work/doltlite/doltlite/ext/wasm/bld/pre-js.bundler.js
|
|
@@ -6183,7 +6183,7 @@ Module.runSQLite3PostLoadInit = async function(
|
|
|
6183
6183
|
**
|
|
6184
6184
|
** SQLITE_VERSION "3.54.0"
|
|
6185
6185
|
** SQLITE_VERSION_NUMBER 3054000
|
|
6186
|
-
** SQLITE_SOURCE_ID "2026-
|
|
6186
|
+
** SQLITE_SOURCE_ID "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1"
|
|
6187
6187
|
**
|
|
6188
6188
|
** Emscripten SDK: 3.1.74
|
|
6189
6189
|
*/
|
|
@@ -8433,7 +8433,7 @@ globalThis.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
|
|
|
8433
8433
|
*/
|
|
8434
8434
|
globalThis.sqlite3ApiBootstrap.sqlite3 = undefined;
|
|
8435
8435
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
8436
|
-
sqlite3.version = {"libVersion": "3.54.0", "libVersionNumber": 3054000, "sourceId": "2026-
|
|
8436
|
+
sqlite3.version = {"libVersion": "3.54.0", "libVersionNumber": 3054000, "sourceId": "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1","downloadVersion": 3540000,"scm":{ "sha3-256": "be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1","branch": "trunk","tags": "","datetime": "2026-08-01T15:08:48.942Z"}};
|
|
8437
8437
|
});
|
|
8438
8438
|
/**
|
|
8439
8439
|
2022-07-08
|
|
@@ -14181,8 +14181,8 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
|
14181
14181
|
*/
|
|
14182
14182
|
const __doesNotOwnHandle = new Set();
|
|
14183
14183
|
/**
|
|
14184
|
-
Map of DB instances to objects, each object being a map of
|
|
14185
|
-
wasm pointers to Stmt objects.
|
|
14184
|
+
Map of DB instances to objects, each object being a map of
|
|
14185
|
+
sqlite3_stmt wasm pointers to Stmt objects.
|
|
14186
14186
|
*/
|
|
14187
14187
|
const __stmtMap = new WeakMap();
|
|
14188
14188
|
|
|
@@ -14744,12 +14744,12 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
|
14744
14744
|
try{this.onclose.before(this)}
|
|
14745
14745
|
catch(e){/*ignore*/}
|
|
14746
14746
|
}
|
|
14747
|
-
Object.
|
|
14748
|
-
if(s
|
|
14747
|
+
for(const s of Object.values(__stmtMap.get(this))){
|
|
14748
|
+
if(s?.pointer){
|
|
14749
14749
|
try{s.finalize()}
|
|
14750
|
-
catch(
|
|
14750
|
+
catch(ex){/*ignore*/}
|
|
14751
14751
|
}
|
|
14752
|
-
}
|
|
14752
|
+
}
|
|
14753
14753
|
__ptrMap.delete(this);
|
|
14754
14754
|
__stmtMap.delete(this);
|
|
14755
14755
|
if( !__doesNotOwnHandle.delete(this) ){
|
|
@@ -19144,6 +19144,9 @@ globalThis.sqlite3ApiBootstrap.initializersAsync.push(async (sqlite3)=>{
|
|
|
19144
19144
|
- Also because of that, it does not require the SharedArrayBuffer,
|
|
19145
19145
|
so can function without the COOP/COEP HTTP response headers.
|
|
19146
19146
|
|
|
19147
|
+
- Also because of that, this one is much faster and the performance
|
|
19148
|
+
gap increases as the job sizes increase.
|
|
19149
|
+
|
|
19147
19150
|
- It can hypothetically support Safari 16.4+, whereas the "opfs" VFS
|
|
19148
19151
|
requires v17 due to a subworker/storage bug in 16.x which makes it
|
|
19149
19152
|
incompatible with that VFS.
|
package/sqlite3-node.mjs
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
**
|
|
30
30
|
** SQLITE_VERSION "3.54.0"
|
|
31
31
|
** SQLITE_VERSION_NUMBER 3054000
|
|
32
|
-
** SQLITE_SOURCE_ID "2026-
|
|
32
|
+
** SQLITE_SOURCE_ID "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1"
|
|
33
33
|
**
|
|
34
34
|
** Emscripten SDK: 3.1.74
|
|
35
35
|
*/
|
|
@@ -105,7 +105,7 @@ if (ENVIRONMENT_IS_NODE) {
|
|
|
105
105
|
/**
|
|
106
106
|
This file was preprocessed using:
|
|
107
107
|
|
|
108
|
-
./c-pp -o ./bld/pre-js.node.js -Dtarget:node -Dtarget:es6-module -Dtarget:es6-bundler-friendly -Dunsupported-build -DModule.instantiateWasm api/pre-js.c-pp.js
|
|
108
|
+
./c-pp -o ./bld/pre-js.node.js -Dtarget:node -Dtarget:es6-module -Dtarget:es6-bundler-friendly -Dunsupported-build -Dsqlite3.wasm.base64=./jswasm/sqlite3.wasm -DModule.instantiateWasm api/pre-js.c-pp.js
|
|
109
109
|
*/
|
|
110
110
|
/**
|
|
111
111
|
UNSUPPORTED BUILD:
|
|
@@ -6299,7 +6299,7 @@ Module.runSQLite3PostLoadInit = async function(
|
|
|
6299
6299
|
**
|
|
6300
6300
|
** SQLITE_VERSION "3.54.0"
|
|
6301
6301
|
** SQLITE_VERSION_NUMBER 3054000
|
|
6302
|
-
** SQLITE_SOURCE_ID "2026-
|
|
6302
|
+
** SQLITE_SOURCE_ID "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1"
|
|
6303
6303
|
**
|
|
6304
6304
|
** Emscripten SDK: 3.1.74
|
|
6305
6305
|
*/
|
|
@@ -8549,7 +8549,7 @@ globalThis.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
|
|
|
8549
8549
|
*/
|
|
8550
8550
|
globalThis.sqlite3ApiBootstrap.sqlite3 = undefined;
|
|
8551
8551
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
8552
|
-
sqlite3.version = {"libVersion": "3.54.0", "libVersionNumber": 3054000, "sourceId": "2026-
|
|
8552
|
+
sqlite3.version = {"libVersion": "3.54.0", "libVersionNumber": 3054000, "sourceId": "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1","downloadVersion": 3540000,"scm":{ "sha3-256": "be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1","branch": "trunk","tags": "","datetime": "2026-08-01T15:08:48.942Z"}};
|
|
8553
8553
|
});
|
|
8554
8554
|
/**
|
|
8555
8555
|
2022-07-08
|
|
@@ -14297,8 +14297,8 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
|
14297
14297
|
*/
|
|
14298
14298
|
const __doesNotOwnHandle = new Set();
|
|
14299
14299
|
/**
|
|
14300
|
-
Map of DB instances to objects, each object being a map of
|
|
14301
|
-
wasm pointers to Stmt objects.
|
|
14300
|
+
Map of DB instances to objects, each object being a map of
|
|
14301
|
+
sqlite3_stmt wasm pointers to Stmt objects.
|
|
14302
14302
|
*/
|
|
14303
14303
|
const __stmtMap = new WeakMap();
|
|
14304
14304
|
|
|
@@ -14860,12 +14860,12 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
|
14860
14860
|
try{this.onclose.before(this)}
|
|
14861
14861
|
catch(e){/*ignore*/}
|
|
14862
14862
|
}
|
|
14863
|
-
Object.
|
|
14864
|
-
if(s
|
|
14863
|
+
for(const s of Object.values(__stmtMap.get(this))){
|
|
14864
|
+
if(s?.pointer){
|
|
14865
14865
|
try{s.finalize()}
|
|
14866
|
-
catch(
|
|
14866
|
+
catch(ex){/*ignore*/}
|
|
14867
14867
|
}
|
|
14868
|
-
}
|
|
14868
|
+
}
|
|
14869
14869
|
__ptrMap.delete(this);
|
|
14870
14870
|
__stmtMap.delete(this);
|
|
14871
14871
|
if( !__doesNotOwnHandle.delete(this) ){
|
package/sqlite3.mjs
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
**
|
|
30
30
|
** SQLITE_VERSION "3.54.0"
|
|
31
31
|
** SQLITE_VERSION_NUMBER 3054000
|
|
32
|
-
** SQLITE_SOURCE_ID "2026-
|
|
32
|
+
** SQLITE_SOURCE_ID "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1"
|
|
33
33
|
**
|
|
34
34
|
** Emscripten SDK: 3.1.74
|
|
35
35
|
*/
|
|
@@ -97,7 +97,7 @@ var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIR
|
|
|
97
97
|
/**
|
|
98
98
|
This file was preprocessed using:
|
|
99
99
|
|
|
100
|
-
./c-pp -o ./bld/pre-js.esm.js -Dtarget:es6-module -DModule.instantiateWasm api/pre-js.c-pp.js
|
|
100
|
+
./c-pp -o ./bld/pre-js.esm.js -Dtarget:es6-module -Dsqlite3.wasm.base64=./jswasm/sqlite3.wasm -DModule.instantiateWasm api/pre-js.c-pp.js
|
|
101
101
|
*/
|
|
102
102
|
(function(Module){
|
|
103
103
|
const sIMS =
|
|
@@ -159,12 +159,17 @@ var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIR
|
|
|
159
159
|
It's disabled in the (unsupported/untested) node builds because
|
|
160
160
|
node does not do fetch().
|
|
161
161
|
*/
|
|
162
|
-
Module['instantiateWasm'] = function callee(imports,onSuccess){
|
|
162
|
+
Module['instantiateWasm'] = function callee(imports, onSuccess){
|
|
163
163
|
if( this.emscriptenInstantiateWasm instanceof Function ){
|
|
164
164
|
/* See [tag:locateFile]. Same story here */
|
|
165
165
|
return this.emscriptenInstantiateWasm(imports, onSuccess);
|
|
166
166
|
}
|
|
167
167
|
const sims = this;
|
|
168
|
+
const finalThen = (arg)=>{
|
|
169
|
+
arg.imports = imports;
|
|
170
|
+
sims.instantiateWasm = arg; /* used by sqlite3-api-prologue.c-pp.js */
|
|
171
|
+
onSuccess(arg.instance, arg.module);
|
|
172
|
+
};
|
|
168
173
|
const uri = Module.locateFile(
|
|
169
174
|
sims.wasmFilename, (
|
|
170
175
|
('undefined'===typeof scriptDirectory/*var defined by Emscripten glue*/)
|
|
@@ -172,11 +177,6 @@ var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIR
|
|
|
172
177
|
);
|
|
173
178
|
sims.debugModule("instantiateWasm() uri =", uri, "sIMS =",this);
|
|
174
179
|
const wfetch = ()=>fetch(uri, {credentials: 'same-origin'});
|
|
175
|
-
const finalThen = (arg)=>{
|
|
176
|
-
arg.imports = imports;
|
|
177
|
-
sims.instantiateWasm = arg /* used by sqlite3-api-prologue.c-pp.js */;
|
|
178
|
-
onSuccess(arg.instance, arg.module);
|
|
179
|
-
};
|
|
180
180
|
const loadWasm = WebAssembly.instantiateStreaming
|
|
181
181
|
? async ()=>
|
|
182
182
|
WebAssembly
|
|
@@ -6274,7 +6274,7 @@ Module.runSQLite3PostLoadInit = async function(
|
|
|
6274
6274
|
**
|
|
6275
6275
|
** SQLITE_VERSION "3.54.0"
|
|
6276
6276
|
** SQLITE_VERSION_NUMBER 3054000
|
|
6277
|
-
** SQLITE_SOURCE_ID "2026-
|
|
6277
|
+
** SQLITE_SOURCE_ID "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1"
|
|
6278
6278
|
**
|
|
6279
6279
|
** Emscripten SDK: 3.1.74
|
|
6280
6280
|
*/
|
|
@@ -8524,7 +8524,7 @@ globalThis.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
|
|
|
8524
8524
|
*/
|
|
8525
8525
|
globalThis.sqlite3ApiBootstrap.sqlite3 = undefined;
|
|
8526
8526
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
8527
|
-
sqlite3.version = {"libVersion": "3.54.0", "libVersionNumber": 3054000, "sourceId": "2026-
|
|
8527
|
+
sqlite3.version = {"libVersion": "3.54.0", "libVersionNumber": 3054000, "sourceId": "2026-08-01 15:08:48 be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1","downloadVersion": 3540000,"scm":{ "sha3-256": "be245e136a550faa7c84694156c40dc9778f50b00016892c29a2314bef14alt1","branch": "trunk","tags": "","datetime": "2026-08-01T15:08:48.942Z"}};
|
|
8528
8528
|
});
|
|
8529
8529
|
/**
|
|
8530
8530
|
2022-07-08
|
|
@@ -14272,8 +14272,8 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
|
14272
14272
|
*/
|
|
14273
14273
|
const __doesNotOwnHandle = new Set();
|
|
14274
14274
|
/**
|
|
14275
|
-
Map of DB instances to objects, each object being a map of
|
|
14276
|
-
wasm pointers to Stmt objects.
|
|
14275
|
+
Map of DB instances to objects, each object being a map of
|
|
14276
|
+
sqlite3_stmt wasm pointers to Stmt objects.
|
|
14277
14277
|
*/
|
|
14278
14278
|
const __stmtMap = new WeakMap();
|
|
14279
14279
|
|
|
@@ -14835,12 +14835,12 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
|
|
14835
14835
|
try{this.onclose.before(this)}
|
|
14836
14836
|
catch(e){/*ignore*/}
|
|
14837
14837
|
}
|
|
14838
|
-
Object.
|
|
14839
|
-
if(s
|
|
14838
|
+
for(const s of Object.values(__stmtMap.get(this))){
|
|
14839
|
+
if(s?.pointer){
|
|
14840
14840
|
try{s.finalize()}
|
|
14841
|
-
catch(
|
|
14841
|
+
catch(ex){/*ignore*/}
|
|
14842
14842
|
}
|
|
14843
|
-
}
|
|
14843
|
+
}
|
|
14844
14844
|
__ptrMap.delete(this);
|
|
14845
14845
|
__stmtMap.delete(this);
|
|
14846
14846
|
if( !__doesNotOwnHandle.delete(this) ){
|
|
@@ -19232,6 +19232,9 @@ globalThis.sqlite3ApiBootstrap.initializersAsync.push(async (sqlite3)=>{
|
|
|
19232
19232
|
- Also because of that, it does not require the SharedArrayBuffer,
|
|
19233
19233
|
so can function without the COOP/COEP HTTP response headers.
|
|
19234
19234
|
|
|
19235
|
+
- Also because of that, this one is much faster and the performance
|
|
19236
|
+
gap increases as the job sizes increase.
|
|
19237
|
+
|
|
19235
19238
|
- It can hypothetically support Safari 16.4+, whereas the "opfs" VFS
|
|
19236
19239
|
requires v17 due to a subworker/storage bug in 16.x which makes it
|
|
19237
19240
|
incompatible with that VFS.
|
package/sqlite3.wasm
CHANGED
|
Binary file
|