@php-wasm/universal 1.2.3 → 2.0.0
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 +4 -4
- package/index.cjs.map +1 -1
- package/index.js +161 -133
- package/index.js.map +1 -1
- package/lib/php-worker.d.ts +8 -0
- package/lib/php.d.ts +1 -0
- package/package.json +7 -7
package/lib/php-worker.d.ts
CHANGED
|
@@ -27,6 +27,14 @@ export declare class PHPWorker implements LimitedPHPApi, AsyncDisposable {
|
|
|
27
27
|
* a warning.
|
|
28
28
|
*/
|
|
29
29
|
protected __internal_getPHP(): PHP | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated
|
|
33
|
+
* Do not use this method directly in the code consuming
|
|
34
|
+
* the web API. It will change or even be removed without
|
|
35
|
+
* a warning.
|
|
36
|
+
*/
|
|
37
|
+
protected __internal_getRequestHandler(): PHPRequestHandler | undefined;
|
|
30
38
|
setPrimaryPHP(php: PHP): Promise<void>;
|
|
31
39
|
/** @inheritDoc @php-wasm/universal!PHPRequestHandler.pathToInternalUrl */
|
|
32
40
|
pathToInternalUrl(path: string): string;
|
package/lib/php.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class PHPExecutionFailureError extends Error {
|
|
|
15
15
|
export type UnmountFunction = (() => Promise<any>) | (() => any);
|
|
16
16
|
export type MountHandler = (php: PHP, FS: Emscripten.RootFS, vfsMountPoint: string) => UnmountFunction | Promise<UnmountFunction>;
|
|
17
17
|
export declare const PHP_INI_PATH = "/internal/shared/php.ini";
|
|
18
|
+
export declare const USE_OPCACHE = true;
|
|
18
19
|
/**
|
|
19
20
|
* An environment-agnostic wrapper around the Emscripten PHP runtime
|
|
20
21
|
* that universals the super low-level API and provides a more convenient
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/universal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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": "4aa6ec4f0fe23920f735c0050228a509d94ce077",
|
|
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": "
|
|
48
|
-
"@php-wasm/logger": "
|
|
49
|
-
"@php-wasm/util": "
|
|
50
|
-
"@php-wasm/stream-compression": "
|
|
51
|
-
"@php-wasm/progress": "
|
|
47
|
+
"@php-wasm/node-polyfills": "2.0.0",
|
|
48
|
+
"@php-wasm/logger": "2.0.0",
|
|
49
|
+
"@php-wasm/util": "2.0.0",
|
|
50
|
+
"@php-wasm/stream-compression": "2.0.0",
|
|
51
|
+
"@php-wasm/progress": "2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"overrides": {
|
|
54
54
|
"rollup": "^4.34.6",
|