@automattic/vip 2.9.4 → 2.11.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/CONTRIBUTING.md +2 -11
- package/README.md +147 -71
- package/assets/dev-env.lando.template.yml.ejs +3 -6
- package/automattic-vip-2.11.0.tgz +0 -0
- package/config/config.json +2 -2
- package/dist/bin/vip-dev-env-create.js +9 -1
- package/dist/bin/vip-dev-env-destroy.js +7 -7
- package/dist/bin/vip-dev-env-exec.js +7 -1
- package/dist/bin/vip-dev-env-import-media.js +7 -1
- package/dist/bin/vip-dev-env-import-sql.js +7 -1
- package/dist/bin/vip-dev-env-info.js +10 -1
- package/dist/bin/vip-dev-env-list.js +10 -1
- package/dist/bin/vip-dev-env-start.js +14 -3
- package/dist/bin/vip-dev-env-stop.js +7 -1
- package/dist/bin/vip-dev-env-update.js +9 -2
- package/dist/bin/vip-import-sql.js +7 -1
- package/dist/bin/vip-wp.js +127 -53
- package/dist/lib/analytics/clients/pendo.js +92 -0
- package/dist/lib/analytics/index.js +8 -3
- package/dist/lib/constants/dev-environment.js +13 -3
- package/dist/lib/dev-environment/dev-environment-cli.js +120 -54
- package/dist/lib/dev-environment/dev-environment-core.js +30 -17
- package/dist/lib/dev-environment/dev-environment-lando.js +35 -3
- package/dist/lib/tracker.js +15 -7
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/CONTRIBUTING.md
CHANGED
|
@@ -44,21 +44,12 @@ Our release flow for VIP CLI follows this pattern:
|
|
|
44
44
|
- Include a Changelog for all npm version releases, including any minor or major versions
|
|
45
45
|
- This is a public repository. Please do not include any internal links in PRs, changelogs, testing instructions, etc.
|
|
46
46
|
- Merge changes from your feature branch to the `develop` branch
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- Any team member that is part of our NPM organization can release new minor or major versions, but please have a Customer Experience (Pâtisserie) team member look over the changes first.
|
|
47
|
+
- If you are ready to release your changes publicly, merge your changes from the `develop` branch to the `master` branch. All changes that are not ready to be public should be feature flagged or stay in the `develop` branch to avoid conflicts when releasing urgent fixes (not recommended).
|
|
48
|
+
- Finally, release your changes as a new minor or major NPM version. Ping in the #vip-platform-patisserie channel to notify folks of a new release, but please feel free to release your changes without any blockers from the team. Any team member that is part of the Automattic NPM organization can release a new version; if you aren't a member, generic credentials are available in the Secret Store.
|
|
50
49
|
|
|
51
50
|
### Changelogs
|
|
52
51
|
Changelogs allow customers to keep up with all the changes happening across our VIP Platform. Changelogs for VIP CLI are posted to the [VIP Cloud Changelog P2](https://wpvipchangelog.wordpress.com/), along with the repository’s `README.md`.
|
|
53
52
|
|
|
54
|
-
### Release Schedule
|
|
55
|
-
|
|
56
|
-
The VIP Customer Experience squad conducts releases on Tuesdays from 4AM to 5PM Pacific Time (US). Releases are regular but do not happen every Tuesday. Please coordinate with the VIP Customer Experience squad if you'd like to lead your own release.
|
|
57
|
-
|
|
58
|
-
As part of the release process, our squad merges changes from the `develop` branch to the `master` branch. Therefore, do not merge changes into `develop` unless it is ready for release (or use a feature flag to disable it).
|
|
59
|
-
|
|
60
|
-
Fixes for urgent or breaking bugs may be merged straight to the `master` branch and released publicly via `npm` at any time outside of our release window. All other changes should participate in our release window.
|
|
61
|
-
|
|
62
53
|
## Releasing / Publishing
|
|
63
54
|
|
|
64
55
|
### Pre-publish Checks
|
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
VIP-CLI is your tool for interacting with and managing your VIP applications.
|
|
3
2
|
|
|
4
3
|
## Getting started
|
|
@@ -27,12 +26,41 @@ By default, we record information about the usage of this tool using an in-house
|
|
|
27
26
|
|
|
28
27
|
## Changelog
|
|
29
28
|
|
|
29
|
+
### 2.11.0 (11 May 2022)
|
|
30
|
+
|
|
31
|
+
- #1022 [dev-env] Validate docker installed
|
|
32
|
+
- #1026 [dev-env] adds tracking to stop subcommand
|
|
33
|
+
- #1028 Re-calculate the fileMeta if file gets changed by the searchAndReplace
|
|
34
|
+
- #1029 Adds Pendo analytics client
|
|
35
|
+
- #1030 [dev-env] Fix failure tracking
|
|
36
|
+
|
|
37
|
+
### 2.10.0 (4 May 2022)
|
|
38
|
+
|
|
39
|
+
- #1021 [dev-env] Add login info and documentation link to `dev-env info`
|
|
40
|
+
- #1023 [dev-env] Skip the trunk from the prompt about the latest available WordPress versions
|
|
41
|
+
- #1019 [dev-env] Unifies lando and other dev-env debug logs
|
|
42
|
+
- #1018 [dev-env] enable lando debug on `--debug`
|
|
43
|
+
- #1017 [dev-env] Adding tracking for create and destroy sub commands
|
|
44
|
+
- #1016 [dev-env] Adding tracking for start sub command
|
|
45
|
+
- #1020 [dev-env] More tracking
|
|
46
|
+
|
|
47
|
+
### 2.9.5 (26 April 2022)
|
|
48
|
+
|
|
49
|
+
- #1005 [dev-env] updateWordPress image improvements
|
|
50
|
+
- #1006 Remove renovate.json
|
|
51
|
+
- #1007 Set up CodeQL Scanning
|
|
52
|
+
- #1008 WP-CLI: Reattach Reconnect-Related Events After a Successful Reconnection
|
|
53
|
+
- #1009 Add ability to choose a PHP image to use
|
|
54
|
+
- #1010 [dev-env] Add Enterprise Search, XDebug, phpMyAdmin options to the config wizard.
|
|
55
|
+
|
|
30
56
|
### 2.9.4 (07 April 2022)
|
|
57
|
+
|
|
31
58
|
- #996 Clean up lint warnings
|
|
32
59
|
- #1001 Fix reconnect event listeners
|
|
33
60
|
- #1000 Bump socket.io-client from 4.0.1 to 4.4.1
|
|
34
61
|
|
|
35
62
|
### 2.9.3 (29 March 2022)
|
|
63
|
+
|
|
36
64
|
- #995 Add debug call to dev-envs handleCLIException
|
|
37
65
|
- #992 Add --debug flag to all commands
|
|
38
66
|
- #993 [dev-env] Fix in caching version list.
|
|
@@ -43,96 +71,109 @@ By default, we record information about the usage of this tool using an in-house
|
|
|
43
71
|
- #987 Add support for M1 Macs in the search-replace tests
|
|
44
72
|
|
|
45
73
|
### 2.9.2 (9 March 2022)
|
|
46
|
-
|
|
47
|
-
- #
|
|
48
|
-
- #
|
|
49
|
-
- #
|
|
74
|
+
|
|
75
|
+
- #980 [dev-env] Fix/tag formatting on stapled images
|
|
76
|
+
- #986 Clean the build folder prior to rebuilding it
|
|
77
|
+
- #985 Adding webP to the list of accepted extensions for files
|
|
78
|
+
- #972 Run tests in Windows Env
|
|
50
79
|
|
|
51
80
|
https://github.com/Automattic/vip/releases/tag/v2.9.2
|
|
52
81
|
|
|
53
82
|
### 2.9.1 (2 March 2022)
|
|
54
|
-
|
|
55
|
-
- #
|
|
83
|
+
|
|
84
|
+
- #982 Remove unused dependencies - Fixes Error: Cannot find module 'core-js'
|
|
85
|
+
- #978 [dev-env] Added phpmyadmin proxy value
|
|
56
86
|
|
|
57
87
|
https://github.com/Automattic/vip/releases/tag/v2.9.1
|
|
58
88
|
|
|
59
89
|
### 2.9.0 (1 March 2022)
|
|
60
|
-
|
|
61
|
-
- #
|
|
62
|
-
- #
|
|
63
|
-
- #
|
|
64
|
-
- #
|
|
65
|
-
- #
|
|
66
|
-
- #
|
|
67
|
-
- #
|
|
68
|
-
- #
|
|
69
|
-
- #
|
|
90
|
+
|
|
91
|
+
- #966 [dev-env] Dynamic WordPress Image List
|
|
92
|
+
- #975 [dev-env] prompt On Unselected Env
|
|
93
|
+
- #974 [dev-env] Corrections of text for -h menu in dev-env create
|
|
94
|
+
- #973 [dev-env] update Nginx image
|
|
95
|
+
- #971 [dev-env] Use custom add user command
|
|
96
|
+
- #964 [dev-env] Validate sql on import
|
|
97
|
+
- #970 [dev-env] Do not use /tmp as a userConfRoot
|
|
98
|
+
- #977 Fix flow errors
|
|
99
|
+
- #976 Fix/duplicate shortcut parameter
|
|
100
|
+
- #968 Update minimum Node version
|
|
70
101
|
|
|
71
102
|
https://github.com/Automattic/vip/releases/tag/v2.9.0
|
|
72
103
|
|
|
73
104
|
### 2.8.2 (27 January 2021)
|
|
74
|
-
|
|
75
|
-
- #
|
|
105
|
+
|
|
106
|
+
- #961 Fixes md5 calculation failing when search-replace is used
|
|
107
|
+
- #959 Fixes md5 calculation for SQL Imports on VIPd
|
|
76
108
|
|
|
77
109
|
https://github.com/Automattic/vip/releases/tag/v2.8.2
|
|
78
110
|
|
|
79
111
|
### 2.8.0 (25 January 2021)
|
|
80
|
-
|
|
81
|
-
- #
|
|
82
|
-
- #
|
|
83
|
-
- #
|
|
84
|
-
- #
|
|
112
|
+
|
|
113
|
+
- #952 FORNO-1047: Fix SQL Import for compressed files
|
|
114
|
+
- #955 Add Error prefix for "Failed to fetch logs" msg
|
|
115
|
+
- #946 Add support for the site logs tailing feature
|
|
116
|
+
- #953 [dev-env] Updated list of available wordpress images for dev-env
|
|
117
|
+
- #933 Update dependency debug to v4.3.3
|
|
85
118
|
|
|
86
119
|
https://github.com/Automattic/vip/releases/tag/v2.8.0
|
|
87
120
|
|
|
88
121
|
### 2.7.1 (10 January 2021)
|
|
122
|
+
|
|
89
123
|
- #950 Switch to npm-shrinkwrap
|
|
90
|
-
- #947
|
|
91
|
-
- #944
|
|
92
|
-
- #942
|
|
124
|
+
- #947 [dev-env] List all dev env alias
|
|
125
|
+
- #944 Add `vip whoami` command
|
|
126
|
+
- #942 Envvar: Show message when there is an attempt to change the New Relic key.
|
|
93
127
|
|
|
94
128
|
https://github.com/Automattic/vip/releases/tag/v2.7.1
|
|
95
129
|
|
|
96
130
|
### 2.7.0 (07 December 2021)
|
|
97
|
-
|
|
98
|
-
- #
|
|
99
|
-
- #
|
|
131
|
+
|
|
132
|
+
- #941 [dev-env] Bump lando CLI dependency
|
|
133
|
+
- #938 Hide roll back message after SQL Import failure for launched sites
|
|
134
|
+
- #936 Sets jest maxWorkers to 4
|
|
100
135
|
|
|
101
136
|
https://github.com/Automattic/vip/releases/tag/v2.7.0
|
|
102
137
|
|
|
103
138
|
### 2.6.0 (23 November 2021)
|
|
104
|
-
|
|
105
|
-
- #
|
|
106
|
-
- #
|
|
107
|
-
- #
|
|
108
|
-
- #
|
|
109
|
-
- #
|
|
110
|
-
- #
|
|
111
|
-
- #
|
|
139
|
+
|
|
140
|
+
- #921 [dev-env] Introuces update to change existing environment
|
|
141
|
+
- #928 [dev-env] Switch lando to use our fork
|
|
142
|
+
- #927 [dev-env] Handles user already exists during sql import
|
|
143
|
+
- #925 [dev-env] Fix the issue with dev-env update
|
|
144
|
+
- #924 FORNO-985 Increase SQL Import limit for unlaunched sites to 100GB
|
|
145
|
+
- #923 FORNO-943 Fixes a bug which prevents displaying SQL Import error messages
|
|
146
|
+
- #922 Update eslint-config-wpvip commit hash to c6605d1
|
|
147
|
+
- #873 Pin dependencies
|
|
112
148
|
|
|
113
149
|
### 2.5.0 (9 November 2021)
|
|
114
|
-
|
|
115
|
-
- #
|
|
116
|
-
- #
|
|
117
|
-
- #
|
|
150
|
+
|
|
151
|
+
- #919 [dev-env] Expose lando core logs
|
|
152
|
+
- #916 [dev-env] Save instance data state
|
|
153
|
+
- #914 [dev-env] update help wording for dev env
|
|
154
|
+
- #915 Add warning message when an envvar is set/deleted
|
|
118
155
|
|
|
119
156
|
### 2.4.0 (5 November 2021)
|
|
120
|
-
|
|
121
|
-
- #
|
|
157
|
+
|
|
158
|
+
- #913 [dev-env] No login required for dev-env
|
|
159
|
+
- #911 Adds more release instructions
|
|
122
160
|
|
|
123
161
|
### 2.3.1 (2 November 2021)
|
|
162
|
+
|
|
124
163
|
- Fixes an issue with the 2.3.0 where the intended changes didn't get published correctly.
|
|
125
164
|
|
|
126
165
|
### 2.3.0 (2 November 2021)
|
|
127
|
-
|
|
128
|
-
- #
|
|
129
|
-
- #
|
|
130
|
-
- #
|
|
131
|
-
- #
|
|
166
|
+
|
|
167
|
+
- #908 [dev-env] Custom user permissions setup
|
|
168
|
+
- #897 [dev-env] Primary domain prompt for primary domain redirect
|
|
169
|
+
- #902 [dev-env] Delete file permissions
|
|
170
|
+
- #900 Clarify CONTRIBUTING guidelines
|
|
171
|
+
- #905 Update contribution steps
|
|
132
172
|
|
|
133
173
|
### 2.2.0 (27 October 2021)
|
|
134
174
|
|
|
135
175
|
New: Environment variables command
|
|
176
|
+
|
|
136
177
|
- #896 Open config envvar command for all customers
|
|
137
178
|
- #876 Update envvar list command to only show names
|
|
138
179
|
- #879 Add config envvar get and get-all commands
|
|
@@ -140,6 +181,7 @@ New: Environment variables command
|
|
|
140
181
|
- #858 Environment variable CLI commands (list, set, delete)
|
|
141
182
|
|
|
142
183
|
Fixes:
|
|
184
|
+
|
|
143
185
|
- #901 Don't mark import as failed until restore has completed
|
|
144
186
|
- #899 Proxy fix + healthchecks
|
|
145
187
|
- #894 support windows db import
|
|
@@ -154,6 +196,7 @@ Fixes:
|
|
|
154
196
|
- #870 Add the VIP CLI release process and release schedule
|
|
155
197
|
|
|
156
198
|
Dependencies updates:
|
|
199
|
+
|
|
157
200
|
- #778 Update dependency ini to v2
|
|
158
201
|
- #786 Update dependency keytar to v7
|
|
159
202
|
- #884 Update dependency cli-columns to v4
|
|
@@ -166,28 +209,28 @@ https://github.com/Automattic/vip/releases/tag/v2.2.0
|
|
|
166
209
|
|
|
167
210
|
### 2.1.0 (16 September 2021)
|
|
168
211
|
|
|
169
|
-
- #857
|
|
170
|
-
- #864
|
|
171
|
-
- #868
|
|
172
|
-
- #862
|
|
173
|
-
- #867
|
|
174
|
-
- #863
|
|
175
|
-
- #855
|
|
176
|
-
- #856
|
|
177
|
-
- #849
|
|
178
|
-
- #854
|
|
179
|
-
- #850
|
|
180
|
-
- #853
|
|
181
|
-
- #851
|
|
182
|
-
- #852
|
|
183
|
-
- #843
|
|
184
|
-
- #848
|
|
185
|
-
- #847
|
|
186
|
-
- #840
|
|
187
|
-
- #845
|
|
188
|
-
- #846
|
|
189
|
-
- #842
|
|
190
|
-
- #839
|
|
212
|
+
- #857 Remove select DB checks
|
|
213
|
+
- #864 Adding WordPress versions to dev-env
|
|
214
|
+
- #868 persist database data in between container restarts
|
|
215
|
+
- #862 Fix lint warnings
|
|
216
|
+
- #867 Update dependency lando to v3.3.2
|
|
217
|
+
- #863 Add links to CONTRIBUTING and SECURITY
|
|
218
|
+
- #855 Add some helpful hints for new command scaffolding
|
|
219
|
+
- #856 Adding media import command on dev environment
|
|
220
|
+
- #849 Adding SQL import to dev environment
|
|
221
|
+
- #854 Updating command descriptions and arguments on dev-env
|
|
222
|
+
- #850 Use official memcached image on dev-env
|
|
223
|
+
- #853 Enable ssl forwarding on dev-env
|
|
224
|
+
- #851 Conditionally disabling statsd on mu-plugins
|
|
225
|
+
- #852 Fixing Prettier format annotation typo
|
|
226
|
+
- #843 Removing custom wp-config-defaults
|
|
227
|
+
- #848 Not using a prefix to all dev environments
|
|
228
|
+
- #847 Update dependency lando to v3.3.0
|
|
229
|
+
- #840 Use official Elasticsearch image on dev-env
|
|
230
|
+
- #845 Fix MariaDB healthcheck
|
|
231
|
+
- #846 dev-env: Update error message for directory prompt
|
|
232
|
+
- #842 Removing PHP parameter from dev environment
|
|
233
|
+
- #839 Use official MariaDB image and enable version selection on dev-env
|
|
191
234
|
|
|
192
235
|
https://github.com/Automattic/vip/releases/tag/v2.1.0
|
|
193
236
|
|
|
@@ -229,6 +272,7 @@ https://github.com/Automattic/vip/releases/tag/v2.0.13
|
|
|
229
272
|
https://github.com/Automattic/vip/releases/tag/v2.0.12
|
|
230
273
|
|
|
231
274
|
### 2.0.11 (5 August 2021)
|
|
275
|
+
|
|
232
276
|
- Handle parameter validation in a consistent way #795
|
|
233
277
|
- Fix error blocking data sync on CLI sites #810
|
|
234
278
|
- Update DB Engine check to reduce false positives #811
|
|
@@ -244,6 +288,7 @@ https://github.com/Automattic/vip/releases/tag/v2.0.12
|
|
|
244
288
|
https://github.com/Automattic/vip/releases/tag/2.0.11
|
|
245
289
|
|
|
246
290
|
### 2.0.10 (21 June 2021)
|
|
291
|
+
|
|
247
292
|
- Adds Media Import Abort subcommand
|
|
248
293
|
- Disables enterprise search by default
|
|
249
294
|
- Handles numbered slugs correctly
|
|
@@ -255,6 +300,7 @@ https://github.com/Automattic/vip/releases/tag/2.0.11
|
|
|
255
300
|
https://github.com/Automattic/vip/releases/tag/v2.0.10
|
|
256
301
|
|
|
257
302
|
### 2.0.9 (3 June 2021)
|
|
303
|
+
|
|
258
304
|
- Enable SQL import for all site types
|
|
259
305
|
- Bug fix for analytics errors causing some commands to fail
|
|
260
306
|
- Add the full changelog to the readme
|
|
@@ -264,6 +310,7 @@ https://github.com/Automattic/vip/releases/tag/v2.0.10
|
|
|
264
310
|
https://github.com/Automattic/vip/releases/tag/v2.0.9
|
|
265
311
|
|
|
266
312
|
### 2.0.8 (27 May 2021)
|
|
313
|
+
|
|
267
314
|
- [Beta] Media Import: Enable media imports for production WordPress applications
|
|
268
315
|
- SQL Import: Enable SQL Import for launched sites
|
|
269
316
|
- SQL Import: Enable SQL Import for multisite networks
|
|
@@ -272,6 +319,7 @@ https://github.com/Automattic/vip/releases/tag/v2.0.9
|
|
|
272
319
|
https://github.com/Automattic/vip/releases/tag/v2.0.8
|
|
273
320
|
|
|
274
321
|
### 2.0.7 (6 May 2021)
|
|
322
|
+
|
|
275
323
|
- SQL Import: Add additional multisite validations
|
|
276
324
|
- Update socket.io-client to 4.0.1
|
|
277
325
|
- Misc. dependency updates
|
|
@@ -279,33 +327,39 @@ https://github.com/Automattic/vip/releases/tag/v2.0.8
|
|
|
279
327
|
https://github.com/Automattic/vip/releases/tag/v2.0.7
|
|
280
328
|
|
|
281
329
|
### 2.0.6 (15 Apr 2021)
|
|
330
|
+
|
|
282
331
|
- SQL Import: Add additional checks for site type
|
|
283
332
|
|
|
284
333
|
https://github.com/Automattic/vip/releases/tag/v2.0.6
|
|
285
334
|
|
|
286
335
|
### 2.0.5 (8 Mar 2021)
|
|
336
|
+
|
|
287
337
|
- Fix a bug when comparing env data to selected environment #697
|
|
288
338
|
|
|
289
339
|
https://github.com/Automattic/vip/releases/tag/v2.0.5
|
|
290
340
|
|
|
291
341
|
### 2.0.4 (3 Mar 2021)
|
|
342
|
+
|
|
292
343
|
- Bump socket.io-client from 2.3.0 to 2.4.0 (Fixes WP-CLI in node 15+) #679
|
|
293
344
|
- Additional SQL import file static validations #669
|
|
294
345
|
|
|
295
346
|
https://github.com/Automattic/vip/releases/tag/v2.0.4
|
|
296
347
|
|
|
297
348
|
### 2.0.3 (19 Feb 2021)
|
|
349
|
+
|
|
298
350
|
- Improved SQL import validation around the use of TRIGGER
|
|
299
351
|
|
|
300
352
|
https://github.com/Automattic/vip/releases/tag/v2.0.3
|
|
301
353
|
|
|
302
354
|
### 2.0.2 (15 Feb 2021)
|
|
355
|
+
|
|
303
356
|
- Improved handling of debug output during search & replace
|
|
304
357
|
- Updated the vip-search-replace package to ^1.0.13
|
|
305
358
|
|
|
306
359
|
https://github.com/Automattic/vip/releases/tag/v2.0.2
|
|
307
360
|
|
|
308
361
|
### 2.0.1 (11 Feb 2021)
|
|
362
|
+
|
|
309
363
|
- SQL Import: Improved reporting of server-side failures
|
|
310
364
|
- SQL Import: Add ability to skip local validation
|
|
311
365
|
- Updated the vip-search-replace package to v1.0.12
|
|
@@ -314,6 +368,7 @@ https://github.com/Automattic/vip/releases/tag/v2.0.2
|
|
|
314
368
|
https://github.com/Automattic/vip/releases/tag/v2.0.1
|
|
315
369
|
|
|
316
370
|
### 2.0.0 (2 Feb 2021)
|
|
371
|
+
|
|
317
372
|
- Drops support for Node 8
|
|
318
373
|
- Added Security Policy
|
|
319
374
|
- Added SQL file import feature for new sites
|
|
@@ -322,37 +377,44 @@ https://github.com/Automattic/vip/releases/tag/v2.0.1
|
|
|
322
377
|
https://github.com/Automattic/vip/releases/tag/v2.0.0
|
|
323
378
|
|
|
324
379
|
### 1.12.1 (8 Sep 2020)
|
|
380
|
+
|
|
325
381
|
- Updated list of accepted special characters for media files for imports
|
|
326
382
|
|
|
327
383
|
https://github.com/Automattic/vip/releases/tag/v1.12.1
|
|
328
384
|
|
|
329
385
|
### 1.12.0 (21 Aug 2020)
|
|
386
|
+
|
|
330
387
|
- Added multisite support for media files validation
|
|
331
388
|
- Added Tracks for SQL and media file validation events
|
|
332
389
|
|
|
333
390
|
https://github.com/Automattic/vip/releases/tag/v1.12.0
|
|
334
391
|
|
|
335
392
|
### 1.11.2 (17 Aug 2020)
|
|
393
|
+
|
|
336
394
|
- Added support for multiple nested folders for the media file validation command
|
|
337
395
|
|
|
338
396
|
https://github.com/Automattic/vip/releases/tag/v1.11.2
|
|
339
397
|
|
|
340
398
|
### 1.11.1 (17 Aug 2020)
|
|
399
|
+
|
|
341
400
|
- Added fix to process the import validation subcommands
|
|
342
401
|
|
|
343
402
|
https://github.com/Automattic/vip/releases/tag/v1.11.1
|
|
344
403
|
|
|
345
404
|
### 1.11.0 (17 Aug 2020)
|
|
405
|
+
|
|
346
406
|
- Added `vip import validate sql` and `vip import validate files` commands to run static validation checks for SQL and media files for imports
|
|
347
407
|
|
|
348
408
|
https://github.com/Automattic/vip/releases/tag/v1.11.0
|
|
349
409
|
|
|
350
410
|
### 1.10.0 (12 Jun 2020)
|
|
411
|
+
|
|
351
412
|
- Added support for specifying a SOCKS proxy through the environment variable VIP_PROXY
|
|
352
413
|
|
|
353
414
|
https://github.com/Automattic/vip/releases/tag/v1.10.0
|
|
354
415
|
|
|
355
416
|
### 1.9.0 (30 Mar 2020)
|
|
417
|
+
|
|
356
418
|
- Added support for [opting out of usage tracking](https://github.com/Automattic/vip/tree/e54d9ee0ce2dd4725ca8718b3aba06db24306ad7#analytics) via `DO_NOT_TRACK` environment variable #547
|
|
357
419
|
- Fix interactive commands not working correctly #478
|
|
358
420
|
- Show usage information when an unsupported command is entered #527
|
|
@@ -361,6 +423,7 @@ https://github.com/Automattic/vip/releases/tag/v1.10.0
|
|
|
361
423
|
https://github.com/Automattic/vip/releases/tag/v1.9.0
|
|
362
424
|
|
|
363
425
|
### 1.8.0 (25 Sep 2019)
|
|
426
|
+
|
|
364
427
|
- Fixes around cancelling commands via Ctrl-C
|
|
365
428
|
- Gracefully handle remote command cancellation
|
|
366
429
|
- Enhance Rollbar logging for additional use cases
|
|
@@ -368,21 +431,25 @@ https://github.com/Automattic/vip/releases/tag/v1.9.0
|
|
|
368
431
|
https://github.com/Automattic/vip/releases/tag/v1.8.0
|
|
369
432
|
|
|
370
433
|
### 1.7.0 (15 Aug 15 2019)
|
|
434
|
+
|
|
371
435
|
- Resume long-running WP-CLI commands in case of network interruptions
|
|
372
436
|
|
|
373
437
|
https://github.com/Automattic/vip/releases/tag/v1.7.0
|
|
374
438
|
|
|
375
439
|
### 1.6.2 (25 Jul 2019)
|
|
440
|
+
|
|
376
441
|
- Corrected some install issues with the 1.6.0/1.6.1 releases.
|
|
377
442
|
|
|
378
443
|
https://github.com/Automattic/vip/releases/tag/v1.6.2
|
|
379
444
|
|
|
380
445
|
### 1.6.1 (25 Jul 2019)
|
|
446
|
+
|
|
381
447
|
- Intermittent release to test some issues with v1.6.0
|
|
382
448
|
|
|
383
449
|
https://github.com/Automattic/vip/releases/tag/v1.6.1
|
|
384
450
|
|
|
385
451
|
### 1.6.0 (25 Jul 2019)
|
|
452
|
+
|
|
386
453
|
- We added ability to cancel running commands.
|
|
387
454
|
- We fixed an issue with trailing characters such as line breaks affecting use of command output by scripts.
|
|
388
455
|
- Various dependancy updates.
|
|
@@ -390,6 +457,7 @@ https://github.com/Automattic/vip/releases/tag/v1.6.1
|
|
|
390
457
|
https://github.com/Automattic/vip/releases/tag/v1.6.0
|
|
391
458
|
|
|
392
459
|
### 1.5.0 (15 Jul 2019)
|
|
460
|
+
|
|
393
461
|
- Added `--yes` flag for WP-CLI commands to skip confirmation on production environments.
|
|
394
462
|
- We fixed the character limit errors raised when running long WP-CLI commands.
|
|
395
463
|
- We've added Rollbar to allow us to monitor and address errors
|
|
@@ -398,11 +466,13 @@ https://github.com/Automattic/vip/releases/tag/v1.6.0
|
|
|
398
466
|
https://github.com/Automattic/vip/releases/tag/v1.5.0
|
|
399
467
|
|
|
400
468
|
### 1.4.1 (29 Apr 2019)
|
|
469
|
+
|
|
401
470
|
- No functional changes, 1.4.0 was already taken on NPM :)
|
|
402
471
|
|
|
403
472
|
https://github.com/Automattic/vip/releases/tag/1.4.1
|
|
404
473
|
|
|
405
474
|
### 1.4.0 (29 Apr 2019)
|
|
475
|
+
|
|
406
476
|
- Added "environment alias" support (`vip @my-site.env sync`)
|
|
407
477
|
- Added support for WP-CLI commands
|
|
408
478
|
- Misc. dependency updates
|
|
@@ -410,6 +480,7 @@ https://github.com/Automattic/vip/releases/tag/1.4.1
|
|
|
410
480
|
https://github.com/Automattic/vip/releases/tag/1.4.0
|
|
411
481
|
|
|
412
482
|
### 1.3.0 (1 Feb 2019)
|
|
483
|
+
|
|
413
484
|
- We now display information header for every `vip app --app` execution [(#223)](https://github.com/Automattic/vip/pull/223).
|
|
414
485
|
- We fixed the logout bug asking the user to login before being able to logout [(#222)](https://github.com/Automattic/vip/pull/222) and we also display a message when a user logout [(#221)](https://github.com/Automattic/vip/pull/221).
|
|
415
486
|
- We replaced `inquirer` with `enquirer` [(#229)](https://github.com/Automattic/vip/pull/229).
|
|
@@ -420,11 +491,13 @@ https://github.com/Automattic/vip/releases/tag/1.4.0
|
|
|
420
491
|
https://github.com/Automattic/vip/releases/tag/v1.3.0
|
|
421
492
|
|
|
422
493
|
### 1.2.1 (5 Dec 2018)
|
|
494
|
+
|
|
423
495
|
- The `1.2.0` version was containing a bug and we published a patch to fix it. Please use this version instead.
|
|
424
496
|
|
|
425
497
|
https://github.com/Automattic/vip/releases/tag/v1.2.1
|
|
426
498
|
|
|
427
499
|
### 1.2.0 (5 Dec 2018)
|
|
500
|
+
|
|
428
501
|
- We now display a preview of the `sync` feature with the backup time and the search/replace taking place in your database.
|
|
429
502
|
- We now display your mapped domain instead of the placeholder `go-vip.co` domain in `vip app` and `vip app list`.
|
|
430
503
|
- We now display a better message when an app does not have any non-production environments.
|
|
@@ -434,11 +507,13 @@ https://github.com/Automattic/vip/releases/tag/v1.2.1
|
|
|
434
507
|
https://github.com/Automattic/vip/releases/tag/v1.2.0
|
|
435
508
|
|
|
436
509
|
### 1.1.1 (1 Nov 2018)
|
|
510
|
+
|
|
437
511
|
- Updates dependencies to fix a bug introduced by sub-dependencies.
|
|
438
512
|
|
|
439
513
|
https://github.com/Automattic/vip/releases/tag/v1.1.1
|
|
440
514
|
|
|
441
515
|
### 1.1.0 (12 Jul 2018)
|
|
516
|
+
|
|
442
517
|
- We now correctly report errors when `vip sync` fails. Previously, this would incorrectly report that a sync was run previously.
|
|
443
518
|
- We fixed permissions issues for some users with `admin` access for repos. They were unable to properly view and access applications.
|
|
444
519
|
- We now display more applications in `vip app list` (up to 100!) and have made it easier to browse through a large list thanks to (`$PAGER`|`less`) support. Previously you would only see the first 10 applications in your account.
|
|
@@ -448,6 +523,7 @@ https://github.com/Automattic/vip/releases/tag/v1.1.0
|
|
|
448
523
|
### 1.0.0 (2 Jul 2018)
|
|
449
524
|
|
|
450
525
|
The first release!
|
|
526
|
+
|
|
451
527
|
- `vip app list`: view a list of all your applications.
|
|
452
528
|
- `vip app`: view details about one of your applications.
|
|
453
529
|
- `vip sync`: trigger [a data sync](https://vip.wordpress.com/2018/03/28/data-sync-on-vip-go/) to synchronize data from your production environment to non-production environments.
|
|
@@ -22,7 +22,6 @@ services:
|
|
|
22
22
|
volumes:
|
|
23
23
|
devtools: {}
|
|
24
24
|
scripts:
|
|
25
|
-
|
|
26
25
|
nginx:
|
|
27
26
|
type: compose
|
|
28
27
|
ssl: true
|
|
@@ -37,11 +36,9 @@ services:
|
|
|
37
36
|
php:
|
|
38
37
|
type: compose
|
|
39
38
|
services:
|
|
40
|
-
image:
|
|
39
|
+
image: <%= php %>
|
|
41
40
|
command: run.sh
|
|
42
41
|
working_dir: /wp
|
|
43
|
-
healthcheck:
|
|
44
|
-
test: 'cat /wp/wp-includes/pomo/mo.php'
|
|
45
42
|
environment:
|
|
46
43
|
XDEBUG: <%= xdebug ? 'enable' : 'disable' %>
|
|
47
44
|
STATSD: <%= statsd ? 'enable' : 'disable' %>
|
|
@@ -95,7 +92,7 @@ services:
|
|
|
95
92
|
environment:
|
|
96
93
|
UPLOAD_LIMIT: 4G
|
|
97
94
|
<% } %>
|
|
98
|
-
|
|
95
|
+
<% if ( enterpriseSearchEnabled ) { %>
|
|
99
96
|
vip-search:
|
|
100
97
|
type: compose
|
|
101
98
|
services:
|
|
@@ -115,7 +112,7 @@ services:
|
|
|
115
112
|
- search_data:/usr/share/elasticsearch/data
|
|
116
113
|
volumes:
|
|
117
114
|
search_data:
|
|
118
|
-
|
|
115
|
+
<% } %>
|
|
119
116
|
<% if ( statsd ) { %>
|
|
120
117
|
statsd:
|
|
121
118
|
type: compose
|
|
Binary file
|
package/config/config.json
CHANGED
|
@@ -14,6 +14,8 @@ var _debug = _interopRequireDefault(require("debug"));
|
|
|
14
14
|
|
|
15
15
|
var _chalk = _interopRequireDefault(require("chalk"));
|
|
16
16
|
|
|
17
|
+
var _tracker = require("../lib/tracker");
|
|
18
|
+
|
|
17
19
|
var _command = _interopRequireDefault(require("../lib/cli/command"));
|
|
18
20
|
|
|
19
21
|
var exit = _interopRequireWildcard(require("../lib/cli/exit"));
|
|
@@ -58,8 +60,13 @@ const cmd = (0, _command.default)().option('slug', 'Custom name of the dev envir
|
|
|
58
60
|
(0, _devEnvironmentCli.addDevEnvConfigurationOptions)(cmd);
|
|
59
61
|
cmd.examples(examples);
|
|
60
62
|
cmd.argv(process.argv, async (arg, opt) => {
|
|
63
|
+
await (0, _devEnvironmentCli.validateDependencies)();
|
|
61
64
|
const slug = (0, _devEnvironmentCli.getEnvironmentName)(opt);
|
|
62
65
|
debug('Args: ', arg, 'Options: ', opt);
|
|
66
|
+
const trackingInfo = {
|
|
67
|
+
slug
|
|
68
|
+
};
|
|
69
|
+
await (0, _tracker.trackEvent)('dev_env_create_command_execute', trackingInfo);
|
|
63
70
|
|
|
64
71
|
const startCommand = _chalk.default.bold((0, _devEnvironmentCli.getEnvironmentStartCommand)(opt));
|
|
65
72
|
|
|
@@ -91,7 +98,8 @@ cmd.argv(process.argv, async (arg, opt) => {
|
|
|
91
98
|
await (0, _devEnvironmentCore.printEnvironmentInfo)(slug);
|
|
92
99
|
const message = '\n' + _chalk.default.green('✓') + ` environment created.\n\nTo start it please run:\n\n${startCommand}\n`;
|
|
93
100
|
console.log(message);
|
|
101
|
+
await (0, _tracker.trackEvent)('dev_env_create_command_success', trackingInfo);
|
|
94
102
|
} catch (error) {
|
|
95
|
-
|
|
103
|
+
await (0, _devEnvironmentCli.handleCLIException)(error, 'dev_env_create_command_error', trackingInfo);
|
|
96
104
|
}
|
|
97
105
|
});
|
|
@@ -14,9 +14,9 @@ var _debug = _interopRequireDefault(require("debug"));
|
|
|
14
14
|
|
|
15
15
|
var _chalk = _interopRequireDefault(require("chalk"));
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _tracker = require("../lib/tracker");
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _command = _interopRequireDefault(require("../lib/cli/command"));
|
|
20
20
|
|
|
21
21
|
var _devEnvironmentCore = require("../lib/dev-environment/dev-environment-core");
|
|
22
22
|
|
|
@@ -24,10 +24,6 @@ var _devEnvironmentCli = require("../lib/dev-environment/dev-environment-cli");
|
|
|
24
24
|
|
|
25
25
|
var _devEnvironment = require("../lib/constants/dev-environment");
|
|
26
26
|
|
|
27
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
28
|
-
|
|
29
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
30
|
-
|
|
31
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32
28
|
|
|
33
29
|
/**
|
|
@@ -42,7 +38,10 @@ const examples = [{
|
|
|
42
38
|
description: 'Destroys a local dev environment named foo'
|
|
43
39
|
}];
|
|
44
40
|
(0, _command.default)().option('slug', 'Custom name of the dev environment').option('soft', 'Keep config files needed to start an environment intact').examples(examples).argv(process.argv, async (arg, opt) => {
|
|
41
|
+
await (0, _devEnvironmentCli.validateDependencies)();
|
|
45
42
|
const slug = (0, _devEnvironmentCli.getEnvironmentName)(opt);
|
|
43
|
+
const trackingInfo = (0, _devEnvironmentCli.getEnvTrackingInfo)(slug);
|
|
44
|
+
await (0, _tracker.trackEvent)('dev_env_destroy_command_execute', trackingInfo);
|
|
46
45
|
debug('Args: ', arg, 'Options: ', opt);
|
|
47
46
|
|
|
48
47
|
try {
|
|
@@ -50,7 +49,8 @@ const examples = [{
|
|
|
50
49
|
await (0, _devEnvironmentCore.destroyEnvironment)(slug, removeFiles);
|
|
51
50
|
const message = _chalk.default.green('✓') + ' Environment destroyed.\n';
|
|
52
51
|
console.log(message);
|
|
52
|
+
await (0, _tracker.trackEvent)('dev_env_destroy_command_success', trackingInfo);
|
|
53
53
|
} catch (error) {
|
|
54
|
-
|
|
54
|
+
await (0, _devEnvironmentCli.handleCLIException)(error, 'dev_env_destroy_command_error', trackingInfo);
|
|
55
55
|
}
|
|
56
56
|
});
|