@wp-playground/wordpress 3.0.54 → 3.1.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.
Files changed (2) hide show
  1. package/boot.d.ts +22 -0
  2. package/package.json +8 -10
package/boot.d.ts CHANGED
@@ -112,6 +112,28 @@ export interface BootWordPressOptions {
112
112
  * PHP constants to define for every request.
113
113
  */
114
114
  constants?: Record<string, string | number | boolean | null>;
115
+ /**
116
+ * PHP.ini entries to define before running any code. They'll
117
+ * be used for all requests.
118
+ */
119
+ phpIniEntries?: PhpIniOptions;
120
+ /**
121
+ * Files to create in the filesystem before any mounts are applied.
122
+ *
123
+ * Example:
124
+ *
125
+ * ```ts
126
+ * {
127
+ * createFiles: {
128
+ * '/tmp/hello.txt': 'Hello, World!',
129
+ * '/internal/preload': {
130
+ * '1-custom-mu-plugin.php': '<?php echo "Hello, World!";',
131
+ * }
132
+ * }
133
+ * }
134
+ * ```
135
+ */
136
+ createFiles?: FileTree;
115
137
  /**
116
138
  * URL to use as the site URL. This is used to set the WP_HOME
117
139
  * and WP_SITEURL constants in WordPress.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/wordpress",
3
- "version": "3.0.54",
3
+ "version": "3.1.0",
4
4
  "description": "WordPress-related plumbing for WordPress Playground",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,18 +35,19 @@
35
35
  "access": "public",
36
36
  "directory": "../../../dist/packages/playground/wordpress"
37
37
  },
38
- "gitHead": "e449793042bf2c66f8fdd4212ef266801ae3f605",
38
+ "gitHead": "be66d7e27ea9a8f09c2cc15e4470a6e28def5c58",
39
39
  "dependencies": {
40
40
  "express": "4.22.0",
41
+ "fs-ext-extra-prebuilt": "2.2.7",
41
42
  "ini": "4.1.2",
42
43
  "wasm-feature-detect": "1.8.0",
43
44
  "ws": "8.18.3",
44
45
  "yargs": "17.7.2",
45
- "@php-wasm/universal": "3.0.54",
46
- "@php-wasm/util": "3.0.54",
47
- "@php-wasm/logger": "3.0.54",
48
- "@wp-playground/common": "3.0.54",
49
- "@php-wasm/node": "3.0.54"
46
+ "@php-wasm/universal": "3.1.0",
47
+ "@php-wasm/util": "3.1.0",
48
+ "@php-wasm/logger": "3.1.0",
49
+ "@wp-playground/common": "3.1.0",
50
+ "@php-wasm/node": "3.1.0"
50
51
  },
51
52
  "packageManager": "npm@10.9.2",
52
53
  "overrides": {
@@ -60,8 +61,5 @@
60
61
  "form-data": "^4.0.4",
61
62
  "lodash": "^4.17.23",
62
63
  "glob": "^9.3.0"
63
- },
64
- "optionalDependencies": {
65
- "fs-ext": "2.1.1"
66
64
  }
67
65
  }