@jupyterlite/pyodide-kernel-extension 0.6.0-alpha.4 → 0.6.0-alpha.6

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/lib/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
  import { PageConfig, URLExt } from '@jupyterlab/coreutils';
4
4
  import { IServiceWorkerManager } from '@jupyterlite/server';
5
- import { IBroadcastChannelWrapper } from '@jupyterlite/contents';
6
5
  import { IKernelSpecs } from '@jupyterlite/kernel';
7
6
  import KERNEL_ICON_SVG_STR from '../style/img/pyodide.svg';
8
7
  export * as KERNEL_SETTINGS_SCHEMA from '../schema/kernel.v0.schema.json';
@@ -10,7 +9,7 @@ const KERNEL_ICON_URL = `data:image/svg+xml;base64,${btoa(KERNEL_ICON_SVG_STR)}`
10
9
  /**
11
10
  * The default CDN fallback for Pyodide
12
11
  */
13
- const PYODIDE_CDN_URL = 'https://cdn.jsdelivr.net/pyodide/v0.27.4/full/pyodide.js';
12
+ const PYODIDE_CDN_URL = 'https://cdn.jsdelivr.net/pyodide/v0.27.5/full/pyodide.js';
14
13
  /**
15
14
  * The id for the extension, and key in the litePlugins.
16
15
  */
@@ -22,8 +21,8 @@ const kernel = {
22
21
  id: PLUGIN_ID,
23
22
  autoStart: true,
24
23
  requires: [IKernelSpecs],
25
- optional: [IServiceWorkerManager, IBroadcastChannelWrapper],
26
- activate: (app, kernelspecs, serviceWorker, broadcastChannel) => {
24
+ optional: [IServiceWorkerManager],
25
+ activate: (app, kernelspecs, serviceWorkerManager) => {
27
26
  const contentsManager = app.serviceManager.contents;
28
27
  const config = JSON.parse(PageConfig.getOption('litePluginSettings') || '{}')[PLUGIN_ID] || {};
29
28
  const baseUrl = PageConfig.getBaseUrl();
@@ -54,8 +53,7 @@ const kernel = {
54
53
  },
55
54
  create: async (options) => {
56
55
  const { PyodideKernel } = await import('@jupyterlite/pyodide-kernel');
57
- const mountDrive = !!(((serviceWorker === null || serviceWorker === void 0 ? void 0 : serviceWorker.enabled) && (broadcastChannel === null || broadcastChannel === void 0 ? void 0 : broadcastChannel.enabled)) ||
58
- crossOriginIsolated);
56
+ const mountDrive = !!((serviceWorkerManager === null || serviceWorkerManager === void 0 ? void 0 : serviceWorkerManager.enabled) || crossOriginIsolated);
59
57
  if (mountDrive) {
60
58
  console.info('Pyodide contents will be synced with Jupyter Contents');
61
59
  }
@@ -71,6 +69,7 @@ const kernel = {
71
69
  mountDrive,
72
70
  loadPyodideOptions,
73
71
  contentsManager,
72
+ browsingContextId: serviceWorkerManager === null || serviceWorkerManager === void 0 ? void 0 : serviceWorkerManager.browsingContextId,
74
73
  });
75
74
  },
76
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlite/pyodide-kernel-extension",
3
- "version": "0.6.0-alpha.4",
3
+ "version": "0.6.0-alpha.6",
4
4
  "description": "JupyterLite - Pyodide Kernel Extension",
5
5
  "homepage": "https://github.com/jupyterlite/pyodide-kernel",
6
6
  "bugs": {
@@ -47,15 +47,15 @@
47
47
  "watch:labextension": "jupyter labextension watch ."
48
48
  },
49
49
  "dependencies": {
50
- "@jupyterlab/application": "^4.4.0-beta.1",
51
- "@jupyterlab/coreutils": "^6.4.0-beta.1",
52
- "@jupyterlite/contents": "^0.6.0-alpha.3",
53
- "@jupyterlite/kernel": "^0.6.0-alpha.3",
54
- "@jupyterlite/pyodide-kernel": "^0.6.0-alpha.4",
55
- "@jupyterlite/server": "^0.6.0-alpha.3"
50
+ "@jupyterlab/application": "^4.4.0",
51
+ "@jupyterlab/coreutils": "^6.4.0",
52
+ "@jupyterlite/contents": "^0.6.0-alpha.8",
53
+ "@jupyterlite/kernel": "^0.6.0-alpha.8",
54
+ "@jupyterlite/pyodide-kernel": "^0.6.0-alpha.6",
55
+ "@jupyterlite/server": "^0.6.0-alpha.8"
56
56
  },
57
57
  "devDependencies": {
58
- "@jupyterlab/builder": "~4.4.0-beta.1",
58
+ "@jupyterlab/builder": "~4.4.0",
59
59
  "rimraf": "^5.0.1",
60
60
  "typescript": "~5.2.2"
61
61
  },
@@ -8,7 +8,7 @@
8
8
  "pyodideUrl": {
9
9
  "description": "The path to the main pyodide.js entry point",
10
10
  "type": "string",
11
- "default": "https://cdn.jsdelivr.net/pyodide/v0.27.4/full/pyodide.js",
11
+ "default": "https://cdn.jsdelivr.net/pyodide/v0.27.5/full/pyodide.js",
12
12
  "format": "uri"
13
13
  },
14
14
  "disablePyPIFallback": {