Skip to content

Commit 217ccca

Browse files
chore: update SQLite Wasm binaries from master (bc2101b44ea60a737a5911aef970db9de6d0dc21) (#7)
Co-authored-by: jurerotar <[email protected]>
1 parent ee970a6 commit 217ccca

4 files changed

Lines changed: 15 additions & 44 deletions

File tree

src/bin/sqlite3-bundler-friendly.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
**
3030
** SQLITE_VERSION "3.52.0"
3131
** SQLITE_VERSION_NUMBER 3052000
32-
** SQLITE_SOURCE_ID "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5"
32+
** SQLITE_SOURCE_ID "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5"
3333
**
3434
** Emscripten SDK: 4.0.23
3535
*/
@@ -142,6 +142,9 @@ var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIR
142142
https://github.com/emscripten-core/emscripten/issues/17951
143143

144144
In such builds we must disable this.
145+
146+
It's disabled in the (unsupported/untested) node builds because
147+
node does not do fetch().
145148
*/
146149
Module['instantiateWasm'] = function callee(imports,onSuccess){
147150
const sims = this;
@@ -4821,7 +4824,7 @@ Module.runSQLite3PostLoadInit = async function(
48214824
**
48224825
** SQLITE_VERSION "3.52.0"
48234826
** SQLITE_VERSION_NUMBER 3052000
4824-
** SQLITE_SOURCE_ID "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5"
4827+
** SQLITE_SOURCE_ID "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5"
48254828
**
48264829
** Emscripten SDK: 4.0.23
48274830
*/
@@ -6996,7 +6999,7 @@ globalThis.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
69966999
*/
69977000
globalThis.sqlite3ApiBootstrap.sqlite3 = undefined;
69987001
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
6999-
sqlite3.version = {"libVersion": "3.52.0", "libVersionNumber": 3052000, "sourceId": "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5","downloadVersion": 3520000,"scm":{ "sha3-256": "334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5","branch": "trunk","tags": "","datetime": "2026-01-11T16:21:32.127Z"}};
7002+
sqlite3.version = {"libVersion": "3.52.0", "libVersionNumber": 3052000, "sourceId": "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5","downloadVersion": 3520000,"scm":{ "sha3-256": "b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5","branch": "trunk","tags": "","datetime": "2026-01-12T15:43:18.126Z"}};
70007003
});
70017004
/**
70027005
2022-07-08

src/bin/sqlite3-node.mjs

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
**
3030
** SQLITE_VERSION "3.52.0"
3131
** SQLITE_VERSION_NUMBER 3052000
32-
** SQLITE_SOURCE_ID "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5"
32+
** SQLITE_SOURCE_ID "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5"
3333
**
3434
** Emscripten SDK: 4.0.23
3535
*/
@@ -148,41 +148,6 @@ if (ENVIRONMENT_IS_NODE) {
148148
return new URL(path, import.meta.url).href;
149149
}.bind(sIMS);
150150

151-
/**
152-
Override Module.instantiateWasm().
153-
154-
A custom Module.instantiateWasm() does not work in WASMFS builds:
155-
156-
https://github.com/emscripten-core/emscripten/issues/17951
157-
158-
In such builds we must disable this.
159-
*/
160-
Module['instantiateWasm'] = function callee(imports,onSuccess){
161-
const sims = this;
162-
const uri = Module.locateFile(
163-
sims.wasmFilename, (
164-
('undefined'===typeof scriptDirectory/*var defined by Emscripten glue*/)
165-
? "" : scriptDirectory)
166-
);
167-
sims.debugModule("instantiateWasm() uri =", uri, "sIMS =",this);
168-
const wfetch = ()=>fetch(uri, {credentials: 'same-origin'});
169-
const finalThen = (arg)=>{
170-
arg.imports = imports;
171-
sims.instantiateWasm = arg /* used by sqlite3-api-prologue.c-pp.js */;
172-
onSuccess(arg.instance, arg.module);
173-
};
174-
const loadWasm = WebAssembly.instantiateStreaming
175-
? async ()=>
176-
WebAssembly
177-
.instantiateStreaming(wfetch(), imports)
178-
.then(finalThen)
179-
: async ()=>// Safari < v15
180-
wfetch()
181-
.then(response => response.arrayBuffer())
182-
.then(bytes => WebAssembly.instantiate(bytes, imports))
183-
.then(finalThen)
184-
return loadWasm();
185-
}.bind(sIMS);
186151
})(Module);
187152
/* END FILE: api/pre-js.js. */
188153
// end include: ./bld/pre-js.node.js
@@ -4877,7 +4842,7 @@ Module.runSQLite3PostLoadInit = async function(
48774842
**
48784843
** SQLITE_VERSION "3.52.0"
48794844
** SQLITE_VERSION_NUMBER 3052000
4880-
** SQLITE_SOURCE_ID "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5"
4845+
** SQLITE_SOURCE_ID "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5"
48814846
**
48824847
** Emscripten SDK: 4.0.23
48834848
*/
@@ -7052,7 +7017,7 @@ globalThis.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
70527017
*/
70537018
globalThis.sqlite3ApiBootstrap.sqlite3 = undefined;
70547019
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
7055-
sqlite3.version = {"libVersion": "3.52.0", "libVersionNumber": 3052000, "sourceId": "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5","downloadVersion": 3520000,"scm":{ "sha3-256": "334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5","branch": "trunk","tags": "","datetime": "2026-01-11T16:21:32.127Z"}};
7020+
sqlite3.version = {"libVersion": "3.52.0", "libVersionNumber": 3052000, "sourceId": "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5","downloadVersion": 3520000,"scm":{ "sha3-256": "b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5","branch": "trunk","tags": "","datetime": "2026-01-12T15:43:18.126Z"}};
70567021
});
70577022
/**
70587023
2022-07-08

src/bin/sqlite3.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
**
3030
** SQLITE_VERSION "3.52.0"
3131
** SQLITE_VERSION_NUMBER 3052000
32-
** SQLITE_SOURCE_ID "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5"
32+
** SQLITE_SOURCE_ID "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5"
3333
**
3434
** Emscripten SDK: 4.0.23
3535
*/
@@ -142,6 +142,9 @@ var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIR
142142
https://github.com/emscripten-core/emscripten/issues/17951
143143

