@wp-playground/remote 3.0.46 → 3.0.51

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.
@@ -2,9 +2,10 @@ import type { FilesystemOperation } from '@php-wasm/fs-journal';
2
2
  import type { EmscriptenDownloadMonitor } from '@php-wasm/progress';
3
3
  import type { MountDevice, SyncProgressCallback } from '@php-wasm/web';
4
4
  import { createMemoizedFetch } from '@wp-playground/common';
5
- import type { SupportedPHPVersion } from '@php-wasm/universal';
5
+ import type { PathAlias, SupportedPHPVersion } from '@php-wasm/universal';
6
6
  import { PHPWorker } from '@php-wasm/universal';
7
7
  import type { BlueprintDeclaration } from '@wp-playground/blueprints';
8
+ import type { WordPressInstallMode } from '@wp-playground/wordpress';
8
9
  export interface MountDescriptor {
9
10
  mountpoint: string;
10
11
  device: MountDevice;
@@ -25,6 +26,16 @@ export type WorkerBootOptions = {
25
26
  experimentalBlueprintsV2Runner?: boolean;
26
27
  /** Blueprint v2 declaration to run in the worker when experimental mode is on */
27
28
  blueprint?: BlueprintDeclaration;
29
+ /**
30
+ * How to handle WordPress installation.
31
+ * Defaults to 'install-from-existing-files-if-needed'.
32
+ */
33
+ wordpressInstallMode?: WordPressInstallMode;
34
+ /**
35
+ * Path aliases that map URL prefixes to filesystem paths outside
36
+ * the document root. Similar to Nginx's `alias` directive.
37
+ */
38
+ pathAliases?: PathAlias[];
28
39
  };
29
40
  /** @inheritDoc PHPClient */
30
41
  export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
@@ -48,7 +59,7 @@ export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
48
59
  protected memoizedFetch: ReturnType<typeof createMemoizedFetch>;
49
60
  constructor(monitor: EmscriptenDownloadMonitor);
50
61
  protected computeSiteUrl(scope: string): string;
51
- protected createRequestHandler({ siteUrl, sapiName, corsProxyUrl, knownRemoteAssetPaths, withIntl, withNetworking, phpVersion, }: {
62
+ protected createRequestHandler({ siteUrl, sapiName, corsProxyUrl, knownRemoteAssetPaths, withIntl, withNetworking, phpVersion, pathAliases, }: {
52
63
  siteUrl: string;
53
64
  sapiName: string;
54
65
  corsProxyUrl?: string;
@@ -56,6 +67,7 @@ export declare abstract class PlaygroundWorkerEndpoint extends PHPWorker {
56
67
  withIntl: boolean;
57
68
  withNetworking: boolean;
58
69
  phpVersion: SupportedPHPVersion;
70
+ pathAliases?: PathAlias[];
59
71
  }): Promise<import("@php-wasm/universal").PHPRequestHandler>;
60
72
  protected finalizeAfterBoot(requestHandler: any, withNetworking: boolean, knownRemoteAssetPaths: Set<string>): Promise<void>;
61
73
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/remote",
3
- "version": "3.0.46",
3
+ "version": "3.0.51",
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": "845cbc01dba047db8bf0b4ae2670b924e3517087"
28
+ "gitHead": "ebc05da827807f3311ed1de8711fa74266183fab"
29
29
  }