@php-wasm/web 3.1.35 → 3.1.38

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,4 +1,4 @@
1
- import type { EmscriptenOptions, ResolvedInstallOptions, SupportedPHPVersion } from '@php-wasm/universal';
1
+ import type { EmscriptenOptions, ResolvedInstallOptions, AllPHPVersion } from '@php-wasm/universal';
2
2
  type PHPWasmAsyncMode = 'jspi' | 'asyncify';
3
3
  /**
4
4
  * Built-in PHP extensions shipped with `@php-wasm/web`.
@@ -34,5 +34,5 @@ export type PHPWebExtension = BuiltInPHPWebExtensionName | {
34
34
  * Extension sources are resolved in parallel so multiple manifest or artifact
35
35
  * downloads do not block each other.
36
36
  */
37
- export declare function withPHPExtensions(version: SupportedPHPVersion, asyncMode: PHPWasmAsyncMode, options: EmscriptenOptions, extensions?: PHPWebExtension[]): Promise<EmscriptenOptions>;
37
+ export declare function withPHPExtensions(version: AllPHPVersion, asyncMode: PHPWasmAsyncMode, options: EmscriptenOptions, extensions?: PHPWebExtension[]): Promise<EmscriptenOptions>;
38
38
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { PHPLoaderModule, AllPHPVersion } from '@php-wasm/universal';
2
+ export type PHPWasmAsyncMode = 'jspi' | 'asyncify';
2
3
  /**
3
4
  * Loads the PHP loader module for the given PHP version.
4
5
  *
@@ -11,4 +12,4 @@ import type { PHPLoaderModule, AllPHPVersion } from '@php-wasm/universal';
11
12
  * @param version The PHP version to load.
12
13
  * @returns The PHP loader module.
13
14
  */
14
- export declare function getPHPLoaderModule(version?: AllPHPVersion): Promise<PHPLoaderModule>;
15
+ export declare function getPHPLoaderModule(version?: AllPHPVersion, asyncMode?: PHPWasmAsyncMode): Promise<PHPLoaderModule>;
@@ -0,0 +1,7 @@
1
+ import type { PHPLoaderModule } from '@php-wasm/universal';
2
+ import type { PHPWasmAsyncMode } from './get-php-loader-module';
3
+ interface PHPNextModule {
4
+ getPHPLoaderModule(asyncMode: PHPWasmAsyncMode): Promise<PHPLoaderModule>;
5
+ }
6
+ export declare function getPHPNextModule(): Promise<PHPNextModule>;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/web",
3
- "version": "3.1.35",
3
+ "version": "3.1.38",
4
4
  "description": "PHP.wasm for the web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,23 +39,23 @@
39
39
  "types": "index.d.ts",
40
40
  "dependencies": {
41
41
  "wasm-feature-detect": "1.8.0",
42
- "@php-wasm/util": "3.1.35",
43
- "@php-wasm/universal": "3.1.35",
44
- "@php-wasm/logger": "3.1.35",
45
- "@php-wasm/fs-journal": "3.1.35",
46
- "@wp-playground/storage": "3.1.35",
47
- "@php-wasm/web-8-5": "3.1.35",
48
- "@php-wasm/web-8-4": "3.1.35",
49
- "@php-wasm/web-8-3": "3.1.35",
50
- "@php-wasm/web-8-2": "3.1.35",
51
- "@php-wasm/web-8-1": "3.1.35",
52
- "@php-wasm/web-8-0": "3.1.35",
53
- "@php-wasm/web-7-4": "3.1.35",
54
- "@wp-playground/common": "3.1.35",
55
- "@php-wasm/web-5-2": "3.1.35",
56
- "@php-wasm/web-service-worker": "3.1.35"
42
+ "@php-wasm/util": "3.1.38",
43
+ "@php-wasm/universal": "3.1.38",
44
+ "@php-wasm/logger": "3.1.38",
45
+ "@php-wasm/fs-journal": "3.1.38",
46
+ "@wp-playground/storage": "3.1.38",
47
+ "@php-wasm/web-8-5": "3.1.38",
48
+ "@php-wasm/web-8-4": "3.1.38",
49
+ "@php-wasm/web-8-3": "3.1.38",
50
+ "@php-wasm/web-8-2": "3.1.38",
51
+ "@php-wasm/web-8-1": "3.1.38",
52
+ "@php-wasm/web-8-0": "3.1.38",
53
+ "@php-wasm/web-7-4": "3.1.38",
54
+ "@wp-playground/common": "3.1.38",
55
+ "@php-wasm/web-5-2": "3.1.38",
56
+ "@php-wasm/web-service-worker": "3.1.38"
57
57
  },
58
- "gitHead": "9d29b73246e12465902d8ce42c0fe747125bc69a",
58
+ "gitHead": "2850a2a6f512e68e68407f4a9426dad705b426f0",
59
59
  "engines": {
60
60
  "node": ">=20.10.0",
61
61
  "npm": ">=10.2.3"
@@ -71,6 +71,7 @@
71
71
  "form-data": "^4.0.4",
72
72
  "lodash": "^4.17.23",
73
73
  "glob": "^9.3.0",
74
- "webpackbar": "^7.0.0"
74
+ "webpackbar": "^7.0.0",
75
+ "ws": "8.21.0"
75
76
  }
76
77
  }