@php-wasm/node 1.0.29 → 1.1.1

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 (51) hide show
  1. package/asyncify/7_2_34/php_7_2.wasm +0 -0
  2. package/asyncify/7_3_33/php_7_3.wasm +0 -0
  3. package/asyncify/7_4_33/php_7_4.wasm +0 -0
  4. package/asyncify/8_0_30/php_8_0.wasm +0 -0
  5. package/asyncify/8_1_23/php_8_1.wasm +0 -0
  6. package/asyncify/8_2_10/php_8_2.wasm +0 -0
  7. package/asyncify/8_3_0/php_8_3.wasm +0 -0
  8. package/asyncify/8_4_0/php_8_4.wasm +0 -0
  9. package/asyncify/php_7_2.js +9365 -7478
  10. package/asyncify/php_7_3.js +9365 -7478
  11. package/asyncify/php_7_4.js +9372 -7506
  12. package/asyncify/php_8_0.js +9419 -7518
  13. package/asyncify/php_8_1.js +9454 -7565
  14. package/asyncify/php_8_2.js +9457 -7572
  15. package/asyncify/php_8_3.js +2390 -1874
  16. package/asyncify/php_8_4.js +2390 -1874
  17. package/index.cjs +35929 -58836
  18. package/index.js +35921 -58830
  19. package/jspi/7_2_34/php_7_2.wasm +0 -0
  20. package/jspi/7_3_33/php_7_3.wasm +0 -0
  21. package/jspi/7_4_33/php_7_4.wasm +0 -0
  22. package/jspi/8_0_30/php_8_0.wasm +0 -0
  23. package/jspi/8_1_23/php_8_1.wasm +0 -0
  24. package/jspi/8_2_10/php_8_2.wasm +0 -0
  25. package/jspi/8_3_0/php_8_3.wasm +0 -0
  26. package/jspi/8_4_0/php_8_4.wasm +0 -0
  27. package/jspi/php_7_2.js +8578 -7082
  28. package/jspi/php_7_3.js +8577 -7081
  29. package/jspi/php_7_4.js +8582 -7107
  30. package/jspi/php_8_0.js +8594 -7122
  31. package/jspi/php_8_1.js +8630 -7169
  32. package/jspi/php_8_2.js +8633 -7176
  33. package/jspi/php_8_3.js +8633 -7176
  34. package/jspi/php_8_4.js +2249 -1962
  35. package/lib/data/with-icu-data.d.ts +2 -0
  36. package/lib/load-runtime.d.ts +2 -1
  37. package/lib/networking/inbound-tcp-to-ws-proxy.d.ts +1 -1
  38. package/lib/networking/with-networking.d.ts +1 -1
  39. package/lib/node-fs-mount.d.ts +1 -1
  40. package/lib/use-host-filesystem.d.ts +1 -1
  41. package/noop.js +2 -2
  42. package/package.json +20 -14
  43. package/shared/icudt74l.dat +0 -0
  44. package/asyncify/7_0_33/php_7_0.wasm +0 -0
  45. package/asyncify/7_1_30/php_7_1.wasm +0 -0
  46. package/asyncify/php_7_0.js +0 -7498
  47. package/asyncify/php_7_1.js +0 -7484
  48. package/jspi/7_0_33/php_7_0.wasm +0 -0
  49. package/jspi/7_1_30/php_7_1.wasm +0 -0
  50. package/jspi/php_7_0.js +0 -7107
  51. package/jspi/php_7_1.js +0 -7107
@@ -0,0 +1,2 @@
1
+ import type { EmscriptenOptions } from '@php-wasm/universal';
2
+ export declare function withICUData(options: EmscriptenOptions): Promise<EmscriptenOptions>;
@@ -1,6 +1,7 @@
1
- import { SupportedPHPVersion, EmscriptenOptions } from '@php-wasm/universal';
1
+ import type { SupportedPHPVersion, EmscriptenOptions } from '@php-wasm/universal';
2
2
  export interface PHPLoaderOptions {
3
3
  emscriptenOptions?: EmscriptenOptions;
4
+ followSymlinks?: boolean;
4
5
  }
