sql.js 1.11.0 → 1.13.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.
- package/.devcontainer/Dockerfile +7 -36
- package/.devcontainer/devcontainer.json +3 -9
- package/dist/sql-asm-debug.js +66441 -63535
- package/dist/sql-asm-memory-growth.js +110 -108
- package/dist/sql-asm.js +110 -107
- package/dist/sql-wasm-debug.js +889 -776
- package/dist/sql-wasm-debug.wasm +0 -0
- package/dist/sql-wasm.js +95 -96
- package/dist/sql-wasm.wasm +0 -0
- package/dist/sqljs-all.zip +0 -0
- package/dist/sqljs-wasm.zip +0 -0
- package/dist/sqljs-worker-wasm.zip +0 -0
- package/dist/worker.sql-asm-debug.js +66477 -63542
- package/dist/worker.sql-asm.js +146 -114
- package/dist/worker.sql-wasm-debug.js +920 -778
- package/dist/worker.sql-wasm.js +131 -103
- package/package.json +1 -2
package/.devcontainer/Dockerfile
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# We build our DevContainer on MS' Typescript-Node Devcontainer
|
|
2
|
-
# This gives us lots of standard stuff, and lets us layer a few custom things on top, like the Emscripten compiler
|
|
2
|
+
# This gives us lots of standard stuff, and lets us layer a few custom things on top, like the Emscripten compiler
|
|
3
3
|
|
|
4
4
|
# --------------------------------------------------------------------
|
|
5
5
|
# BEGIN Standard MS Devcontainer for Typescript-Node
|
|
6
6
|
|
|
7
7
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.155.1/containers/typescript-node/.devcontainer/base.Dockerfile
|
|
8
8
|
# [Choice] Node.js version: 14, 12, 10
|
|
9
|
-
ARG VARIANT="
|
|
10
|
-
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:
|
|
9
|
+
ARG VARIANT="22-bullseye"
|
|
10
|
+
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:1-${VARIANT}
|
|
11
11
|
|
|
12
12
|
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
|
13
13
|
# ARG EXTRA_NODE_VERSION=10
|
|
@@ -24,7 +24,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
|
|
24
24
|
# Install EMSDK to /emsdk just like the EMSDK Dockerfile: https://github.com/emscripten-core/emsdk/blob/master/docker/Dockerfile
|
|
25
25
|
ENV EMSDK /emsdk
|
|
26
26
|
# We pin the EMSDK version rather than 'latest' so that everyone is using the same compiler version
|
|
27
|
-
ENV EMSCRIPTEN_VERSION
|
|
27
|
+
ENV EMSCRIPTEN_VERSION 4.0.5
|
|
28
28
|
|
|
29
29
|
RUN git clone https://github.com/emscripten-core/emsdk.git $EMSDK
|
|
30
30
|
|
|
@@ -70,36 +70,7 @@ RUN echo 'export EM_NODE_JS="$EMSDK_NODE"' >> /etc/bash.bashrc
|
|
|
70
70
|
# END EMSDK
|
|
71
71
|
# --------------------------------------------------------------------
|
|
72
72
|
|
|
73
|
-
#
|
|
74
|
-
# BEGIN PUPPETEER dependencies
|
|
75
|
-
# Here we install all of the packages depended upon by Chrome (that Puppeteer will use for headless tests).
|
|
76
|
-
# We could also take a page from https://github.com/buildkite/docker-puppeteer/blob/master/Dockerfile instead,
|
|
77
|
-
# and install the latest stable version of Chrome to get the right dependencies, but that version changes over time,
|
|
78
|
-
# so the stable version of Chrome and the version installed by Puppeteer might diverge over time.
|
|
79
|
-
# It also means they end up having Chrome downloaded and installed twice.
|
|
80
|
-
# We could install the particular version of Chrome that our version of Puppeteer would use and then tell Puppeteer not to download its own version of Chrome,
|
|
81
|
-
# but then we'd have to rebuild our Docker container every time we revved Puppeteer, and that feels fiddly too.
|
|
82
|
-
# For all of these reasons, it seems safer to simply install the explicit list packages depended upon by Chrome, assume that's unlikely to change
|
|
83
|
-
# and move on.
|
|
84
|
-
|
|
85
|
-
# List taken from:
|
|
86
|
-
# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix
|
|
73
|
+
# Install wget, gnupg, and sha3sum
|
|
87
74
|
RUN apt-get update \
|
|
88
|
-
&& apt-get install -y wget gnupg \
|
|
89
|
-
&&
|
|
90
|
-
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
|
91
|
-
&& apt-get update \
|
|
92
|
-
&& apt-get install -y google-chrome-stable fonts-freefont-ttf libxss1 libxshmfence1 libglu1 \
|
|
93
|
-
--no-install-recommends \
|
|
94
|
-
# Installs the command "sha3sum", which is used check the download integrity of sqlite source.
|
|
95
|
-
&& apt-get install -y libdigest-sha3-perl \
|
|
96
|
-
&& rm -rf /var/lib/apt/lists/*
|
|
97
|
-
|
|
98
|
-
# We set this env variable (RUN_WORKER_TEST_WITHOUT_PUPPETEER_SANDBOX=1) this to tell our sql.js test harness to run Puppeteer without the sandbox.
|
|
99
|
-
# Otherwise, when we instantiate Puppeteer, we get this error:
|
|
100
|
-
# Puppeteer can't start due to a sandbox error. (Details follow.)
|
|
101
|
-
# [0321/173044.694524:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
|
|
102
|
-
ENV RUN_WORKER_TEST_WITHOUT_PUPPETEER_SANDBOX=1
|
|
103
|
-
|
|
104
|
-
# END PUPPETEER
|
|
105
|
-
# --------------------------------------------------------------------
|
|
75
|
+
&& apt-get install -y wget gnupg libdigest-sha3-perl \
|
|
76
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -4,17 +4,11 @@
|
|
|
4
4
|
"name": "Node.js & TypeScript",
|
|
5
5
|
"build": {
|
|
6
6
|
"dockerfile": "Dockerfile",
|
|
7
|
-
// Update 'VARIANT' to pick a Node version
|
|
7
|
+
// Update 'VARIANT' to pick a Node version
|
|
8
8
|
"args": {
|
|
9
|
-
"VARIANT": "
|
|
10
|
-
}
|
|
9
|
+
"VARIANT": "22-bullseye"
|
|
10
|
+
}
|
|
11
11
|
},
|
|
12
|
-
// Set *default* container specific settings.json values on container create.
|
|
13
|
-
"settings": {},
|
|
14
|
-
// Add the IDs of extensions you want installed when the container is created.
|
|
15
|
-
"extensions": [
|
|
16
|
-
"dbaeumer.vscode-eslint"
|
|
17
|
-
],
|
|
18
12
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
19
13
|
// "forwardPorts": [],
|
|
20
14
|
// Use 'postCreateCommand' to run commands after the container is created.
|