@php-wasm/universal 3.0.42 → 3.0.44

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.
@@ -1,8 +1,17 @@
1
1
  import type { PHP } from './php';
2
2
  /**
3
- * Proxy specific paths to the parent's MEMFS instance.
4
- * This is useful for sharing the WordPress installation
5
- * between the parent and child processes.
3
+ * Mounts directories from one PHP instance's filesystem into another using PROXYFS.
4
+ *
5
+ * This enables file sharing between PHP instances without duplicating the files in memory.
6
+ * For example, mounting /wordpress from the parent instance into a child worker allows
7
+ * both to access the same WordPress installation without copying the entire directory.
8
+ *
9
+ * The function automatically patches PROXYFS with mmap support before mounting, ensuring
10
+ * libraries like ICU can memory-map data files through the proxied filesystem.
11
+ *
12
+ * @param sourceOfTruth - The PHP instance containing the original files
13
+ * @param replica - The PHP instance that will access files through PROXYFS
14
+ * @param paths - Absolute paths to mount (e.g., ['/wordpress', '/internal/shared'])
6
15
  */
7
16
  export declare function proxyFileSystem(sourceOfTruth: PHP, replica: PHP, paths: string[]): void;
8
17
  /**
@@ -1,4 +1,4 @@
1
- export declare const SupportedPHPVersions: readonly ["8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2"];
1
+ export declare const SupportedPHPVersions: readonly ["8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.4"];
2
2
  export declare const LatestSupportedPHPVersion: "8.5";
3
3
  export declare const SupportedPHPVersionsList: string[];
4
4
  export type SupportedPHPVersion = (typeof SupportedPHPVersions)[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/universal",
3
- "version": "3.0.42",
3
+ "version": "3.0.44",
4
4
  "description": "PHP.wasm – emscripten bindings for PHP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,18 +37,18 @@
37
37
  "module": "./index.js",
38
38
  "types": "index.d.ts",
39
39
  "license": "GPL-2.0-or-later",
40
- "gitHead": "5f92a69369203e2926e08c3a690c7d3baafd2744",
40
+ "gitHead": "16881b9b024e961a5254be5b366fad096585c310",
41
41
  "engines": {
42
42
  "node": ">=20.18.3",
43
43
  "npm": ">=10.1.0"
44
44
  },
45
45
  "dependencies": {
46
46
  "ini": "4.1.2",
47
- "@php-wasm/node-polyfills": "3.0.42",
48
- "@php-wasm/logger": "3.0.42",
49
- "@php-wasm/util": "3.0.42",
50
- "@php-wasm/stream-compression": "3.0.42",
51
- "@php-wasm/progress": "3.0.42"
47
+ "@php-wasm/node-polyfills": "3.0.44",
48
+ "@php-wasm/logger": "3.0.44",
49
+ "@php-wasm/util": "3.0.44",
50
+ "@php-wasm/stream-compression": "3.0.44",
51
+ "@php-wasm/progress": "3.0.44"
52
52
  },
53
53
  "packageManager": "npm@10.9.2",
54
54
  "overrides": {