diff --git a/packages/desktop-cli/package.json b/packages/desktop-cli/package.json index 028588977..079168f81 100644 --- a/packages/desktop-cli/package.json +++ b/packages/desktop-cli/package.json @@ -1,10 +1,5 @@ { "name": "@stlite/desktop-cli", "version": "0.23.0", - "license": "Apache-2.0", - "dependencies": { - "@stlite/desktop": "^0.23.0", - "node-fetch": "2", - "pyodide": "^0.21.3" - } + "license": "Apache-2.0" } diff --git a/packages/desktop/package.json b/packages/desktop/package.json index aac6448b3..295d61410 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -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.21.3/pyodide-build-0.21.3.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt", + "build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.22.1/pyodide-0.22.1.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 .\"", @@ -52,7 +52,7 @@ "dependencies": { "fs-extra": "^10.1.0", "node-fetch": "2", - "pyodide": "^0.21.3", + "pyodide": "0.22.1", "yargs": "^17.5.1" }, "devDependencies": { diff --git a/packages/desktop/pyodide-files.txt b/packages/desktop/pyodide-files.txt index 7c02605b2..391d53bd5 100644 --- a/packages/desktop/pyodide-files.txt +++ b/packages/desktop/pyodide-files.txt @@ -1,4 +1,3 @@ -pyodide/distutils.tar pyodide/openssl-1.1.1n.zip pyodide/pyodide.asm.data pyodide/pyodide.asm.js diff --git a/packages/kernel/package.json b/packages/kernel/package.json index d5eb536c6..d6e6a27b9 100644 --- a/packages/kernel/package.json +++ b/packages/kernel/package.json @@ -26,7 +26,7 @@ "eslint": "^8.21.0", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", - "pyodide": "^0.21.3", + "pyodide": "0.22.1", "typescript": "^4.6.4", "vitest": "^0.21.1" }, diff --git a/packages/kernel/src/worker.ts b/packages/kernel/src/worker.ts index d0ae137ec..52637f9ba 100644 --- a/packages/kernel/src/worker.ts +++ b/packages/kernel/src/worker.ts @@ -50,7 +50,7 @@ async function loadPyodideAndPackages() { console.debug("Import the entrypoint script."); importScripts( pyodideEntrypointUrl ?? - "https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js" + "https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js" ); console.debug("Loading Pyodide"); diff --git a/yarn.lock b/yarn.lock index 058e8c189..5e8e0031f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19732,10 +19732,10 @@ pxls@^2.0.0: is-buffer "^2.0.3" to-uint8 "^1.4.1" -pyodide@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/pyodide/-/pyodide-0.21.3.tgz#0be64868231fa59a5372a1191d157a9e8d83e9d7" - integrity sha512-5fu5P8ys8V8tKTsK9lag0HattbZQuFRdnNzv1LLOLCieM9A96OPs2cF29lPpcD9N+8GuUtfrGCWEMKiupTHUlA== +pyodide@0.22.1: + version "0.22.1" + resolved "https://registry.yarnpkg.com/pyodide/-/pyodide-0.22.1.tgz#45bfab36ef332ec7fed6fb9736ab13ebd54f05d1" + integrity sha512-6+PkFLTC+kcBKtFQxYBxR44J5IBxLm8UGkobLgZv1SxzV9qOU2rb0YYf0qDtlnfDiN/IQd2uckf+D8Zwe88Mqg== dependencies: base-64 "^1.0.0" node-fetch "^2.6.1"