@wordpress/env 5.3.0 → 5.4.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/package.json +2 -2
  2. package/CHANGELOG.md +0 -159
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/env",
3
- "version": "5.3.0",
3
+ "version": "5.4.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": "23e136283fa1d3b8d9d8b33869f871ad5eb77726"
54
+ "gitHead": "8d42d2febb7d0ba8372a33e560a62f5a5f6a9112"
55
55
  }
package/CHANGELOG.md DELETED
@@ -1,159 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 5.3.0 (2022-09-21)
6
-
7
- ## 5.2.0 (2022-08-16)
8
-
9
- ### Enhancement
10
- - Query parameters can now be used in .zip source URLs.
11
-
12
- ## 5.1.1 (2022-08-16)
13
-
14
- ### Bug Fix
15
- - Fix a crash when "core" was set to `null` in a `.wp-env.json` file. We now use the latest stable WordPress version in that case. This also restores the previous behavior of `"core": null` in `.wp-env.override.json`, which was to use the latest stable WordPress version.
16
-
17
- ## 5.1.0 (2022-08-10)
18
-
19
- ### Enhancement
20
- - Previously, wp-env used the WordPress version provided by Docker in the WordPress image for installations which don't specify a WordPress version. Now, wp-env will find the latest stable version on WordPress.org and check out the https://github.com/WordPress/WordPress repository at the tag matching that version. In most cases, this will match what Docker provides. The benefit is that wp-env (and WordPress.org) now controls the default WordPress version rather than Docker.
21
-
22
- ### Bug Fix
23
- - Downloading a default WordPress version also resolves a bug where the wrong WordPress test files were used if no core source was specified in wp-env.json. The current trunk test files were downloaded rather than the stable version. Now, the test files will match the default stable version.
24
-
25
- ## 5.0.0 (2022-07-27)
26
-
27
- ### Breaking Changes
28
- - Removed the `WP_PHPUNIT__TESTS_CONFIG` environment variable from the `phpunit` container. **This removes automatic support for the `wp-phpunit/wp-phpunit` Composer package. To continue using the package, set the following two environment variables in your `phpunit.xml` file or similar: `WP_TESTS_DIR=""` and `WP_PHPUNIT__TESTS_CONFIG="/wordpress-phpunit/wp-tests-config.php"`.**
29
- - Removed the generated `/var/www/html/phpunit-wp-config.php` file from the environment.
30
-
31
- ### Enhancement
32
- - Read WordPress' version and include the corresponding PHPUnit test files in the environment.
33
- - Set the `WP_TESTS_DIR` environment variable in all containers to point at the PHPUnit test files.
34
-
35
- ### Bug Fix
36
- - Restrict `WP_TESTS_DOMAIN` constant to just hostname rather than an entire URL (e.g. it now excludes scheme, port, etc.) ([#41039](https://github.com/WordPress/gutenberg/pull/41039)).
37
-
38
- ## 4.8.0 (2022-06-01)
39
-
40
- ### Enhancement
41
- - Removed the need for quotation marks when passing options to `wp-env run`.
42
- - Setting a `config` key to `null` will prevent adding the constant to `wp-config.php` even if a default value is defined by `wp-env`.
43
-
44
- ## 4.7.0 (2022-05-18)
45
-
46
- ### Enhancement
47
- - Added SSH protocol support for git sources
48
-
49
- ## 4.2.0 (2022-01-27)
50
-
51
- ### Enhancement
52
- - Added command `wp-env install-path` to list the directory used for the environment.
53
- - The help entry is now shown when no subcommand is passed to `wp-env`.
54
-
55
- ### Bug Fix
56
- - Updated `yargs` to fix [CVE-2021-3807](https://nvd.nist.gov/vuln/detail/CVE-2021-3807).
57
-
58
- ## 4.1.3 (2021-11-07)
59
-
60
- ### Bug Fix
61
-
62
- - Fix Xdebug installation code to ensure it would fail gracefully
63
-
64
- ## 4.0.3 (2021-04-29)
65
-
66
- ### Bug Fix
67
-
68
- - `wp-env destroy` will now work in environments which don't include the `grep` or `awk` commands, such as Windows PowerShell.
69
- - Fix several permissions issues related to wp-config.php and wp-content files.
70
- - Fix crash which happened when the path to wp-env's home directory contained a space.
71
- - Disable Xdebug 3 for PHP versions less than 7.2 to resolve startup crash.
72
-
73
- ## 4.0.0 (2021-03-17)
74
-
75
- ### Breaking Change
76
-
77
- - Migrate from `nodegit` to `simple-git`. This change now requires you to have a `git` binary installed locally to utilize the git sources feature of wp-env.json.
78
-
79
- ### Bug Fixes
80
-
81
- - "mappings" sources are now downloaded if they contain non-local sources.
82
-
83
- ## 3.0.0 (2020-12-17)
84
-
85
- ### Breaking Changes
86
-
87
- - `wp-env start` is now the only command which writes to the docker configuration files. Previously, running any command would also parse the config and then write it to the correct location. Now, other commands still parse the config, but they will not overwrite the confugiration which was set by wp-env start. This allows parameters to be passed to wp-env start which can affect the configuration.
88
-
89
- ### Enhancement
90
-
91
- - Update nodegit dependency to 0.27.0, the earlier version does not have pre-built binaries for Node 14.15.0 LTS. Upgrading provides support without requiring building nodegit locally.
92
- - Allow WP_HOME wp-config value to be set to a custom port other than the default for the docker instance.
93
- - Append the instance URL to output of `wp-env start`.
94
-
95
- ### New feature
96
-
97
- - Add support for setting the PHP version used for the WordPress instance. For example, test PHP 8 with `"phpVersion": 8.0` in wp-env.json.
98
- - Add Xdebug 3 to the development environment. You can enable Xdebug with `wp-env start --xdebug` (for debug mode) or `wp-env start --xdebug=develop,coverage` for custom modes.
99
-
100
- ### Bug Fixes
101
-
102
- - ZIP-based plugin sources are now downloaded to a directory using the basename of the URL instead of the full URL path. This prevents HTML encoded characters in the URL (like "/") from being improperly encoded into the filesystem. This fixes the issue where many .zip sources broke because files with these badly formatted characters were not loaded as assets.
103
-
104
- ## 2.0.0 (2020-09-03)
105
-
106
- ### Breaking Changes
107
-
108
- - The `config` and `mappings` options in `.wp-env.json` are now merged with any overrides instead of being overwritten.
109
- - The first listed theme is no longer activated when running wp-env start, since this overwrote whatever theme the user manually activated.
110
- - `wp-env start` no longer stops the WordPress instance if it was already started unless it needs to configure WordPress.
111
- - `wp-env start` no longer updates remote sources after first install if the configuration is the same. Use `wp-env start --update` to update sources.
112
-
113
- ### New Feature
114
-
115
- - You may now specify specific configuration for different environments using `env.tests` or `env.development` in `.wp-env.json`.
116
- - `wp-env start` is significantly faster after first install.
117
-
118
- ## 1.6.0-rc.0 (2020-06-24)
119
-
120
- ### Bug Fixes
121
-
122
- - `wp-env destroy` now removes dangling docker volumes and networks associated with the WordPress environment.
123
-
124
- ## 1.4.0 (2020-05-28)
125
-
126
- ### New Feature
127
-
128
- - Add support for running interactive commands. Examples: `wp-env run cli wp shell` and `wp-env run cli bash`.
129
- - View php and WordPress log output with the new `wp-env logs` command.
130
- - Clean up your local environment with the new `wp-env destroy` command.
131
- - Expose Docker service for running phpunit commands.
132
- - You may now mount local directories to any location within the WordPress install. For example, you may specify `"wp-content/mu-plugins": "./path/to/mu-plugins"` to add mu-plugins.
133
-
134
- ## 1.1.0 (2020-04-01)
135
-
136
- ### New Feature
137
-
138
- - URLs for ZIP files are now supported as core, plugin, and theme sources.
139
- - The `.wp-env.json` coniguration file now accepts a `config` object for setting `wp-config.php` values.
140
- - A `.wp-env.override.json` configuration file can now be used to override fields from `.wp-env.json`.
141
- - You may now override the directory in which `wp-env` creates generated files with the `WP_ENV_HOME` environment variable. The default directory is `~/.wp-env/` (or `~/wp-env/` on Linux).
142
- - The `.wp-env.json` coniguration file now accepts `port` and `testsPort` options which can be used to set the ports on which the docker instance is mounted.
143
-
144
- ## 1.0.0 (2020-02-10)
145
-
146
- ### Breaking Changes
147
-
148
- - `wp-env start` no longer accepts a WordPress branch or tag reference as its argument. Instead, create a `.wp-env.json` file and specify a `"core"` field.
149
- - `wp-env start` will now download WordPress into a hidden directory located in `~/.wp-env`. You may delete your `{projectName}-wordpress` and `{projectName}-tests-wordpress` directories.
150
-
151
- ### New Feature
152
-
153
- - A `.wp-env.json` configuration file can now be used to specify the WordPress installation, plugins, and themes to use in the local development environment.
154
-
155
- ## 0.4.0 (2020-02-04)
156
-
157
- ### Bug Fixes
158
-
159
- - When running scripts using `wp-env run`, the output will not be formatted if not written to terminal display, resolving an issue where piped or redirected output could be unintentionally padded with newlines.