@wp-playground/remote 3.1.20 → 3.1.21

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.
@@ -48,6 +48,7 @@ export interface WebClientMixin extends ProgressReceiver {
48
48
  /** @inheritDoc @php-wasm/universal!UniversalPHP.onMessage */
49
49
  onMessage(listener: MessageListener): Promise<() => Promise<void>>;
50
50
  mountOpfs(options: MountDescriptor, onProgress?: SyncProgressCallback): Promise<void>;
51
+ flushOpfs(mountpoint: string): Promise<void>;
51
52
  unmountOpfs(mountpoint: string): Promise<void>;
52
53
  boot(options: WorkerBootOptions): Promise<void>;
53
54
  }
@@ -3,7 +3,7 @@ import type { EmscriptenDownloadMonitor } from '@php-wasm/progress';
3
3
  import type { SyncProgressCallback } from '@php-wasm/web';
4
4
  import type { MountDevice } from '@wp-playground/storage';
5
5
  import { createMemoizedFetch } from '@wp-playground/common';
6
- import type { PathAlias, SupportedPHPVersion } from '@php-wasm/universal';
6
+ import type { AllPHPVersion, PathAlias, PHP } from '@php-wasm/universal';
7
7
  import { PHPWorker } from '@php-wasm/universal';
8
8
  import type { BlueprintDeclaration } from '@wp-playground/blueprints';
9
9
  import type { WordPressInstallMode } from '@wp-playground/wordpress';
@@ -15,7 +15,7 @@ export interface MountDescriptor {
15
15
  export type WorkerBootOptions = {
16
16
  wpVersion?: string;
17
17
  sqliteDriverVersion?: string;
18
- phpVersion?: SupportedPHPVersion;
18
+ phpVersion?: AllPHPVersion;
19
19
  sapiName?: string;
20
20
  scope: string;
21
21
  withIntl: boolean;
@@ -55,6 +55,7 @@ export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
55
55
  loadedWordPressVersion: string | undefined;
56
56
  blueprintMessageListeners: Array<(message: any) => void | Promise<void>>;
57
57
  unmounts: Record<string, () => any>;
58
+ private opfsMounts;
58
59
  private networkTransport;
59
60
  protected downloadMonitor: EmscriptenDownloadMonitor;
60
61
  protected memoizedFetch: ReturnType<typeof createMemoizedFetch>;
@@ -67,7 +68,7 @@ export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
67
68
  knownRemoteAssetPaths: Set<string>;
68
69
  withIntl: boolean;
69
70
  withNetworking: boolean;
70
- phpVersion: SupportedPHPVersion;
71
+ phpVersion: AllPHPVersion;
71
72
  pathAliases?: PathAlias[];
72
73
  }): Promise<import("@php-wasm/universal").PHPRequestHandler>;
73
74
  protected finalizeAfterBoot(requestHandler: any, withNetworking: boolean, knownRemoteAssetPaths: Set<string>): Promise<void>;
@@ -94,6 +95,7 @@ export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
94
95
  }>;
95
96
  hasOpfsMount(mountpoint: string): Promise<boolean>;
96
97
  mountOpfs(options: MountDescriptor, onProgress?: SyncProgressCallback): Promise<void>;
98
+ flushOpfs(mountpoint: string): Promise<void>;
97
99
  unmountOpfs(mountpoint: string): Promise<void>;
98
100
  backfillStaticFilesRemovedFromMinifiedBuild(): Promise<void>;
99
101
  hasCachedStaticFilesRemovedFromMinifiedBuild(): Promise<boolean>;
@@ -106,4 +108,5 @@ export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
106
108
  prefetchUpdateChecks(): Promise<void>;
107
109
  journalFSEvents(root: string, callback: (op: FilesystemOperation) => void): Promise<() => any>;
108
110
  replayFSJournal(events: FilesystemOperation[]): Promise<void>;
111
+ protected mountOpfsIntoPhp(php: PHP, options: MountDescriptor, onProgress?: SyncProgressCallback): Promise<void>;
109
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/remote",
3
- "version": "3.1.20",
3
+ "version": "3.1.21",
4
4
  "description": "WordPress Playground remote host",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,5 +25,5 @@
25
25
  "access": "public",
26
26
  "directory": "../../../dist/packages/playground/remote"
27
27
  },
28
- "gitHead": "98cfca0a050ef1dacce25710d6ebdf816e80b764"
28
+ "gitHead": "5864051cbf4c2a55656112d99a3f1b076bcd67cd"
29
29
  }