@php-wasm/web 0.1.60 → 0.2.0

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.
@@ -1,16 +1,8 @@
1
- /**
2
- * Recommended Worker Thread backend.
3
- * It's typically "webworker", but in Firefox it's "iframe"
4
- * because Firefox doesn't support module workers with dynamic imports.
5
- * See https://github.com/mdn/content/issues/24402
6
- */
7
- export declare const recommendedWorkerBackend: string;
8
1
  /**
9
2
  * Spawns a new Worker Thread.
10
3
  *
11
4
  * @param workerUrl The absolute URL of the worker script.
12
- * @param workerBackend The Worker Thread backend to use. Either 'webworker' or 'iframe'.
13
5
  * @param config
14
6
  * @returns The spawned Worker Thread.
15
7
  */
16
- export declare function spawnPHPWorkerThread(workerUrl: string, workerBackend?: 'webworker' | 'iframe', startupOptions?: Record<string, string>): Promise<Worker | Window>;
8
+ export declare function spawnPHPWorkerThread(workerUrl: string, startupOptions?: Record<string, string>): Promise<Worker>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/web",
3
- "version": "0.1.60",
3
+ "version": "0.2.0",
4
4
  "description": "PHP.wasm for the web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,5 +29,9 @@
29
29
  "type": "module",
30
30
  "main": "index.js",
31
31
  "types": "index.d.ts",
32
- "gitHead": "3046803036b19d2c73c63cb01dfb37b1c222d847"
32
+ "gitHead": "cd4062de74f7f18058d3f962e124d0fdff78b5a7",
33
+ "engines": {
34
+ "node": ">=16.15.1",
35
+ "npm": ">=8.11.0"
36
+ }
33
37
  }