heroku 7.67.2 → 8.0.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
@@ -80,12 +80,10 @@ For other issues, [submit a support ticket](https://help.heroku.com/).
80
80
  Developing
81
81
  ==========
82
82
 
83
- This project is built with [lerna](https://lerna.js.org/). The core plugins are located in [./packages](./packages).
83
+ This project is built with [lerna](https://lerna.js.org/). The core plugins are located in [./packages](./packages).
84
84
 
85
85
  After cloning the repo
86
86
  1. Run `yarn` to install dependencies
87
- 2. Run `yarn lerna bootstrap` set up Lerna and link the packages together
88
- - This repo currently uses an older version of Lerna. We recommend using the version specified in the package.json instead of a newer version that you may have installed globally.
89
87
 
90
88
  To execute Heroku CLI commands locally, use `./bin/run <command>`. For example, to run the `heroku apps` command with your local code, run `./bin/run apps` from the root directory.
91
89
 
package/bin/run CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  process.env.HEROKU_UPDATE_INSTRUCTIONS = process.env.HEROKU_UPDATE_INSTRUCTIONS || 'update with: "npm update -g heroku"'
4
4
 
5
- require('@oclif/command').run()
6
- .then(require('@oclif/command/flush'))
7
- .catch(require('@oclif/errors/handle'))
5
+ const oclif = require('@oclif/core')
6
+
7
+ oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
@@ -1,7 +1,7 @@
1
- import * as Config from '@oclif/config';
1
+ import { Interfaces } from '@oclif/core';
2
2
  import deps from './deps';
3
3
  export interface RecordOpts {
4
- Command: Config.Command.Class;
4
+ Command: Interfaces.Command.Class;
5
5
  argv: string[];
6
6
  }
7
7
  export interface AnalyticsInterface {
@@ -22,10 +22,10 @@ export interface AnalyticsInterface {
22
22
  };
23
23
  }
24
24
  export default class AnalyticsCommand {
25
- config: Config.IConfig;
25
+ config: Interfaces.Config;
26
26
  userConfig: typeof deps.UserConfig.prototype;
27
27
  http: typeof deps.HTTP;
28
- constructor(config: Config.IConfig);
28
+ constructor(config: Interfaces.Config);
29
29
  record(opts: RecordOpts): Promise<any>;
30
30
  get url(): string;
31
31
  get authorizationToken(): string | undefined;
package/lib/file.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.realpathSync = exports.outputJSON = exports.readJSON = exports.removeEmptyDirs = exports.ls = exports.remove = exports.rename = exports.stat = exports.exists = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const path = tslib_1.__importStar(require("path"));
5
6
  const deps_1 = tslib_1.__importDefault(require("./deps"));
@@ -1,4 +1,4 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare function checkTos(options: any): void;
3
3
  declare const hook: Hook.Init;
4
4
  export default hook;
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checkTos = void 0;
3
4
  const tslib_1 = require("tslib");
5
+ const core_1 = require("@oclif/core");
4
6
  const path = tslib_1.__importStar(require("path"));
5
7
  const fs = tslib_1.__importStar(require("fs-extra"));
6
- const cli_ux_1 = tslib_1.__importDefault(require("cli-ux"));
7
8
  function checkTos(options) {
8
9
  const tosPath = path.join(options.config.cacheDir, 'terms-of-service');
9
10
  const viewedBanner = fs.pathExistsSync(tosPath);
10
11
  const message = 'Our terms of service have changed: https://dashboard.heroku.com/terms-of-service';
11
12
  if (!viewedBanner) {
12
- cli_ux_1.default.warn(message);
13
+ core_1.CliUx.ux.warn(message);
13
14
  fs.createFile(tosPath);
14
15
  }
15
16
  }
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const version: Hook.Init;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.version = void 0;
3
4
  const allowlist = [
4
5
  'HEROKU_API_KEY',
5
6
  'HEROKU_APP',
@@ -10,7 +11,7 @@ const allowlist = [
10
11
  'SSL_CA_FILE',
11
12
  'SSL_KEY_FILE',
12
13
  ];
13
- exports.version = async function () {
14
+ const version = async function () {
14
15
  if (['-v', '--version', 'version'].includes(process.argv[2])) {
15
16
  for (const env of allowlist) {
16
17
  if (process.env[env]) {
@@ -20,3 +21,4 @@ exports.version = async function () {
20
21
  }
21
22
  }
22
23
  };
24
+ exports.version = version;
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const analytics: Hook<'prerun'>;
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.analytics = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const analytics_1 = tslib_1.__importDefault(require("../../analytics"));
5
- exports.analytics = async function (options) {
6
+ const analytics = async function (options) {
6
7
  const analytics = new analytics_1.default(this.config);
7
8
  await analytics.record(options);
8
9
  };
10
+ exports.analytics = analytics;
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const brewHook: Hook<'update'>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brewHook = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const child_process_1 = require("child_process");
5
6
  const path = tslib_1.__importStar(require("path"));
@@ -7,9 +8,9 @@ const fs = tslib_1.__importStar(require("../../file"));
7
8
  const debug = require('debug')('heroku:brewhook');
8
9
  function brew(args, opts = {}) {
9
10
  debug('brew %o', args);
10
- return child_process_1.spawnSync('brew', args, Object.assign(Object.assign({ stdio: 'inherit' }, opts), { encoding: 'utf8' }));
11
+ return (0, child_process_1.spawnSync)('brew', args, Object.assign(Object.assign({ stdio: 'inherit' }, opts), { encoding: 'utf8' }));
11
12
  }
12
- exports.brewHook = async function () {
13
+ const brewHook = async function () {
13
14
  if (this.config.platform !== 'darwin')
14
15
  return;
15
16
  const brewRoot = path.join(process.env.HOMEBREW_PREFIX || '/usr/local');
@@ -44,3 +45,4 @@ exports.brewHook = async function () {
44
45
  brew(['uninstall', 'heroku']);
45
46
  brew(['install', 'heroku/brew/heroku']);
46
47
  };
48
+ exports.brewHook = brewHook;
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const brewHook: Hook<'update'>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brewHook = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const child_process_1 = require("child_process");
5
6
  const path = tslib_1.__importStar(require("path"));
@@ -7,9 +8,9 @@ const fs = tslib_1.__importStar(require("../../file"));
7
8
  const debug = require('debug')('heroku:brewhook');
8
9
  function brew(args, opts = {}) {
9
10
  debug('brew %o', args);
10
- return child_process_1.spawnSync('brew', args, Object.assign(Object.assign({ stdio: 'inherit' }, opts), { encoding: 'utf8' }));
11
+ return (0, child_process_1.spawnSync)('brew', args, Object.assign(Object.assign({ stdio: 'inherit' }, opts), { encoding: 'utf8' }));
11
12
  }
12
- exports.brewHook = async function () {
13
+ const brewHook = async function () {
13
14
  if (this.config.platform !== 'darwin')
14
15
  return;
15
16
  const brewRoot = path.join(process.env.HOMEBREW_PREFIX || '/usr/local');
@@ -44,3 +45,4 @@ exports.brewHook = async function () {
44
45
  brew(['uninstall', 'heroku']);
45
46
  brew(['install', 'heroku/brew/heroku']);
46
47
  };
48
+ exports.brewHook = brewHook;
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const brewHook: Hook<'update'>;
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.brewHook = async function () {
3
+ exports.brewHook = void 0;
4
+ const brewHook = async function () {
4
5
  // autocomplete is now in core, skip windows
5
6
  if (this.config.windows)
6
7
  return;
7
8
  await this.config.runHook('recache', { type: 'update' });
8
9
  };
10
+ exports.brewHook = brewHook;
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const migrate: Hook<'init'>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrate = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const fs = tslib_1.__importStar(require("fs-extra"));
5
6
  const path = tslib_1.__importStar(require("path"));
@@ -7,7 +8,7 @@ const exec = (cmd, args) => {
7
8
  const execa = require('execa');
8
9
  return execa(cmd, args, { stdio: 'inherit' });
9
10
  };
10
- exports.migrate = async function () {
11
+ const migrate = async function () {
11
12
  if (process.argv[2] && process.argv[2].startsWith('plugins'))
12
13
  return;
13
14
  const pluginsDir = path.join(this.config.dataDir, 'plugins');
@@ -58,3 +59,4 @@ exports.migrate = async function () {
58
59
  await removeYarnLockFile();
59
60
  await migrateV6Plugins();
60
61
  };
62
+ exports.migrate = migrate;
@@ -1,2 +1,2 @@
1
- import { Hook } from '@oclif/config';
1
+ import { Hook } from '@oclif/core';
2
2
  export declare const tidy: Hook<'update'>;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tidy = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const path = tslib_1.__importStar(require("path"));
5
6
  const deps_1 = tslib_1.__importDefault(require("../../deps"));
6
- exports.tidy = async function () {
7
+ const tidy = async function () {
7
8
  const cleanupPlugins = async () => {
8
9
  const pluginsDir = path.join(this.config.dataDir, 'plugins');
9
10
  if (await deps_1.default.file.exists(path.join(pluginsDir, 'plugins.json')))
@@ -17,7 +18,7 @@ exports.tidy = async function () {
17
18
  throw error;
18
19
  return;
19
20
  }
20
- if (!pjson.dependencies || pjson.dependencies === {}) {
21
+ if (!pjson.dependencies || Object.keys(pjson.dependencies).length === 0) {
21
22
  await deps_1.default.file.remove(path.join(pluginsDir));
22
23
  }
23
24
  };
@@ -29,3 +30,4 @@ exports.tidy = async function () {
29
30
  await cleanupPlugins();
30
31
  }
31
32
  };
33
+ exports.tidy = tidy;
package/lib/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { run } from '@oclif/command';
1
+ export { run } from '@oclif/core';
package/lib/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var command_1 = require("@oclif/command");
4
- exports.run = command_1.run;
3
+ exports.run = void 0;
4
+ var core_1 = require("@oclif/core");
5
+ Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
@@ -1,4 +1,4 @@
1
- import * as Config from '@oclif/config';
1
+ import { Interfaces } from '@oclif/core';
2
2
  export interface ConfigJSON {
3
3
  schema: 1;
4
4
  install?: string;
@@ -11,7 +11,7 @@ export default class UserConfig {
11
11
  private mtime?;
12
12
  private saving?;
13
13
  private _init;
14
- constructor(config: Config.IConfig);
14
+ constructor(config: Interfaces.Config);
15
15
  get install(): string;
16
16
  set install(install: string);
17
17
  get skipAnalytics(): boolean;
@@ -1 +1,4 @@
1
- {"version":"7.67.2","commands":{}}
1
+ {
2
+ "version": "8.0.0",
3
+ "commands": {}
4
+ }
package/package.json CHANGED
@@ -1,52 +1,45 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "7.67.2",
4
+ "version": "8.0.0",
5
5
  "author": "Jeff Dickey @jdxcode",
6
- "bin": {
7
- "heroku": "./bin/run"
8
- },
6
+ "bin": "./bin/run",
9
7
  "bugs": "https://github.com/heroku/cli/issues",
10
8
  "dependencies": {
11
9
  "@heroku-cli/color": "1.1.14",
12
- "@heroku-cli/command": "^8.4.1",
13
- "@heroku-cli/plugin-addons-v5": "^7.67.0",
14
- "@heroku-cli/plugin-apps": "^7.66.3",
15
- "@heroku-cli/plugin-apps-v5": "^7.67.0",
16
- "@heroku-cli/plugin-auth": "^7.66.3",
17
- "@heroku-cli/plugin-autocomplete": "^7.66.3",
18
- "@heroku-cli/plugin-buildpacks": "^7.66.3",
19
- "@heroku-cli/plugin-certs": "^7.66.3",
20
- "@heroku-cli/plugin-certs-v5": "^7.66.3",
21
- "@heroku-cli/plugin-ci": "^7.66.3",
22
- "@heroku-cli/plugin-ci-v5": "^7.66.3",
23
- "@heroku-cli/plugin-config": "^7.66.3",
24
- "@heroku-cli/plugin-container-registry-v5": "^7.66.3",
25
- "@heroku-cli/plugin-git": "^7.66.3",
26
- "@heroku-cli/plugin-local": "^7.66.3",
27
- "@heroku-cli/plugin-oauth-v5": "^7.66.3",
28
- "@heroku-cli/plugin-orgs-v5": "^7.66.3",
29
- "@heroku-cli/plugin-pg-v5": "^7.66.3",
30
- "@heroku-cli/plugin-pipelines": "^7.66.3",
31
- "@heroku-cli/plugin-ps": "^7.66.3",
10
+ "@heroku-cli/command": "^9.0.1",
11
+ "@heroku-cli/plugin-addons-v5": "^8.0.0",
12
+ "@heroku-cli/plugin-apps": "^8.0.0",
13
+ "@heroku-cli/plugin-apps-v5": "^8.0.0",
14
+ "@heroku-cli/plugin-auth": "^8.0.0",
15
+ "@heroku-cli/plugin-autocomplete": "^8.0.0",
16
+ "@heroku-cli/plugin-buildpacks": "^8.0.0",
17
+ "@heroku-cli/plugin-certs": "^8.0.0",
18
+ "@heroku-cli/plugin-certs-v5": "^8.0.0",
19
+ "@heroku-cli/plugin-ci": "^8.0.0",
20
+ "@heroku-cli/plugin-ci-v5": "^8.0.0",
21
+ "@heroku-cli/plugin-config": "^8.0.0",
22
+ "@heroku-cli/plugin-container-registry-v5": "^8.0.0",
23
+ "@heroku-cli/plugin-git": "^8.0.0",
24
+ "@heroku-cli/plugin-local": "^8.0.0",
25
+ "@heroku-cli/plugin-oauth-v5": "^8.0.0",
26
+ "@heroku-cli/plugin-orgs-v5": "^8.0.0",
27
+ "@heroku-cli/plugin-pg-v5": "^8.0.0",
28
+ "@heroku-cli/plugin-pipelines": "^8.0.0",
29
+ "@heroku-cli/plugin-ps": "^8.0.0",
32
30
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
33
- "@heroku-cli/plugin-redis-v5": "^7.67.2",
34
- "@heroku-cli/plugin-run": "^7.67.1",
35
- "@heroku-cli/plugin-spaces": "^7.66.3",
36
- "@heroku-cli/plugin-status": "^7.66.3",
37
- "@heroku-cli/plugin-webhooks": "^7.66.3",
38
- "@oclif/command": "1.8.16",
39
- "@oclif/config": "1.13.2",
40
- "@oclif/errors": "1.2.2",
41
- "@oclif/plugin-commands": "^1.2.2",
42
- "@oclif/plugin-help": "2.2.0",
43
- "@oclif/plugin-legacy": "1.2.0",
44
- "@oclif/plugin-not-found": "1.2.2",
45
- "@oclif/plugin-plugins": "1.10.1",
46
- "@oclif/plugin-update": "1.5.0",
47
- "@oclif/plugin-warn-if-update-available": "1.7.0",
48
- "@oclif/plugin-which": "1.0.3",
49
- "cli-ux": "4.9.3",
31
+ "@heroku-cli/plugin-redis-v5": "^8.0.0",
32
+ "@heroku-cli/plugin-run": "^8.0.0",
33
+ "@heroku-cli/plugin-spaces": "^8.0.0",
34
+ "@heroku-cli/plugin-status": "^8.0.0",
35
+ "@heroku-cli/plugin-webhooks": "^8.0.0",
36
+ "@oclif/core": "^1.22.0",
37
+ "@oclif/plugin-commands": "2.2.2",
38
+ "@oclif/plugin-not-found": "2.3.16",
39
+ "@oclif/plugin-plugins": "2.1.12",
40
+ "@oclif/plugin-update": "3.0.13",
41
+ "@oclif/plugin-warn-if-update-available": "2.0.20",
42
+ "@oclif/plugin-which": "2.2.8",
50
43
  "debug": "4.1.1",
51
44
  "execa": "1.0.0",
52
45
  "fs-extra": "7.0.1",
@@ -57,8 +50,7 @@
57
50
  "uuid": "3.3.2"
58
51
  },
59
52
  "devDependencies": {
60
- "@heroku-cli/dev-cli": "^1.26.13",
61
- "@oclif/test": "^1.2.4",
53
+ "@oclif/test": "^2.2.20",
62
54
  "@types/ansi-styles": "^3.2.1",
63
55
  "@types/chai": "^4.1.7",
64
56
  "@types/debug": "^4.1.2",
@@ -80,14 +72,15 @@
80
72
  "lodash": "^4.17.11",
81
73
  "mocha": "^5.2.0",
82
74
  "nock": "^10.0.6",
75
+ "oclif": "3.6.1",
83
76
  "qqjs": "0.3.10",
84
77
  "read-pkg": "^4.0.1",
85
78
  "sinon": "^7.2.4",
86
79
  "ts-node": "^10.9.1",
87
- "typescript": "3.7.5"
80
+ "typescript": "4.8.4"
88
81
  },
89
82
  "engines": {
90
- "node": ">=10.0.0"
83
+ "node": ">=12.0.0"
91
84
  },
92
85
  "files": [
93
86
  "/oclif.manifest.json",
@@ -104,9 +97,14 @@
104
97
  "license": "ISC",
105
98
  "main": "lib/index.js",
106
99
  "oclif": {
100
+ "additionalHelpFlags": [
101
+ "-h"
102
+ ],
103
+ "additionalVersionFlags": [
104
+ "-v"
105
+ ],
107
106
  "commands": "./lib/commands",
108
107
  "plugins": [
109
- "@oclif/plugin-legacy",
110
108
  "@heroku-cli/plugin-addons-v5",
111
109
  "@heroku-cli/plugin-apps",
112
110
  "@heroku-cli/plugin-apps-v5",
@@ -277,12 +275,11 @@
277
275
  "lint": "eslint . --ext .ts --config .eslintrc",
278
276
  "build": "rm -rf lib && tsc",
279
277
  "postpublish": "rm -f oclif.manifest.json",
280
- "prepack": "yarn run build && oclif-dev manifest",
278
+ "prepack": "yarn run build && oclif manifest",
281
279
  "pretest": "tsc -p test --noEmit",
282
280
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
283
- "posttest": "yarn lint",
284
- "version": "oclif-dev readme --multi && git add README.md ../../docs"
281
+ "posttest": "yarn lint"
285
282
  },
286
283
  "types": "lib/index.d.ts",
287
- "gitHead": "05b857a3ecc1e35936dad4e9d8f580c0d7413307"
284
+ "gitHead": "c8737ca88c38731acc3e758b6d6a94eb4edf014b"
288
285
  }