mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 18:46:17 +00:00
build(deps): bump pyodide from 0.21.2 to 0.21.3 (#1144)
* build(deps): bump pyodide from 0.21.2 to 0.21.3 Bumps [pyodide](https://github.com/pyodide/pyodide) from 0.21.2 to 0.21.3. - [Release notes](https://github.com/pyodide/pyodide/releases) - [Commits](https://github.com/pyodide/pyodide/compare/0.21.2...0.21.3) --- updated-dependencies: - dependency-name: pyodide dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * [dependabot skip] Fix yarn.lock * update patch for pyodide 0.21.3 * make use of new pyodide version export * fix breaking change in loadPyodide indexURL Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot-fix <dependabot-fix@example.com> Co-authored-by: David Lechner <david@pybricks.com>
This commit is contained in:
co-authored by
dependabot-fix
David Lechner
parent
64a52a8352
commit
6c373c302c
@@ -6,8 +6,7 @@
|
||||
// NB: We need to be very careful about imports here since many libraries for
|
||||
// web aren't compatible with web workers!
|
||||
|
||||
import { loadPyodide } from 'pyodide';
|
||||
import pyodidePackage from 'pyodide/package.json';
|
||||
import { loadPyodide, version as pyodideVersion } from 'pyodide';
|
||||
import { ensureError } from '../utils';
|
||||
import {
|
||||
pythonMessageComplete,
|
||||
@@ -53,13 +52,11 @@ pybricks_jedi.initialize()
|
||||
print('preloading done.')
|
||||
`;
|
||||
|
||||
const pyodideVersion = `v${pyodidePackage.version}`;
|
||||
|
||||
async function init(): Promise<void> {
|
||||
console.log('starting Pyodide...');
|
||||
|
||||
const pyodide = await loadPyodide({
|
||||
indexURL: `${location.protocol}${location.host}/pyodide/${pyodideVersion}`,
|
||||
indexURL: `pyodide/${pyodideVersion}`,
|
||||
// REVISIT: would make more sense provide our own
|
||||
lockFileURL: new URL('pyodide/repodata.json', import.meta.url).toString(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user