5
6
  /**
6
7
  * Does what load() does, but synchronously returns
@@ -1,4 +1,4 @@
1
- import { WebSocketServer } from 'ws';
1
+ import type { WebSocketServer } from 'ws';
2
2
  export declare function addTCPServerToWebSocketServerClass(wsListenPort: number, WSServer: typeof WebSocketServer): any;
3
3
  export interface InboundTcpToWsProxyOptions {
4
4
  tcpListenPort: number;
@@ -1,2 +1,2 @@
1
- import { EmscriptenOptions } from '@php-wasm/universal';
1
+ import type { EmscriptenOptions } from '@php-wasm/universal';
2
2
  export declare function withNetworking(phpModuleArgs?: EmscriptenOptions): Promise<EmscriptenOptions>;
@@ -1,2 +1,2 @@
1
- import { MountHandler } from '@php-wasm/universal';
1
+ import type { MountHandler } from '@php-wasm/universal';
2
2
  export declare function createNodeFsMountHandler(localPath: string): MountHandler;
@@ -1,4 +1,4 @@
1
- import { PHP } from '@php-wasm/universal';
1
+ import type { PHP } from '@php-wasm/universal';
2
2
  /**
3
3
  * Enables host filesystem usage by mounting root
4
4
  * directories (e.g. /, /home, /var) into the in-memory
package/noop.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire as topLevelCreateRequire } from 'module';
2
2
  const require = topLevelCreateRequire(import.meta.url);
3
- const __dirname = new URL('.', import.meta.url).pathname;
4
- const __filename = new URL(import.meta.url).pathname;
3
+ const __filename = import.meta.filename;
4
+ const __dirname = import.meta.dirname;
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "1.0.29",
3
+ "version": "1.1.1",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,24 +38,30 @@
38
38
  },
39
39
  "license": "GPL-2.0-or-later",
40
40
  "types": "index.d.ts",
41
- "gitHead": "173e69f62e1b43bd7353b875054bb1ef5e394de8",
41
+ "gitHead": "8bff9428d68d3c4a5e84c6cd633e82bf8512a4e3",
42
42
  "engines": {
43
- "node": ">=18.18.0",
44
- "npm": ">=8.11.0"
43
+ "node": ">=20.18.3",
44
+ "npm": ">=10.1.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "comlink": "^4.4.1",
48
- "events": "3.3.0",
49
- "express": "4.19.2",
48
+ "express": "4.21.2",
50
49
  "ini": "4.1.2",
51
50
  "wasm-feature-detect": "1.8.0",
52
- "ws": "8.18.0",
51
+ "ws": "8.18.1",
53
52
  "yargs": "17.7.2",
54
- "@php-wasm/node-polyfills": "1.0.29",
55
- "@php-wasm/universal": "1.0.29",
56
- "@php-wasm/logger": "1.0.29",
57
- "@php-wasm/util": "1.0.29",
58
- "@wp-playground/common": "1.0.29",
59
- "@wp-playground/wordpress": "1.0.29"
53
+ "@php-wasm/node-polyfills": "1.1.1",
54
+ "@php-wasm/universal": "1.1.1",
55
+ "@php-wasm/util": "1.1.1",
56
+ "@php-wasm/logger": "1.1.1",
57
+ "@wp-playground/common": "1.1.1",
58
+ "@wp-playground/wordpress": "1.1.1"
59
+ },
60
+ "overrides": {
61
+ "rollup": "^4.34.6",
62
+ "react": "18.3.1",
63
+ "react-dom": "18.3.1",
64
+ "typescript": "5.4.5",
65
+ "ws": "^8.18.0"
60
66
  }
61
- }
67
+ }
Binary file
Binary file
Binary file