@wordpress/env 5.4.0 → 5.6.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/README.md CHANGED
@@ -123,7 +123,7 @@ You may also specify the port numbers in your `.wp-env.json` file, but the envir
123
123
 
124
124
  Restarting `wp-env` will restart the underlying Docker containers which can fix many issues.
125
125
 
126
- To restart `wp-env`, just run `wp-env start` again. It will automatically stop and start the container. If you also pass the `--update` argument, it will download updates and configure WordPress agian.
126
+ To restart `wp-env`, just run `wp-env start` again. It will automatically stop and start the container. If you also pass the `--update` argument, it will download updates and configure WordPress again.
127
127
 
128
128
  ```sh
129
129
  $ wp-env start --update
@@ -312,7 +312,7 @@ Positionals:
312
312
  The run command can be used to open shell sessions or invoke WP-CLI commands.
313
313
 
314
314
  <div class="callout callout-alert">
315
- In some cases, `wp-env` may consume options that you are attempting to pass to
315
+ In some cases, `wp-env` may consume options that you are attempting to pass to
316
316
  the container. This happens with options that `wp-env` has already declared,
317
317
  such as `--debug`, `--help`, and `--version`. When this happens, you should fall
318
318
  back to using quotation marks; `wp-env` considers everything inside the
@@ -206,6 +206,7 @@ module.exports = function buildDockerComposeConfig( config ) {
206
206
  image: 'mariadb',
207
207
  ports: [ '3306' ],
208
208
  environment: {
209
+ MYSQL_ROOT_HOST: '%',
209
210
  MYSQL_ROOT_PASSWORD:
210
211
  dbEnv.credentials.WORDPRESS_DB_PASSWORD,
211
212
  MYSQL_DATABASE: dbEnv.development.WORDPRESS_DB_NAME,
@@ -216,6 +217,7 @@ module.exports = function buildDockerComposeConfig( config ) {
216
217
  image: 'mariadb',
217
218
  ports: [ '3306' ],
218
219
  environment: {
220
+ MYSQL_ROOT_HOST: '%',
219
221
  MYSQL_ROOT_PASSWORD:
220
222
  dbEnv.credentials.WORDPRESS_DB_PASSWORD,
221
223
  MYSQL_DATABASE: dbEnv.tests.WORDPRESS_DB_NAME,
package/lib/cli.js CHANGED
@@ -71,7 +71,7 @@ const withSpinner =
71
71
  console.error( error );
72
72
  process.exit( 1 );
73
73
  } else {
74
- spinner.fail( 'An unknown error occured.' );
74
+ spinner.fail( 'An unknown error occurred.' );
75
75
  process.exit( 1 );
76
76
  }
77
77
  }
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  /**
9
- * Error subtype which indicates that an expected validation erorr occured
9
+ * Error subtype which indicates that an expected validation erorr occurred
10
10
  * while reading wp-env configuration.
11
11
  */
12
12
  class ValidationError extends Error {}
@@ -16,7 +16,7 @@ class ValidationError extends Error {}
16
16
  * do not match the required format.
17
17
  *
18
18
  * @param {Object} config A config object to validate.
19
- * @param {?string} envLocation Identifies if the error occured in a specific environment property.
19
+ * @param {?string} envLocation Identifies if the error occurred in a specific environment property.
20
20
  * @return {Object} The passed config object with no modifications.
21
21
  */
22
22
  function validateConfig( config, envLocation ) {
@@ -122,7 +122,7 @@ async function downloadTestSuite(
122
122
  // Alpha, Beta, and RC versions are bleeding edge and should pull from trunk.
123
123
  let ref;
124
124
  const fetchRaw = [];
125
- if ( ! wpVersion || wpVersion.match( /-(?:alpha|beta|rc)/ ) ) {
125
+ if ( ! wpVersion || wpVersion.match( /-(?:alpha|beta|rc)/i ) ) {
126
126
  ref = 'trunk';
127
127
  fetchRaw.push( 'fetch', 'origin', ref, '--depth', '1' );
128
128
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/env",
3
- "version": "5.4.0",
3
+ "version": "5.6.0",
4
4
  "description": "A zero-config, self contained local WordPress environment for development and testing.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -51,5 +51,5 @@
51
51
  "scripts": {
52
52
  "test": "echo \"Error: run tests from root\" && exit 1"
53
53
  },
54
- "gitHead": "8d42d2febb7d0ba8372a33e560a62f5a5f6a9112"
54
+ "gitHead": "511f4cc1f0138641bc4394bc1cf36e833109c791"
55
55
  }