heroku 11.11.0 → 11.12.0-beta.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/CHANGELOG.md +19 -0
- package/dist/commands/authorizations/create.d.ts +1 -0
- package/dist/commands/authorizations/create.js +7 -1
- package/dist/commands/authorizations/index.d.ts +1 -0
- package/dist/commands/authorizations/index.js +6 -1
- package/dist/commands/labs/disable.d.ts +0 -1
- package/dist/commands/labs/disable.js +1 -19
- package/dist/commands/pg/pull.js +8 -4
- package/dist/commands/pg/push.js +8 -4
- package/dist/commands/pg/upgrade/wait.d.ts +1 -0
- package/dist/commands/pg/upgrade/wait.js +2 -1
- package/dist/commands/pg/wait.d.ts +1 -0
- package/dist/commands/pg/wait.js +2 -1
- package/oclif.manifest.json +1226 -1217
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [11.12.0-beta.0](https://github.com/heroku/cli/compare/v11.11.0...v11.12.0-beta.0) (2026-10-13)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add --team to authorizations list and authorizations:create ([#3928](https://github.com/heroku/cli/issues/3928)) ([9aa59d0](https://github.com/heroku/cli/commit/9aa59d08c2d73e4da9c956d8fe9746abe3533b54))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* ensures dbname is always the last arg provided to pg_dump ([#3979](https://github.com/heroku/cli/issues/3979)) ([70e5f2e](https://github.com/heroku/cli/commit/70e5f2e6a0c3a5a867103198ec9ba600a4110978))
|
|
16
|
+
* remove Heroku CLI bin dir from PATH on Windows uninstall ([#3967](https://github.com/heroku/cli/issues/3967)) ([2e85df0](https://github.com/heroku/cli/commit/2e85df0c278f4e967db20a4ecc52c09b243a6ab6)), closes [#1883](https://github.com/heroku/cli/issues/1883)
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* remove spaces-strict-tls from labs:disable ([#3977](https://github.com/heroku/cli/issues/3977)) ([f596ba7](https://github.com/heroku/cli/commit/f596ba78551f3d26f7d800d2658ddd21d4521723))
|
|
21
|
+
|
|
22
|
+
### Tests
|
|
23
|
+
|
|
24
|
+
* stop unit tests from sending desktop notifications ([#3982](https://github.com/heroku/cli/issues/3982)) ([92c3220](https://github.com/heroku/cli/commit/92c322008a573cf5995298bd6d54cbeedb6551c4))
|
|
25
|
+
|
|
7
26
|
## [11.11.0](https://github.com/heroku/cli/compare/v11.10.1...v11.11.0) (2026-10-01)
|
|
8
27
|
|
|
9
28
|
### Features
|
|
@@ -8,6 +8,7 @@ export default class AuthorizationsCreate extends Command {
|
|
|
8
8
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
scope: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
short: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
team: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
};
|
|
12
13
|
run(): Promise<void>;
|
|
13
14
|
}
|
|
@@ -3,6 +3,7 @@ import { ScopeCompletion } from '@heroku-cli/command/lib/completions.js';
|
|
|
3
3
|
import { hux } from '@heroku/heroku-cli-util';
|
|
4
4
|
import * as color from '@heroku/heroku-cli-util/color';
|
|
5
5
|
import { ux } from '@oclif/core/ux';
|
|
6
|
+
import { SDK_HEADER } from '../../lib/api.js';
|
|
6
7
|
import { display } from '../../lib/authorizations/authorizations.js';
|
|
7
8
|
export default class AuthorizationsCreate extends Command {
|
|
8
9
|
static description = 'create a new OAuth authorization';
|
|
@@ -15,16 +16,21 @@ export default class AuthorizationsCreate extends Command {
|
|
|
15
16
|
json: flags.boolean({ char: 'j', description: 'output in json format' }),
|
|
16
17
|
scope: flags.string({ char: 's', completion: ScopeCompletion, description: 'set custom OAuth scopes' }),
|
|
17
18
|
short: flags.boolean({ char: 'S', description: 'only output token' }),
|
|
19
|
+
team: flags.team({ description: 'team to create OAuth authorization on' }),
|
|
18
20
|
};
|
|
19
21
|
async run() {
|
|
20
22
|
const { flags } = await this.parse(AuthorizationsCreate);
|
|
21
23
|
ux.action.start('Creating OAuth Authorization');
|
|
22
|
-
const
|
|
24
|
+
const endpoint = flags.team
|
|
25
|
+
? `/teams/${encodeURIComponent(flags.team)}/oauth/authorizations`
|
|
26
|
+
: '/oauth/authorizations';
|
|
27
|
+
const { body: auth } = await this.heroku.post(endpoint, {
|
|
23
28
|
body: {
|
|
24
29
|
description: flags.description,
|
|
25
30
|
expires_in: flags['expires-in'],
|
|
26
31
|
scope: flags.scope ? flags.scope.split(',') : undefined,
|
|
27
32
|
},
|
|
33
|
+
...(flags.team ? { headers: { Accept: SDK_HEADER } } : {}),
|
|
28
34
|
});
|
|
29
35
|
ux.action.stop();
|
|
30
36
|
if (flags.short) {
|
|
@@ -4,6 +4,7 @@ export default class AuthorizationsIndex extends Command {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
team: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
8
|
};
|
|
8
9
|
run(): Promise<void>;
|
|
9
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command, flags } from '@heroku-cli/command';
|
|
2
2
|
import { color, hux } from '@heroku/heroku-cli-util';
|
|
3
3
|
import { ux } from '@oclif/core/ux';
|
|
4
|
+
import { SDK_HEADER } from '../../lib/api.js';
|
|
4
5
|
export default class AuthorizationsIndex extends Command {
|
|
5
6
|
static description = 'list OAuth authorizations';
|
|
6
7
|
static examples = [
|
|
@@ -8,10 +9,14 @@ export default class AuthorizationsIndex extends Command {
|
|
|
8
9
|
];
|
|
9
10
|
static flags = {
|
|
10
11
|
json: flags.boolean({ char: 'j', description: 'output in json format' }),
|
|
12
|
+
team: flags.team({ description: 'team to list OAuth authorizations for' }),
|
|
11
13
|
};
|
|
12
14
|
async run() {
|
|
13
15
|
const { flags } = await this.parse(AuthorizationsIndex);
|
|
14
|
-
const
|
|
16
|
+
const endpoint = flags.team
|
|
17
|
+
? `/teams/${encodeURIComponent(flags.team)}/oauth/authorizations`
|
|
18
|
+
: '/oauth/authorizations';
|
|
19
|
+
const { body: authorizations } = await this.heroku.get(endpoint, flags.team ? { headers: { Accept: SDK_HEADER } } : {});
|
|
15
20
|
if (flags.json) {
|
|
16
21
|
hux.styledJSON(authorizations.sort((a, b) => a.description.localeCompare(b.description)));
|
|
17
22
|
}
|
|
@@ -6,7 +6,6 @@ export default class LabsDisable extends Command {
|
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
8
|
app: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
confirm: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
9
|
remote: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
10
|
};
|
|
12
11
|
disableFeature(feature: string, app?: string): Promise<any>;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { Command, flags } from '@heroku-cli/command';
|
|
2
|
-
import { color
|
|
2
|
+
import { color } from '@heroku/heroku-cli-util';
|
|
3
3
|
import { Args, ux } from '@oclif/core';
|
|
4
|
-
const SecurityExceptionFeatures = {
|
|
5
|
-
'spaces-strict-tls': {
|
|
6
|
-
async prompt(app) {
|
|
7
|
-
ux.warn('Insecure Action');
|
|
8
|
-
const name = await hux.prompt(`You are enabling an older security protocol, TLS 1.0, which some organizations may not deem secure.
|
|
9
|
-
To proceed, type ${app} or re-run this command with --confirm ${app}`);
|
|
10
|
-
return name;
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
4
|
export default class LabsDisable extends Command {
|
|
15
5
|
static args = {
|
|
16
6
|
feature: Args.string({ description: 'unique identifier or name of the account feature', required: true }),
|
|
@@ -18,7 +8,6 @@ export default class LabsDisable extends Command {
|
|
|
18
8
|
static description = 'disables an experimental feature';
|
|
19
9
|
static flags = {
|
|
20
10
|
app: flags.app(),
|
|
21
|
-
confirm: flags.string({ required: false }),
|
|
22
11
|
remote: flags.remote(),
|
|
23
12
|
};
|
|
24
13
|
disableFeature(feature, app) {
|
|
@@ -31,13 +20,6 @@ export default class LabsDisable extends Command {
|
|
|
31
20
|
const { feature } = args;
|
|
32
21
|
let request;
|
|
33
22
|
let target;
|
|
34
|
-
if (SecurityExceptionFeatures[feature] && flags.confirm !== flags.app) {
|
|
35
|
-
const { prompt } = SecurityExceptionFeatures[feature];
|
|
36
|
-
const confirm = await prompt(flags.app);
|
|
37
|
-
if (confirm !== flags.app) {
|
|
38
|
-
this.error('Confirmation name did not match app name. Try again.');
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
23
|
try {
|
|
42
24
|
await this.heroku.get(`/account/features/${feature}`);
|
|
43
25
|
request = this.disableFeature(feature);
|
package/dist/commands/pg/pull.js
CHANGED
|
@@ -43,7 +43,7 @@ export default class Pull extends Command {
|
|
|
43
43
|
const source = await maybeTunnel(sourceIn);
|
|
44
44
|
const target = await maybeTunnel(targetIn);
|
|
45
45
|
const exclude = exclusions.map(e => ('--exclude-table-data=' + e)).join(' ');
|
|
46
|
-
const dumpFlags = ['--verbose', '-F', 'c', '-Z', '0', '-N', '_heroku'
|
|
46
|
+
const dumpFlags = ['--verbose', '-F', 'c', '-Z', '0', '-N', '_heroku'];
|
|
47
47
|
if (exclude !== '')
|
|
48
48
|
dumpFlags.push(exclude);
|
|
49
49
|
const dumpOptions = {
|
|
@@ -56,7 +56,7 @@ export default class Pull extends Command {
|
|
|
56
56
|
};
|
|
57
57
|
if (source.password)
|
|
58
58
|
dumpOptions.env.PGPASSWORD = source.password;
|
|
59
|
-
const restoreFlags = ['--verbose', '-F', 'c', '--no-acl', '--no-owner'
|
|
59
|
+
const restoreFlags = ['--verbose', '-F', 'c', '--no-acl', '--no-owner'];
|
|
60
60
|
const restoreOptions = {
|
|
61
61
|
env: { ...env },
|
|
62
62
|
shell: true,
|
|
@@ -64,8 +64,12 @@ export default class Pull extends Command {
|
|
|
64
64
|
};
|
|
65
65
|
if (target.password)
|
|
66
66
|
restoreOptions.env.PGPASSWORD = target.password;
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
// Ensures the database name is always the last value in the args.
|
|
68
|
+
// This is necessary for the windows pg_dump and pg_restore binaries.
|
|
69
|
+
const dumpArgs = dumpFlags.concat(connArgs(source, true));
|
|
70
|
+
const restoreArgs = restoreFlags.concat(connArgs(target));
|
|
71
|
+
const pgDump = childProcess.spawn('pg_dump', dumpArgs, dumpOptions);
|
|
72
|
+
const pgRestore = childProcess.spawn('pg_restore', restoreArgs, restoreOptions);
|
|
69
73
|
await spawnPipe(pgDump, pgRestore);
|
|
70
74
|
if (source._tunnel)
|
|
71
75
|
source._tunnel.close();
|
package/dist/commands/pg/push.js
CHANGED
|
@@ -39,7 +39,7 @@ export default class Push extends Command {
|
|
|
39
39
|
const source = await maybeTunnel(sourceIn);
|
|
40
40
|
const target = await maybeTunnel(targetIn);
|
|
41
41
|
const exclude = exclusions.map(e => ('--exclude-table-data=' + e)).join(' ');
|
|
42
|
-
const dumpFlags = ['--verbose', '-F', 'c', '-Z', '0', '-N', '_heroku'
|
|
42
|
+
const dumpFlags = ['--verbose', '-F', 'c', '-Z', '0', '-N', '_heroku'];
|
|
43
43
|
if (exclude !== '')
|
|
44
44
|
dumpFlags.push(exclude);
|
|
45
45
|
const dumpOptions = {
|
|
@@ -52,7 +52,7 @@ export default class Push extends Command {
|
|
|
52
52
|
};
|
|
53
53
|
if (source.password)
|
|
54
54
|
dumpOptions.env.PGPASSWORD = source.password;
|
|
55
|
-
const restoreFlags = ['--verbose', '-F', 'c', '--no-acl', '--no-owner'
|
|
55
|
+
const restoreFlags = ['--verbose', '-F', 'c', '--no-acl', '--no-owner'];
|
|
56
56
|
const restoreOptions = {
|
|
57
57
|
env: { ...env },
|
|
58
58
|
shell: true,
|
|
@@ -60,8 +60,12 @@ export default class Push extends Command {
|
|
|
60
60
|
};
|
|
61
61
|
if (target.password)
|
|
62
62
|
restoreOptions.env.PGPASSWORD = target.password;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
// Ensures the database name is always the last value in the args.
|
|
64
|
+
// This is necessary for the windows pg_dump and pg_restore binaries.
|
|
65
|
+
const dumpArgs = dumpFlags.concat(connArgs(source, true));
|
|
66
|
+
const restoreArgs = restoreFlags.concat(connArgs(target));
|
|
67
|
+
const pgDump = childProcess.spawn('pg_dump', dumpArgs, dumpOptions);
|
|
68
|
+
const pgRestore = childProcess.spawn('pg_restore', restoreArgs, restoreOptions);
|
|
65
69
|
await spawnPipe(pgDump, pgRestore);
|
|
66
70
|
if (source._tunnel)
|
|
67
71
|
source._tunnel.close();
|
|
@@ -11,6 +11,7 @@ export default class Wait extends Command {
|
|
|
11
11
|
remote: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
'wait-interval': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
|
+
static notifier: (subtitle: string, message: string, success?: boolean) => void;
|
|
14
15
|
static topic: string;
|
|
15
16
|
run(): Promise<void>;
|
|
16
17
|
}
|
|
@@ -36,6 +36,7 @@ export default class Wait extends Command {
|
|
|
36
36
|
remote: flags.remote(),
|
|
37
37
|
'wait-interval': flags.integer({ description: 'how frequently to poll in seconds (to avoid rate limiting)' }),
|
|
38
38
|
};
|
|
39
|
+
static notifier = notify;
|
|
39
40
|
static topic = 'pg';
|
|
40
41
|
async run() {
|
|
41
42
|
const { args, flags } = await this.parse(Wait);
|
|
@@ -65,7 +66,7 @@ export default class Wait extends Command {
|
|
|
65
66
|
if (status.step)
|
|
66
67
|
message = heredoc(`(${status.step}) ${message}`);
|
|
67
68
|
if (status['error?']) {
|
|
68
|
-
|
|
69
|
+
Wait.notifier('error', `${db.name} ${message}`, false);
|
|
69
70
|
ux.error(message || '', { exit: 1 });
|
|
70
71
|
}
|
|
71
72
|
if (!status['waiting?']) {
|
|
@@ -10,6 +10,7 @@ export default class Wait extends Command {
|
|
|
10
10
|
remote: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
'wait-interval': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
|
+
static notifier: (subtitle: string, message: string, success?: boolean) => void;
|
|
13
14
|
static topic: string;
|
|
14
15
|
run(): Promise<void>;
|
|
15
16
|
}
|
package/dist/commands/pg/wait.js
CHANGED
|
@@ -18,6 +18,7 @@ export default class Wait extends Command {
|
|
|
18
18
|
remote: flags.remote(),
|
|
19
19
|
'wait-interval': flags.string({ description: 'how frequently to poll in seconds (to avoid rate limiting)' }),
|
|
20
20
|
};
|
|
21
|
+
static notifier = notify;
|
|
21
22
|
static topic = 'pg';
|
|
22
23
|
async run() {
|
|
23
24
|
const { args, flags } = await this.parse(Wait);
|
|
@@ -45,7 +46,7 @@ export default class Wait extends Command {
|
|
|
45
46
|
status = { message: notFoundMessage, 'waiting?': true };
|
|
46
47
|
}
|
|
47
48
|
if (status['error?']) {
|
|
48
|
-
|
|
49
|
+
Wait.notifier('error', `${db.name} ${status.message}`, false);
|
|
49
50
|
ux.error(status.message || '', { exit: 1 });
|
|
50
51
|
}
|
|
51
52
|
if (!status['waiting?']) {
|