Skip to content

Commit 2f800a9

Browse files
Merge pull request #143 from pyscript/various-updates
Updated MicroPython and WebR to their latest + Pyodide cache skip
2 parents 6277d34 + 7feb751 commit 2f800a9

File tree

12 files changed

+147
-155
lines changed

12 files changed

+147
-155
lines changed

docs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/zip-BU7PvvcW.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/zip-BU7PvvcW.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm/interpreter/micropython.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const progress = createProgress('mpy');
2727

2828
export default {
2929
type,
30-
module: (version = '1.26.0-preview-293') =>
30+
module: (version = '1.26.0-preview-386') =>
3131
`https://cdn.jsdelivr.net/npm/@micropython/micropython-webassembly-pyscript@${version}/micropython.mjs`,
3232
async engine({ loadMicroPython }, config, url, baseURL) {
3333
const { stderr, stdout, get } = stdio({

esm/interpreter/pyodide.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export default {
8080
// each pyodide version shares its own cache
8181
const storage = new IDBMapSync(`${indexURL}@${version}`);
8282
const options = { indexURL };
83-
const save = config.packages_cache !== 'never';
83+
// 0.28.0 has a bug where lockFileURL cannot be used directly
84+
// https://github.com/pyodide/pyodide/issues/5736
85+
const save = config.packages_cache !== 'never' && version !== '0.28.0';
8486
await storage.sync();
8587
// packages_cache = 'never' means: erase the whole DB
8688
if (!save) storage.clear();

esm/interpreter/webr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const run = async (interpreter, code) => {
1919
export default {
2020
type,
2121
experimental: true,
22-
module: (version = '0.5.3') =>
22+
module: (version = '0.5.5-dev') =>
2323
`https://cdn.jsdelivr.net/npm/webr@${version}/dist/webr.mjs`,
2424
async engine(module, config, _, baseURL) {
2525
const { get } = stdio();

node.importmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"imports": {
33
"http://pyodide": "./test/mocked/pyodide.mjs",
44
"https://cdn.jsdelivr.net/pyodide/v0.27.7/full/pyodide.mjs": "./test/mocked/pyodide.mjs",
5-
"https://cdn.jsdelivr.net/npm/@micropython/[email protected]293/micropython.mjs": "./test/mocked/micropython.mjs",
5+
"https://cdn.jsdelivr.net/npm/@micropython/[email protected]386/micropython.mjs": "./test/mocked/micropython.mjs",
66
"./3rd-party/toml.js": "./test/mocked/toml.mjs"
77
}
88
}

package-lock.json

Lines changed: 126 additions & 139 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polyscript",
3-
"version": "0.18.3",
3+
"version": "0.18.5",
44
"description": "PyScript single core to rule them all",
55
"main": "./esm/index.js",
66
"types": "./types/polyscript/esm/index.d.ts",
@@ -47,15 +47,15 @@
4747
"license": "APACHE-2.0",
4848
"devDependencies": {
4949
"@node-loader/import-maps": "^1.1.0",
50-
"@playwright/test": "^1.54.0",
50+
"@playwright/test": "^1.54.1",
5151
"@rollup/plugin-node-resolve": "^16.0.1",
5252
"@rollup/plugin-terser": "^0.4.4",
53-
"@zip.js/zip.js": "^2.7.63",
53+
"@zip.js/zip.js": "^2.7.64",
5454
"c8": "^10.1.3",
5555
"chokidar": "^4.0.3",
56-
"eslint": "^9.30.1",
56+
"eslint": "^9.31.0",
5757
"linkedom": "^0.18.11",
58-
"rollup": "^4.44.2",
58+
"rollup": "^4.45.1",
5959
"static-handler": "^0.5.3",
6060
"typescript": "^5.8.3"
6161
},
@@ -88,13 +88,13 @@
8888
"@webreflection/utils": "^0.1.1",
8989
"basic-devtools": "^0.1.6",
9090
"codedent": "^0.1.2",
91-
"coincident": "^4.0.21",
91+
"coincident": "^4.0.22",
9292
"html-escaper": "^3.0.3",
93-
"reflected-ffi": "^0.5.8",
93+
"reflected-ffi": "^0.6.0",
9494
"sticky-module": "^0.1.1",
9595
"to-json-callback": "^0.1.1"
9696
},
9797
"worker": {
98-
"blob": "sha256-dq34MgxiBMMlRoz9TM/YS6bAZ+rk4NUBAQ/6dJOiKJ4="
98+
"blob": "sha256-d7SYf82fGwDeepoQQTqVQLvjLDIMpNGufbRrGAk9tM0="
9999
}
100100
}

0 commit comments

Comments
 (0)