From 5d11f31a06e1dba695705c221d38db25c161bfc8 Mon Sep 17 00:00:00 2001 From: Ophir Lojkine Date: Mon, 30 Nov 2026 16:27:49 +0000 Subject: [PATCH 1/2] Prepare sql.js 1.17.1 and update dependencies --- .devcontainer/Dockerfile | 2 +- .github/workflows/release.yml | 2 +- .node-version | 2 +- README.md | 2 + package-lock.json | 136 +++++++++++++++++----------------- package.json | 6 +- 6 files changed, 76 insertions(+), 74 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index ba7b58cc..05f0003a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -24,7 +24,7 @@ FROM mcr.microsoft.com/devcontainers/typescript-node:${VARIANT} # Install EMSDK to /emsdk just like the EMSDK Dockerfile: https://github.com/emscripten-core/emsdk/blob/master/docker/Dockerfile ENV EMSDK=/emsdk # We pin the EMSDK version rather than 'latest' so that everyone is using the same compiler version -ENV EMSCRIPTEN_VERSION=7.0.0 +ENV EMSCRIPTEN_VERSION=7.0.1 RUN git clone --depth 1 --branch ${EMSCRIPTEN_VERSION} https://github.com/emscripten-core/emsdk.git $EMSDK diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6d49284..a71d2b31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,5 +40,5 @@ jobs: 'dist/sqljs-all.zip#all versions, including non-minified javascript' - name: publish the package to NPM run: | - npm install -g npm@12.2.2 + npm install -g npm@12.2.3 npm publish --provenance --access public diff --git a/.node-version b/.node-version index b74495a0..229b3ce8 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -24.22.2 +24.22.3 diff --git a/README.md b/README.md index 72f9e8df..c82c3125 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ *sql.js* uses [emscripten](https://emscripten.org/docs/introducing_emscripten/about_emscripten.html) to compile [SQLite](http://sqlite.org/about.html) to WebAssembly. It enables SQLite's native math functions and, by default, the [legacy math and string extensions](https://www.sqlite.org/contrib?orderby=date). Calling a legacy function prints a deprecation warning; initialize with `useOldExtensionFunctions: false` to opt into [the next major version's behavior](https://github.com/sql-js/sql.js/pull/619). +`useOldExtensionFunctions` is optional in [`@types/sql.js`](https://www.npmjs.com/package/@types/sql.js) starting with version 1.16.1. + sql.js can be used like any traditional JavaScript library. If you are building a native application in JavaScript (using Electron for instance), or are working in node.js, you will likely prefer to use [a native binding of SQLite to JavaScript](https://www.npmjs.com/package/sqlite3). A native binding will not only be faster because it will run native code, but it will also be able to work on database files directly instead of having to load the entire database in memory, avoiding out of memory errors and further improving performances. SQLite is public domain, sql.js is MIT licensed. diff --git a/package-lock.json b/package-lock.json index 32910068..5778d0bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,25 +1,25 @@ { "name": "sql.js", - "version": "1.17.0", + "version": "1.17.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sql.js", - "version": "1.17.0", + "version": "1.17.1", "license": "MIT", "devDependencies": { "@eslint/js": "^10.0.1", - "clean-jsdoc-theme": "^5.2.1", - "eslint": "^10.14.0", + "clean-jsdoc-theme": "^5.3.0", + "eslint": "^10.16.0", "globals": "^17.14.0", "jsdoc": "^4.0.5" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", - "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.15.tgz", + "integrity": "sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==", "dev": true, "license": "MIT", "engines": { @@ -37,13 +37,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.14.tgz", - "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.15.tgz", + "integrity": "sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.29.14" + "@babel/types": "^7.29.15" }, "bin": { "parser": "bin/babel-parser.js" @@ -53,13 +53,13 @@ } }, "node_modules/@babel/types": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.14.tgz", - "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.15.tgz", + "integrity": "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.14", + "@babel/helper-string-parser": "^7.29.15", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -689,9 +689,9 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.12.3", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.3.tgz", - "integrity": "sha512-R76UKbvsqI68DJJVTVyqFKqU98CN4+B+acxNfEA2IFarSzP0SjtKf/3+fFiXzTyv5Fj3PxLkGHe2wnVWWMxobQ==", + "version": "4.12.4", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.4.tgz", + "integrity": "sha512-1qH3WeISXHFS8P3QI0lntHlMrlfTh1OarxlRbPNDEkSCqoyXC3apBE7MDyRKOL8HpuW48aQtff30wvEFww/4ww==", "dev": true, "license": "MIT", "engines": { @@ -699,9 +699,9 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.23.6", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz", - "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==", + "version": "0.23.7", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.7.tgz", + "integrity": "sha512-Ix1tmZjA7/OmE7ROAfORe83hVnqlDzLpZVHFjHQt5mvLm1U03qMexpaxKqFIL362QV32SoPaZqmKQr3tdqFY2w==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -1083,9 +1083,9 @@ "license": "MIT" }, "node_modules/@types/estree": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", - "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.11.tgz", + "integrity": "sha512-YBdNe5JcjYR0sPhJW1QIeRCmI11YhYvaRuGCs9+WCeTTb+Yhb2BE2XMe5/wAqF10FK5g3+q1PDhQABfT7aX0gg==", "dev": true, "license": "MIT" }, @@ -1278,9 +1278,9 @@ "license": "MIT" }, "node_modules/brace-expansion": { - "version": "5.0.13", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz", - "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.2.tgz", + "integrity": "sha512-ELhY3JEerIBbhgW+rh0/8glkZAaMqn1x3BAvp3yTULSEGozMK/5PT6WTdBgsdvJqwwmv7MAQNOydfYbvK1Vgfw==", "dev": true, "license": "MIT", "dependencies": { @@ -1486,9 +1486,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz", + "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==", "dev": true, "license": "MIT", "dependencies": { @@ -1666,9 +1666,9 @@ } }, "node_modules/eslint": { - "version": "10.15.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz", - "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==", + "version": "10.16.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.16.0.tgz", + "integrity": "sha512-Xu3PRLG/wCaZWZ20gkExUcNqL2mWWsXTR+Lln3Sof4Y9WuA678fH9hrlQ8B6UNwbTnsKdDdBYOd2jxtycXVTGQ==", "dev": true, "license": "MIT", "workspaces": [ @@ -1677,7 +1677,7 @@ "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", - "@eslint/config-array": "^0.23.6", + "@eslint/config-array": "^0.23.7", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", @@ -2000,9 +2000,9 @@ } }, "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.5.0.tgz", + "integrity": "sha512-H1rcmGe7Uf0PeYcuqKoc+/0+b1QX5QEya1kPyJhx4JnZcQateq0R0MGBi6aHSPuptJ/EtnnP94/saw0M3pOJTw==", "dev": true, "license": "ISC" }, @@ -2251,9 +2251,9 @@ } }, "node_modules/hast-util-to-html": { - "version": "9.0.6", - "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.6.tgz", - "integrity": "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.7.tgz", + "integrity": "sha512-HYNDA3qdnzUPitY/LcQm1nWs8z0cWFNH1Nz09jdI/tXifAqF7h3+jrLl4S/b9Mi4VSjn0Dsn54ctuTV6zhBthA==", "dev": true, "license": "MIT", "dependencies": { @@ -2303,9 +2303,9 @@ } }, "node_modules/hast-util-to-mdast": { - "version": "10.1.3", - "resolved": "https://registry.npmjs.org/hast-util-to-mdast/-/hast-util-to-mdast-10.1.3.tgz", - "integrity": "sha512-8Qc3IBGvw+tvOCi606vYSvizX89hxW22GEuXnqSGq0m3cXotDaNo6LUEIuCjIL+kmrCaMeBTtu+aiJ71HoyE7Q==", + "version": "10.1.4", + "resolved": "https://registry.npmjs.org/hast-util-to-mdast/-/hast-util-to-mdast-10.1.4.tgz", + "integrity": "sha512-BxnPC9vneFW17gQtB5YFV30rglJNtQ6KvcNOIUHBYn4E5OvyIm2jWzKQqcERezHq1TZh4RYCOiZgXjeU6qT4nw==", "dev": true, "license": "MIT", "dependencies": { @@ -2323,7 +2323,7 @@ "rehype-minify-whitespace": "^6.0.0", "trim-trailing-lines": "^2.0.0", "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0" + "unist-util-visit": "^5.2.0" }, "funding": { "type": "opencollective", @@ -2345,9 +2345,9 @@ } }, "node_modules/hast-util-to-text": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.3.tgz", - "integrity": "sha512-5yrlWOvGFs6CqHriUpSsNrjzT/Tdo+IOQudbznxOn8K5qblp18MJyzOg8IgDOKQ8MYgQcJA7SusuCjSpDr8mSA==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.5.tgz", + "integrity": "sha512-zQdBtSMatDIbQeO3FuKwl6O+FAol/HtTa8lT4HYd1+w+t+yYqcySxpj9k7+VBNnXBuHiD/ctVUJgyEgIZB2a9Q==", "dev": true, "license": "MIT", "dependencies": { @@ -2722,9 +2722,9 @@ } }, "node_modules/lucide-preact": { - "version": "1.74.0", - "resolved": "https://registry.npmjs.org/lucide-preact/-/lucide-preact-1.74.0.tgz", - "integrity": "sha512-DWVC7Nvz9z9F9aQHKtiY0PYP75K4+FMR8jS7ygYJH1fzIrHybAt+DHSjBIsHCC3ajnpDpQGydlZy9OIkx5NoDw==", + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/lucide-preact/-/lucide-preact-1.84.0.tgz", + "integrity": "sha512-+MYfYl59msUb4apJPz1BtA2/Rw3muTL2j8fOPBPmY2xuySIacIDDnCQFA3QvSg71ZItqQPgtSWieRXRLdhm6QA==", "dev": true, "license": "ISC", "peerDependencies": { @@ -2818,9 +2818,9 @@ } }, "node_modules/mdast-util-find-and-replace": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.4.tgz", - "integrity": "sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.5.tgz", + "integrity": "sha512-of3wZLEBWpK8mSYy8wmKnwyxfUKjhCkXxGLz45DVBqfcahTP37LscCK+0oAZh+ReZ5OunPDkB2zdGMIxrojLhw==", "dev": true, "license": "MIT", "dependencies": { @@ -2925,9 +2925,9 @@ } }, "node_modules/mdast-util-gfm-autolink-literal": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.1.0.tgz", - "integrity": "sha512-Jx6QSK8wDo558Bcf7q+1pe0v81g2PVs09Hlvu9xJHmCFRF3sAPW7vXFVIAwBncs3sde92WbsVqNxwdqViA2XnQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.1.2.tgz", + "integrity": "sha512-rAlbZBGZfv2YRr6lSFGHTN305KkNawOYRRlbldFyPHnTlHJZwlGdzVwyIDvr3fxbhRbmJOSZc06c8H5Fgfu8Ng==", "dev": true, "license": "MIT", "dependencies": { @@ -3051,9 +3051,9 @@ } }, "node_modules/mdast-util-mdx-jsx": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.1.tgz", - "integrity": "sha512-oXp1GIa+E9IwIs3a106+tr3Bz2MlTTBvlXjOZMoIat11kk7vjqgmBnksB9WHmWv+gZh7k3IUgpAHlwHB7DH4GQ==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.2.tgz", + "integrity": "sha512-/0FHaZMv2fSjIL3z/NYmXnQTSdzYyamPpI1BXpSCngTUqpSvMNIlERa26ABz+Z6UFQbrh3I5Yhzp448WZsPfMA==", "dev": true, "license": "MIT", "dependencies": { @@ -3132,9 +3132,9 @@ } }, "node_modules/mdast-util-to-markdown": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.3.tgz", - "integrity": "sha512-dImdB6VZRMRac1SwAW6o1c0ESk/7pFFAMCMuKM+9v7LpTSthMM5nzXpqKw4Mjo66aXVKhNkyrP4bMB9MurPyWg==", + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.5.tgz", + "integrity": "sha512-mxOMQQ8NgisvTarkSUqZwi6GmzNo490V932DpEK/0+OETIeVJBzq4QuMt45fqqcsF5EYMlJENjSSAZxh89VJsg==", "dev": true, "license": "MIT", "dependencies": { @@ -4661,9 +4661,9 @@ } }, "node_modules/stringify-entities": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", - "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.5.tgz", + "integrity": "sha512-jNuI2fNNw5ecxrWmgm90R3iH0Kc/94AQwoQWoSUYphWzvmUA2pjFG34H56Z7Z3FkvH3FpYwwewKAa97oQnPFhw==", "dev": true, "license": "MIT", "dependencies": { @@ -4742,9 +4742,9 @@ } }, "node_modules/tailwind-merge": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.7.0.tgz", - "integrity": "sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==", + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.7.1.tgz", + "integrity": "sha512-v7y4BV4FUlO8exj/4M5UXKeoowDiuugVUg3tkMNIyOUCOHy5xp8+5aWQeXCtZ2491sUV1YPsVeM9EveZ6/xuZQ==", "dev": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index 6102033c..f64f0722 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sql.js", - "version": "1.17.0", + "version": "1.17.1", "description": "SQLite library with support for opening and writing databases, prepared statements, and more. Compiled to WebAssembly with Emscripten, with JavaScript bindings.", "keywords": [ "sql", @@ -50,8 +50,8 @@ }, "devDependencies": { "@eslint/js": "^10.0.1", - "clean-jsdoc-theme": "^5.2.1", - "eslint": "^10.14.0", + "clean-jsdoc-theme": "^5.3.0", + "eslint": "^10.16.0", "globals": "^17.14.0", "jsdoc": "^4.0.5" } From 52e62b7c17011ee5c7f04e2068337596bac53eb8 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Mon, 30 Nov 2026 17:34:25 +0100 Subject: [PATCH 2/2] Update README to remove optional config note Removed mention of `useOldExtensionFunctions` from the README. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index c82c3125..72f9e8df 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,6 @@ *sql.js* uses [emscripten](https://emscripten.org/docs/introducing_emscripten/about_emscripten.html) to compile [SQLite](http://sqlite.org/about.html) to WebAssembly. It enables SQLite's native math functions and, by default, the [legacy math and string extensions](https://www.sqlite.org/contrib?orderby=date). Calling a legacy function prints a deprecation warning; initialize with `useOldExtensionFunctions: false` to opt into [the next major version's behavior](https://github.com/sql-js/sql.js/pull/619). -`useOldExtensionFunctions` is optional in [`@types/sql.js`](https://www.npmjs.com/package/@types/sql.js) starting with version 1.16.1. - sql.js can be used like any traditional JavaScript library. If you are building a native application in JavaScript (using Electron for instance), or are working in node.js, you will likely prefer to use [a native binding of SQLite to JavaScript](https://www.npmjs.com/package/sqlite3). A native binding will not only be faster because it will run native code, but it will also be able to work on database files directly instead of having to load the entire database in memory, avoiding out of memory errors and further improving performances. SQLite is public domain, sql.js is MIT licensed.