Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Pyodide to 0.24.0 #616

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"eject": "craco eject",
"start:electron": "tsc -p electron -w",
"build:electron": "tsc -p electron",
"build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.23.3/pyodide-core-0.23.3.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt",
"build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.24.0/pyodide-core-0.24.0.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt",
"build:bin": "./scripts/build_bin.js && sed -i'' -e '1 s/^#!.*$/#!\\/usr\\/bin\\/env node/' ./bin/*.js",
"typecheck": "yarn tsc --noEmit -p electron",
"start": "concurrently \"cross-env BROWSER=none yarn start:web\" \"wait-on http://localhost:3000 && yarn start:electron\" \"wait-on http://localhost:3000 && tsc -p electron && cross-env NODE_ENV=\"development\" electron .\"",
Expand Down Expand Up @@ -53,7 +53,7 @@
"dependencies": {
"fs-extra": "^10.1.0",
"node-fetch": "2",
"pyodide": "0.23.3",
"pyodide": "0.24.0",
"yargs": "^17.5.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint": "^8.33.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"pyodide": "0.23.3",
"pyodide": "0.24.0",
"typescript": "^4.9.4",
"vitest": "^0.21.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/kernel/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

let pyodide: PyodideInterface;

let httpServer: any;

Check warning on line 15 in packages/kernel/src/worker.ts

View workflow job for this annotation

GitHub Actions / test-kernel

Unexpected any. Specify a different type

interface StliteWorkerContext extends Worker {
postMessage(message: OutMessage, transfer: Transferable[]): void;
Expand All @@ -20,7 +20,7 @@
}

// Ref: https://v4.webpack.js.org/loaders/worker-loader/#loading-with-worker-loader
const ctx: StliteWorkerContext = self as any;

Check warning on line 23 in packages/kernel/src/worker.ts

View workflow job for this annotation

GitHub Actions / test-kernel

Unexpected any. Specify a different type

const initDataPromiseDelegate = new PromiseDelegate<WorkerInitialData>();

Expand Down Expand Up @@ -58,7 +58,7 @@
console.debug("Import the entrypoint script.");
importScripts(
pyodideEntrypointUrl ??
"https://cdn.jsdelivr.net/pyodide/v0.23.3/full/pyodide.js"
"https://cdn.jsdelivr.net/pyodide/v0.24.0/full/pyodide.js"
);

console.debug("Loading Pyodide");
Expand Down Expand Up @@ -317,7 +317,7 @@

httpServer.start_websocket(
path,
(messageProxy: any, binary: boolean) => {

Check warning on line 320 in packages/kernel/src/worker.ts

View workflow job for this annotation

GitHub Actions / test-kernel

Unexpected any. Specify a different type
// XXX: Now there is no session mechanism

if (binary) {
Expand Down
9 changes: 4 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19356,13 +19356,12 @@ pxls@^2.0.0:
is-buffer "^2.0.3"
to-uint8 "^1.4.1"

pyodide@0.23.3:
version "0.23.3"
resolved "https://registry.yarnpkg.com/pyodide/-/pyodide-0.23.3.tgz#eb123f3d9d1223b6194fe965edf2f83cf2a9c87c"
integrity sha512-t95Nu73ENjwoRhThmxvZIHMD7GXTJ3uOt/E0sJ1TxjBvoU/qPys4SV08FtZBMEnpMRKFzE4uecvx2c0qybSZhw==
pyodide@0.24.0:
version "0.24.0"
resolved "https://registry.yarnpkg.com/pyodide/-/pyodide-0.24.0.tgz#d53808acc58380586557177e7fa0eb795c34986b"
integrity sha512-k2TzIbAYQ/ucme0LYv4KmxKDR15m68/3pvPKmUVtdpzn6K9Qt1NLHeZI1RErWJE6PtlQI8UA0Q21wrtu3XPUMg==
dependencies:
base-64 "^1.0.0"
node-fetch "^2.6.1"
ws "^8.5.0"

q@^1.1.2, q@^1.5.1:
Expand Down
Loading