@php-wasm/node 3.1.25 → 3.1.27

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 CHANGED
@@ -1763,10 +1763,11 @@ async function resolveRuntimePHPExtension(version, asyncMode, extension) {
1763
1763
  ICU_DATA: "/internal/shared"
1764
1764
  },
1765
1765
  extraFiles: {
1766
- targetPath: "/internal/shared",
1767
1766
  files: {
1768
1767
  // The Intl extension looks for the hard-coded ICU data name.
1769
- "icudt74l.dat": new Uint8Array(ICUData)
1768
+ "/internal/shared/icudt74l.dat": new Uint8Array(
1769
+ ICUData
1770
+ )
1770
1771
  }
1771
1772
  }
1772
1773
  });
@@ -1850,15 +1851,12 @@ function resolveXdebugExtraFiles(version, xdebugOptions) {
1850
1851
  }
1851
1852
  const files = {};
1852
1853
  if (pathMappings) {
1853
- files["path.map"] = pathMappings.map((map) => `${map.vfsPath} = ${map.hostPath}`).join("\n");
1854
+ files["/.xdebug/path.map"] = pathMappings.map((map) => `${map.vfsPath} = ${map.hostPath}`).join("\n");
1854
1855
  }
1855
1856
  if (pathSkippings) {
1856
- files["skip.map"] = pathSkippings.map((path3) => `${path3} = SKIP`).join("\n");
1857
+ files["/.xdebug/skip.map"] = pathSkippings.map((path3) => `${path3} = SKIP`).join("\n");
1857
1858
  }
1858
- return {
1859
- targetPath: "/.xdebug",
1860
- files
1861
- };
1859
+ return { files };
1862
1860
  }
1863
1861
 
1864
1862
  // packages/php-wasm/node/src/lib/load-runtime.ts
package/index.js CHANGED
@@ -1745,10 +1745,11 @@ async function resolveRuntimePHPExtension(version, asyncMode, extension) {
1745
1745
  ICU_DATA: "/internal/shared"
1746
1746
  },
1747
1747
  extraFiles: {
1748
- targetPath: "/internal/shared",
1749
1748
  files: {
1750
1749
  // The Intl extension looks for the hard-coded ICU data name.
1751
- "icudt74l.dat": new Uint8Array(ICUData)
1750
+ "/internal/shared/icudt74l.dat": new Uint8Array(
1751
+ ICUData
1752
+ )
1752
1753
  }
1753
1754
  }
1754
1755
  });
@@ -1832,15 +1833,12 @@ function resolveXdebugExtraFiles(version, xdebugOptions) {
1832
1833
  }
1833
1834
  const files = {};
1834
1835
  if (pathMappings) {
1835
- files["path.map"] = pathMappings.map((map) => `${map.vfsPath} = ${map.hostPath}`).join("\n");
1836
+ files["/.xdebug/path.map"] = pathMappings.map((map) => `${map.vfsPath} = ${map.hostPath}`).join("\n");
1836
1837
  }
1837
1838
  if (pathSkippings) {
1838
- files["skip.map"] = pathSkippings.map((path3) => `${path3} = SKIP`).join("\n");
1839
+ files["/.xdebug/skip.map"] = pathSkippings.map((path3) => `${path3} = SKIP`).join("\n");
1839
1840
  }
1840
- return {
1841
- targetPath: "/.xdebug",
1842
- files
1843
- };
1841
+ return { files };
1844
1842
  }
1845
1843
 
1846
1844
  // packages/php-wasm/node/src/lib/load-runtime.ts
@@ -1,4 +1,4 @@
1
- import type { EmscriptenOptions, PHPExtensionInstallOptions, SupportedPHPVersion } from '@php-wasm/universal';
1
+ import type { EmscriptenOptions, ResolvedInstallOptions, SupportedPHPVersion } from '@php-wasm/universal';
2
2
  type PHPWasmAsyncMode = 'jspi' | 'asyncify';
3
3
  export interface PathMapping {
4
4
  hostPath: string;
@@ -19,7 +19,7 @@ export type BuiltInPHPExtensionName = 'intl' | 'xdebug' | 'redis' | 'memcached';
19
19
  * External sources are supported in JSPI runtimes only. Asyncify support is
20
20
  * limited to bundled extensions shipped with this package.
21
21
  */
22
- export type RuntimePHPExtensionSource = PHPExtensionInstallOptions;
22
+ export type RuntimePHPExtensionSource = Omit<ResolvedInstallOptions, 'phpVersion'>;
23
23
  /**
24
24
  * Built-in PHP extension request accepted by `loadNodeRuntime()`.
25
25
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "3.1.25",
3
+ "version": "3.1.27",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,6 +39,7 @@
39
39
  "license": "GPL-2.0-or-later",
40
40
  "types": "index.d.ts",
41
41
  "dependencies": {
42
+ "ajv": "8.12.0",
42
43
  "express": "4.22.0",
43
44
  "fast-xml-parser": "^5.5.1",
44
45
  "fs-ext-extra-prebuilt": "2.2.7",
@@ -47,21 +48,21 @@
47
48
  "wasm-feature-detect": "1.8.0",
48
49
  "ws": "8.18.0",
49
50
  "yargs": "17.7.2",
50
- "@php-wasm/universal": "3.1.25",
51
- "@php-wasm/node-8-5": "3.1.25",
52
- "@php-wasm/node-8-4": "3.1.25",
53
- "@php-wasm/node-8-3": "3.1.25",
54
- "@php-wasm/node-8-2": "3.1.25",
55
- "@php-wasm/node-8-1": "3.1.25",
56
- "@php-wasm/node-8-0": "3.1.25",
57
- "@php-wasm/node-7-4": "3.1.25",
58
- "@php-wasm/cli-util": "3.1.25",
59
- "@php-wasm/logger": "3.1.25",
60
- "@php-wasm/node-5-2": "3.1.25",
61
- "@php-wasm/util": "3.1.25",
62
- "@wp-playground/common": "3.1.25"
51
+ "@php-wasm/universal": "3.1.27",
52
+ "@php-wasm/node-8-5": "3.1.27",
53
+ "@php-wasm/node-8-4": "3.1.27",
54
+ "@php-wasm/node-8-3": "3.1.27",
55
+ "@php-wasm/node-8-2": "3.1.27",
56
+ "@php-wasm/node-8-1": "3.1.27",
57
+ "@php-wasm/node-8-0": "3.1.27",
58
+ "@php-wasm/node-7-4": "3.1.27",
59
+ "@php-wasm/cli-util": "3.1.27",
60
+ "@php-wasm/logger": "3.1.27",
61
+ "@php-wasm/node-5-2": "3.1.27",
62
+ "@php-wasm/util": "3.1.27",
63
+ "@wp-playground/common": "3.1.27"
63
64
  },
64
- "gitHead": "e662afdd9a3b6dad3e194ad34d80421c539b7386",
65
+ "gitHead": "fd598fe315657fd276d7e14d5251c1127d495766",
65
66
  "engines": {
66
67
  "node": ">=20.10.0",
67
68
  "npm": ">=10.2.3"