144144
In such builds we must disable this.
145+
146+
It's disabled in the (unsupported/untested) node builds because
147+
node does not do fetch().
145148
*/
146149
Module['instantiateWasm'] = function callee(imports,onSuccess){
147150
const sims = this;
@@ -4821,7 +4824,7 @@ Module.runSQLite3PostLoadInit = async function(
48214824
**
48224825
** SQLITE_VERSION "3.52.0"
48234826
** SQLITE_VERSION_NUMBER 3052000
4824-
** SQLITE_SOURCE_ID "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5"
4827+
** SQLITE_SOURCE_ID "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5"
48254828
**
48264829
** Emscripten SDK: 4.0.23
48274830
*/
@@ -6996,7 +6999,7 @@ globalThis.sqlite3ApiBootstrap.defaultConfig = Object.create(null);
69966999
*/
69977000
globalThis.sqlite3ApiBootstrap.sqlite3 = undefined;
69987001
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
6999-
sqlite3.version = {"libVersion": "3.52.0", "libVersionNumber": 3052000, "sourceId": "2026-01-11 16:21:32 334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5","downloadVersion": 3520000,"scm":{ "sha3-256": "334b2be57e752672cfcaf764e3bc73e3d00a0a5174e8ef7c3d83c26136bccaf5","branch": "trunk","tags": "","datetime": "2026-01-11T16:21:32.127Z"}};
7002+
sqlite3.version = {"libVersion": "3.52.0", "libVersionNumber": 3052000, "sourceId": "2026-01-12 15:43:18 b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5","downloadVersion": 3520000,"scm":{ "sha3-256": "b57a8215f4259a0aae188b7ee5060f8ff48919303179aae80b58b43ed3b991f5","branch": "trunk","tags": "","datetime": "2026-01-12T15:43:18.126Z"}};
70007003
});
70017004
/**
70027005
2022-07-08

src/bin/sqlite3.wasm

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)