@automattic/vip 3.8.0 → 3.8.1

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.
@@ -101,6 +101,7 @@ class DevEnvImportSQLCommand {
101
101
  }
102
102
  }
103
103
  await (0, _devEnvironmentDatabase.addAdminUser)(lando, this.slug);
104
+ await (0, _devEnvironmentDatabase.dataCleanup)(lando, this.slug, this.options.quiet);
104
105
  }
105
106
  getImportArgs(dumpDetails) {
106
107
  let importArg = ['db', '--disable-auto-rehash'].concat(this.options.quiet ? '--silent' : []);
@@ -1,13 +1,25 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.reIndexSearch = exports.flushCache = exports.addAdminUser = void 0;
4
+ exports.reIndexSearch = exports.flushCache = exports.dataCleanup = exports.addAdminUser = void 0;
5
5
  var _devEnvironmentCore = require("./dev-environment-core");
6
6
  const addAdminUser = async (lando, slug, quiet) => {
7
7
  const addUserArg = ['wp', 'dev-env-add-admin', '--username=vipgo', '--password=password', '--skip-plugins', '--skip-themes'].concat(quiet ? ['--quiet'] : []);
8
8
  await (0, _devEnvironmentCore.exec)(lando, slug, addUserArg);
9
9
  };
10
10
  exports.addAdminUser = addAdminUser;
11
+ const dataCleanup = async (lando, slug, quiet) => {
12
+ const cleanupArg = ['wp', 'vip', 'data-cleanup', 'sql-import'].concat(quiet ? ['--quiet'] : []);
13
+ try {
14
+ await (0, _devEnvironmentCore.exec)(lando, slug, cleanupArg, {
15
+ stdio: 'inherit'
16
+ });
17
+ } catch (error) {
18
+ // This must not be a fatal error
19
+ console.log('WARNING: data cleanup failed.');
20
+ }
21
+ };
22
+ exports.dataCleanup = dataCleanup;
11
23
  const reIndexSearch = async (lando, slug) => {
12
24
  await (0, _devEnvironmentCore.exec)(lando, slug, ['wp', 'cli', 'has-command', 'vip-search']);
13
25
  await (0, _devEnvironmentCore.exec)(lando, slug, ['wp', 'vip-search', 'index', '--setup', '--network-wide', '--skip-confirm']);
package/docs/CHANGELOG.md CHANGED
@@ -1,34 +1,52 @@
1
1
  ## Changelog
2
2
 
3
+ ## 3.8.1
4
+
5
+ * fix(dev-env): clean up data after `vip dev-env sync sql`
6
+ * security: fix high severity CVE-2024-39338 in `axios`
7
+
8
+ **Full Changelog**: https://github.com/Automattic/vip-cli/compare/3.8.0...3.8.1
9
+
10
+ ## 3.8.0
11
+
12
+ * build(deps-dev): bump @babel/preset-env from 7.24.8 to 7.25.0 in the babel group
13
+ * build(deps): bump debug from 4.3.5 to 4.3.6
14
+ * SQL Import: Switch to wpSitesSDS query
15
+ * Extract many import-sql functionality to a separate file
16
+ * build(deps-dev): bump the babel group across 1 directory with 2 updates
17
+ * build(deps): bump adm-zip from 0.5.14 to 0.5.15
18
+ * build(deps): bump step-security/harden-runner from 2.9.0 to 2.9.1
19
+ * BB8-11630: Add confirmation for production env vars setting/deleting
20
+ * Remove querying `fileErrors` in Graphql API while fetching Media import status
21
+ * Mydumper integration
22
+
23
+ **Full Changelog**: https://github.com/Automattic/vip-cli/compare/3.7.1...3.8.0
24
+
3
25
  ## 3.7.1
4
26
 
5
- * New develop release: 3.7.1-dev.0 by @github-actions in #1944
6
- * build(deps): bump step-security/harden-runner from 2.8.1 to 2.9.0 by @dependabot in #1950
7
- * build(deps): bump semver from 7.6.2 to 7.6.3 by @dependabot in #1946
8
- * build(deps-dev): bump @types/node from 18.19.39 to 18.19.41 by @dependabot in #1951
9
- * refactor(dev-env): do not load SSH keys by @sjinks in #1934
10
- * build(deps): bump tar from 7.4.0 to 7.4.1 by @dependabot in #1952
11
- * build(deps-dev): bump typescript from 5.5.3 to 5.5.4 by @dependabot in #1954
12
- * build(deps-dev): bump @types/node from 18.19.41 to 18.19.42 by @dependabot in #1956
13
- * Refactor dev-env sync, dev-env import and export-sql to TypeScript by @abdullah-kasim in #1955
14
- * build(deps): bump tar from 7.4.1 to 7.4.3 by @dependabot in #1963
15
- * build(deps-dev): bump @types/dockerode from 3.3.30 to 3.3.31 by @dependabot in #1960
16
- * Gracefully fail when directory is not detected by @ariskataoka in #1947
17
- * New package release: v3.7.1 by @github-actions in #1966
27
+ * build(deps): bump step-security/harden-runner from 2.8.1 to 2.9.0
28
+ * build(deps): bump semver from 7.6.2 to 7.6.3
29
+ * build(deps-dev): bump @types/node from 18.19.39 to 18.19.41
30
+ * refactor(dev-env): do not load SSH keys
31
+ * build(deps): bump tar from 7.4.0 to 7.4.1
32
+ * build(deps-dev): bump typescript from 5.5.3 to 5.5.4
33
+ * build(deps-dev): bump @types/node from 18.19.41 to 18.19.42
34
+ * Refactor dev-env sync, dev-env import and export-sql to TypeScript
35
+ * build(deps): bump tar from 7.4.1 to 7.4.3
36
+ * build(deps-dev): bump @types/dockerode from 3.3.30 to 3.3.31
37
+ * Gracefully fail when directory is not detected
18
38
 
19
39
  **Full Changelog**: https://github.com/Automattic/vip-cli/compare/3.7.0...3.7.1
20
40
 
21
41
  ## 3.7.0
22
42
 
23
- * New develop release: 3.6.1-dev.0 by @github-actions in #1931
24
- * build(deps-dev): bump @automattic/eslint-plugin-wpvip from 0.12.0 to 0.13.0 by @dependabot in #1932
25
- * build(deps-dev): bump the babel group with 3 updates by @dependabot in #1936
26
- * build(deps): bump update-notifier from 7.0.0 to 7.1.0 by @dependabot in #1937
27
- * build(deps): bump actions/dependency-review-action from 4.3.3 to 4.3.4 by @dependabot in #1938
28
- * build(deps-dev): bump @babel/core from 7.24.8 to 7.24.9 in the babel group by @dependabot in #1939
29
- * build(deps-dev): bump @types/dockerode from 3.3.29 to 3.3.30 by @dependabot in #1941
30
- * update: media import validate-files by @ariskataoka in #1919
31
- * New package release: v3.7.0 by @github-actions in #1943
43
+ * build(deps-dev): bump @automattic/eslint-plugin-wpvip from 0.12.0 to 0.13.0
44
+ * build(deps-dev): bump the babel group with 3 updates
45
+ * build(deps): bump update-notifier from 7.0.0 to 7.1.0
46
+ * build(deps): bump actions/dependency-review-action from 4.3.3 to 4.3.4
47
+ * build(deps-dev): bump @babel/core from 7.24.8 to 7.24.9 in the babel group
48
+ * build(deps-dev): bump @types/dockerode from 3.3.29 to 3.3.30
49
+ * update: media import validate-files
32
50
 
33
51
  **Full Changelog**: https://github.com/Automattic/vip-cli/compare/3.6.0...3.7.0
34
52
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@automattic/vip",
9
- "version": "3.8.0",
9
+ "version": "3.8.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
@@ -4651,9 +4651,9 @@
4651
4651
  }
4652
4652
  },
4653
4653
  "node_modules/axios": {
4654
- "version": "1.7.2",
4655
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz",
4656
- "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==",
4654
+ "version": "1.7.4",
4655
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
4656
+ "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
4657
4657
  "license": "MIT",
4658
4658
  "dependencies": {
4659
4659
  "follow-redirects": "^1.15.6",
@@ -16711,9 +16711,9 @@
16711
16711
  "dev": true
16712
16712
  },
16713
16713
  "axios": {
16714
- "version": "1.7.2",
16715
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz",
16716
- "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==",
16714
+ "version": "1.7.4",
16715
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
16716
+ "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
16717
16717
  "requires": {
16718
16718
  "follow-redirects": "^1.15.6",
16719
16719
  "form-data": "^4.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "description": "The VIP Javascript library & CLI",
5
5
  "main": "index.js",
6
6
  "bin": {