@php-wasm/web 3.1.34 → 3.1.36

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.
@@ -32,8 +32,10 @@ export type SyncProgress = {
32
32
  files: number;
33
33
  /** The number of all files that need to be synced. */
34
34
  total: number;
35
+ /** The current stage of the initial sync. */
36
+ phase?: 'copying' | 'flushing';
35
37
  };
36
- export type SyncProgressCallback = (progress: SyncProgress) => void;
38
+ export type SyncProgressCallback = (progress: SyncProgress) => void | Promise<void>;
37
39
  interface JournalFSEventsToOpfsOptions {
38
40
  maxFlushPasses?: number;
39
41
  }
@@ -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 {};
@@ -140,4 +140,6 @@ export declare class RawBytesFetch {
140
140
  expectsContinue: boolean;
141
141
  }>;
142
142
  private static parseRequestHeaders;
143
+ private static expectsContinue;
144
+ private static normalizeRequestHeadersForFetch;
143
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/web",
3
- "version": "3.1.34",
3
+ "version": "3.1.36",
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.34",
43
- "@php-wasm/universal": "3.1.34",
44
- "@php-wasm/logger": "3.1.34",
45
- "@php-wasm/fs-journal": "3.1.34",
46
- "@wp-playground/storage": "3.1.34",
47
- "@php-wasm/web-8-5": "3.1.34",
48
- "@php-wasm/web-8-4": "3.1.34",
49
- "@php-wasm/web-8-3": "3.1.34",
50
- "@php-wasm/web-8-2": "3.1.34",
51
- "@php-wasm/web-8-1": "3.1.34",
52
- "@php-wasm/web-8-0": "3.1.34",
53
- "@php-wasm/web-7-4": "3.1.34",
54
- "@wp-playground/common": "3.1.34",
55
- "@php-wasm/web-5-2": "3.1.34",
56
- "@php-wasm/web-service-worker": "3.1.34"
42
+ "@php-wasm/util": "3.1.36",
43
+ "@php-wasm/universal": "3.1.36",
44
+ "@php-wasm/logger": "3.1.36",
45
+ "@php-wasm/fs-journal": "3.1.36",
46
+ "@wp-playground/storage": "3.1.36",
47
+ "@php-wasm/web-8-5": "3.1.36",
48
+ "@php-wasm/web-8-4": "3.1.36",
49
+ "@php-wasm/web-8-3": "3.1.36",
50
+ "@php-wasm/web-8-2": "3.1.36",
51
+ "@php-wasm/web-8-1": "3.1.36",
52
+ "@php-wasm/web-8-0": "3.1.36",
53
+ "@php-wasm/web-7-4": "3.1.36",
54
+ "@wp-playground/common": "3.1.36",
55
+ "@php-wasm/web-5-2": "3.1.36",
56
+ "@php-wasm/web-service-worker": "3.1.36"
57
57
  },
58
- "gitHead": "86daccc84fe31900eb57c4c8e1c3ba21a7ae8d13",
58
+ "gitHead": "371f4fd6f9d56af6fb35b6c2cf0267edaea83755",
59
59
  "engines": {
60
60
  "node": ">=20.10.0",
61
61
  "npm": ">=10.2.3"