@wp-playground/wordpress 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.
- package/boot.d.ts +7 -0
- package/package.json +7 -7
package/boot.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export type DatabaseType = 'sqlite' | 'mysql' | 'custom';
|
|
|
13
13
|
export declare function bootWordPressAndRequestHandler(options: BootRequestHandlerOptions & BootWordPressOptions): Promise<PHPRequestHandler>;
|
|
14
14
|
export interface BootRequestHandlerOptions {
|
|
15
15
|
createPhpRuntime: (isPrimary?: boolean) => Promise<number>;
|
|
16
|
+
/**
|
|
17
|
+
* PHP version string (e.g. '8.3', '5.2'). Used to gate
|
|
18
|
+
* legacy-PHP-specific behavior in the boot chain.
|
|
19
|
+
*/
|
|
20
|
+
phpVersion?: string;
|
|
16
21
|
onPHPInstanceCreated?: PHPInstanceCreatedHook;
|
|
17
22
|
maxPhpInstances?: number;
|
|
18
23
|
/**
|
|
@@ -92,6 +97,8 @@ export interface BootRequestHandlerOptions {
|
|
|
92
97
|
}
|
|
93
98
|
export type WordPressInstallMode = 'download-and-install' | 'install-from-existing-files' | 'install-from-existing-files-if-needed' | 'do-not-attempt-installing';
|
|
94
99
|
export interface BootWordPressOptions {
|
|
100
|
+
/** PHP version string (e.g. '8.3', '5.2'). */
|
|
101
|
+
phpVersion?: string;
|
|
95
102
|
/**
|
|
96
103
|
* Mounting and Copying is handled via hooks for starters.
|
|
97
104
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-playground/wordpress",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.21",
|
|
4
4
|
"description": "WordPress-related plumbing for WordPress Playground",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public",
|
|
36
36
|
"directory": "../../../dist/packages/playground/wordpress"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "5864051cbf4c2a55656112d99a3f1b076bcd67cd",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"express": "4.22.0",
|
|
41
41
|
"fast-xml-parser": "^5.5.1",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"wasm-feature-detect": "1.8.0",
|
|
46
46
|
"ws": "8.18.0",
|
|
47
47
|
"yargs": "17.7.2",
|
|
48
|
-
"@php-wasm/universal": "3.1.
|
|
49
|
-
"@php-wasm/util": "3.1.
|
|
50
|
-
"@php-wasm/logger": "3.1.
|
|
51
|
-
"@wp-playground/common": "3.1.
|
|
52
|
-
"@php-wasm/node": "3.1.
|
|
48
|
+
"@php-wasm/universal": "3.1.21",
|
|
49
|
+
"@php-wasm/util": "3.1.21",
|
|
50
|
+
"@php-wasm/logger": "3.1.21",
|
|
51
|
+
"@wp-playground/common": "3.1.21",
|
|
52
|
+
"@php-wasm/node": "3.1.21"
|
|
53
53
|
},
|
|
54
54
|
"packageManager": "npm@10.9.2",
|
|
55
55
|
"overrides": {
|