heroku 11.11.1-alpha.0 → 11.12.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 +11 -2
- 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/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 +1020 -1004
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,16 +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.
|
|
7
|
+
## [11.12.0](https://github.com/heroku/cli/compare/v11.11.0...v11.12.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))
|
|
8
12
|
|
|
9
13
|
### Bug Fixes
|
|
10
14
|
|
|
11
|
-
* ensures dbname is always the last arg provided to pg_dump ([
|
|
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)
|
|
12
17
|
|
|
13
18
|
### Miscellaneous Chores
|
|
14
19
|
|
|
15
20
|
* remove spaces-strict-tls from labs:disable ([#3977](https://github.com/heroku/cli/issues/3977)) ([f596ba7](https://github.com/heroku/cli/commit/f596ba78551f3d26f7d800d2658ddd21d4521723))
|
|
16
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
|
+
|
|
17
26
|
## [11.11.0](https://github.com/heroku/cli/compare/v11.10.1...v11.11.0) (2026-10-01)
|
|
18
27
|
|
|
19
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
|
}
|
|
@@ -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?']) {
|