@wp-playground/client 3.1.29 → 3.1.31

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.
Files changed (2) hide show
  1. package/index.d.ts +17 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1856,6 +1856,7 @@ export interface FileTree extends Record<string, Uint8Array | string | FileTree>
1856
1856
  * regular PHP extensions and `zend_extension` for Zend extensions like Xdebug.
1857
1857
  */
1858
1858
  export type PHPExtensionIniDirective = "extension" | "zend_extension";
1859
+ export type PHPExtensionLoadDirective = PHPExtensionIniDirective | false;
1859
1860
  /**
1860
1861
  * Extension artifact manifest. Lets callers publish a matrix of `.so` files
1861
1862
  * and lets `resolvePHPExtension()` select the artifact matching the current
@@ -1865,6 +1866,21 @@ export interface PHPExtensionManifest {
1865
1866
  name: string;
1866
1867
  version?: string;
1867
1868
  mode?: "php-extension";
1869
+ /**
1870
+ * The first directive of the generated startup `.ini` file. Defaults to
1871
+ * `extension`; use `zend_extension` for Zend extensions like Xdebug.
1872
+ * Use `false` to stage the `.so` without registering it in php.ini.
1873
+ */
1874
+ loadWithIniDirective?: PHPExtensionLoadDirective;
1875
+ /** Additional `key=value` lines for the generated startup `.ini` file. */
1876
+ iniEntries?: Record<string, string>;
1877
+ /** Environment variables added before the extension is loaded. */
1878
+ env?: Record<string, string>;
1879
+ /**
1880
+ * VFS directory where PHP.wasm writes the extension `.so` file and its
1881
+ * per-extension ini file. Defaults to `PHP_EXTENSIONS_DIR`.
1882
+ */
1883
+ extensionDir?: string;
1868
1884
  artifacts: Array<{
1869
1885
  /** PHP major/minor version, e.g. `8.4`. */
1870
1886
  phpVersion: string;
@@ -1930,7 +1946,7 @@ export interface ResolvedInstallOptions {
1930
1946
  * extensions need `extension=...`; Zend extensions like Xdebug need
1931
1947
  * `zend_extension=...`.
1932
1948
  */
1933
- loadWithIniDirective?: PHPExtensionIniDirective;
1949
+ loadWithIniDirective?: PHPExtensionLoadDirective;
1934
1950
  /** Additional `key=value` lines for the generated startup `.ini` file. */
1935
1951
  iniEntries?: Record<string, string>;
1936
1952
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/client",
3
- "version": "3.1.29",
3
+ "version": "3.1.31",
4
4
  "description": "WordPress Playground client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  "main": "./index.cjs",
39
39
  "module": "./index.js",
40
40
  "types": "index.d.ts",
41
- "gitHead": "39c1c459c1c4dd360ad0da011a15cd2f12514c8a",
41
+ "gitHead": "d84feb0c0a69675bd502b8c5f51b24ee52822c8c",
42
42
  "engines": {
43
43
  "node": ">=20.10.0",
44
44
  "npm": ">=10.2.3"