@wp-playground/wordpress 1.0.12 → 1.0.13
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/package.json +7 -7
- package/version-detect.d.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-playground/wordpress",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "WordPress-related plumbing for WordPress Playground",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public",
|
|
29
29
|
"directory": "../../../dist/packages/playground/wordpress"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "22888c009b54e0b1e5a5c9961b9d97c08b39f672",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"comlink": "^4.4.1",
|
|
34
34
|
"events": "3.3.0",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"wasm-feature-detect": "1.8.0",
|
|
38
38
|
"ws": "8.18.0",
|
|
39
39
|
"yargs": "17.7.2",
|
|
40
|
-
"@php-wasm/universal": "1.0.
|
|
41
|
-
"@php-wasm/util": "1.0.
|
|
42
|
-
"@php-wasm/logger": "1.0.
|
|
43
|
-
"@wp-playground/common": "1.0.
|
|
44
|
-
"@php-wasm/node": "1.0.
|
|
40
|
+
"@php-wasm/universal": "1.0.13",
|
|
41
|
+
"@php-wasm/util": "1.0.13",
|
|
42
|
+
"@php-wasm/logger": "1.0.13",
|
|
43
|
+
"@wp-playground/common": "1.0.13",
|
|
44
|
+
"@php-wasm/node": "1.0.13"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/version-detect.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import type { PHPRequestHandler } from '@php-wasm/universal';
|
|
2
2
|
export declare function getLoadedWordPressVersion(requestHandler: PHPRequestHandler): Promise<string>;
|
|
3
|
+
/**
|
|
4
|
+
* Returns a WordPress build version string, for a given WordPress version string.
|
|
5
|
+
*
|
|
6
|
+
* You can find the full list of supported build version strings in
|
|
7
|
+
* packages/playground/wordpress-builds/src/wordpress/wp-versions.json
|
|
8
|
+
*
|
|
9
|
+
* Each released version will be converted to the major.minor format.
|
|
10
|
+
* For example 6.6.1 will be converted to 6.6.
|
|
11
|
+
*
|
|
12
|
+
* Release candidates (RC) and beta releases are converted to "beta".
|
|
13
|
+
*
|
|
14
|
+
* Nightly releases are converted to "nightly".
|
|
15
|
+
*
|
|
16
|
+
* @param wpVersionString - A WordPress version string.
|
|
17
|
+
* @returns A Playground WordPress build version.
|
|
18
|
+
*/
|
|
3
19
|
export declare function versionStringToLoadedWordPressVersion(wpVersionString: string): string;
|