@php-wasm/universal 3.0.41 → 3.0.43
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/index.cjs +7 -7
- package/index.cjs.map +1 -1
- package/index.js +100 -64
- package/index.js.map +1 -1
- package/lib/proxy-file-system.d.ts +12 -3
- package/lib/supported-php-versions.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import type { PHP } from './php';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* between the
|
|
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"
|
|
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.
|
|
3
|
+
"version": "3.0.43",
|
|
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": "
|
|
40
|
+
"gitHead": "a73661b5ec1f5d4bd2b1cd29789625d80561ff85",
|
|
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.
|
|
48
|
-
"@php-wasm/logger": "3.0.
|
|
49
|
-
"@php-wasm/util": "3.0.
|
|
50
|
-
"@php-wasm/stream-compression": "3.0.
|
|
51
|
-
"@php-wasm/progress": "3.0.
|
|
47
|
+
"@php-wasm/node-polyfills": "3.0.43",
|
|
48
|
+
"@php-wasm/logger": "3.0.43",
|
|
49
|
+
"@php-wasm/util": "3.0.43",
|
|
50
|
+
"@php-wasm/stream-compression": "3.0.43",
|
|
51
|
+
"@php-wasm/progress": "3.0.43"
|
|
52
52
|
},
|
|
53
53
|
"packageManager": "npm@10.9.2",
|
|
54
54
|
"overrides": {
|