heroku 11.13.0-beta.1 → 11.14.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 +26 -1
- package/dist/commands/access/add.js +9 -14
- package/dist/commands/buildpacks/info.js +7 -5
- package/dist/commands/buildpacks/search.js +5 -3
- package/dist/commands/buildpacks/versions.js +4 -5
- package/dist/lib/buildpacks/buildpacks.d.ts +1 -0
- package/dist/lib/buildpacks/buildpacks.js +32 -24
- package/oclif.manifest.json +1876 -1876
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,28 @@ 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.14.0-beta.0](https://github.com/heroku/cli/compare/v11.13.0...v11.14.0-beta.0) (2026-11-17)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* warn in buildpacks:info when a buildpack is archived ([#4062](https://github.com/heroku/cli/issues/4062)) ([937dad6](https://github.com/heroku/cli/commit/937dad6e39de552df7a2f4109fff472cf3d65701)), references [#4056](https://github.com/heroku/cli/issues/4056)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **access:** honor optional permissions for team app collaborators ([#4066](https://github.com/heroku/cli/issues/4066)) ([620f4a1](https://github.com/heroku/cli/commit/620f4a1d01dc1272300d5604148cb693a42f76b8))
|
|
16
|
+
* **buildpacks:** bump @heroku/buildpack-registry to 1.1.1 and fix slug validation ([#4056](https://github.com/heroku/cli/issues/4056)) ([ed54ee8](https://github.com/heroku/cli/commit/ed54ee8e6013c7b155bab5b3a6d5850c23460799))
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* remove unused [@types](https://github.com/types) packages and ignore oclif plugin majors ([#4072](https://github.com/heroku/cli/issues/4072)) ([40d910e](https://github.com/heroku/cli/commit/40d910e837255f6f7882774116c33937029fe753))
|
|
21
|
+
|
|
22
|
+
### Tests
|
|
23
|
+
|
|
24
|
+
* **apps:** parse a real heroku.yml in apps:create --manifest tests ([#4078](https://github.com/heroku/cli/issues/4078)) ([02c5acb](https://github.com/heroku/cli/commit/02c5acb3613a40da1e63a403dd55508e1ddbf6ab))
|
|
25
|
+
* **config:** hold editor termination timeouts open in interruption tests ([#4069](https://github.com/heroku/cli/issues/4069)) ([04f8d1c](https://github.com/heroku/cli/commit/04f8d1cf71600cc87db872e27c0f88751c9ed020))
|
|
26
|
+
* keep pinned terminal size when the window is resized ([#4070](https://github.com/heroku/cli/issues/4070)) ([15471e7](https://github.com/heroku/cli/commit/15471e7cc36dff9eaa8798883ccfa871769f34cb))
|
|
27
|
+
|
|
28
|
+
## [11.13.0](https://github.com/heroku/cli/compare/v11.12.1...v11.13.0) (2026-11-10)
|
|
8
29
|
|
|
9
30
|
### Features
|
|
10
31
|
|
|
@@ -16,6 +37,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
16
37
|
* **ps:** avoid shell when adding exec buildpack ([#4039](https://github.com/heroku/cli/issues/4039)) ([e30613f](https://github.com/heroku/cli/commit/e30613fd12b2de993fdf42d4b052ac29e80a8877))
|
|
17
38
|
* **security:** eliminate shell injection in database and SSH commands ([#4038](https://github.com/heroku/cli/issues/4038)) ([5ba1e69](https://github.com/heroku/cli/commit/5ba1e69cdc2c7977ab349594cd315bb175cc6484)), references [#4040](https://github.com/heroku/cli/issues/4040)
|
|
18
39
|
|
|
40
|
+
### Miscellaneous Chores
|
|
41
|
+
|
|
42
|
+
* pin deb packaging jobs to ubuntu-24.04 ([#4057](https://github.com/heroku/cli/issues/4057)) ([79d6376](https://github.com/heroku/cli/commit/79d6376df1e7837e97e16f1ef60708de6d77b923))
|
|
43
|
+
|
|
19
44
|
## [11.12.1](https://github.com/heroku/cli/compare/v11.12.0...v11.12.1) (2026-10-22)
|
|
20
45
|
|
|
21
46
|
### Bug Fixes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command, flags } from '@heroku-cli/command';
|
|
2
2
|
import * as color from '@heroku/heroku-cli-util/color';
|
|
3
3
|
import { Args, ux } from '@oclif/core';
|
|
4
|
-
import { getOwner } from '../../lib/team-utils.js';
|
|
5
4
|
export default class AccessAdd extends Command {
|
|
6
5
|
static args = {
|
|
7
6
|
email: Args.string({ description: 'email address of the team member', required: true }),
|
|
@@ -22,22 +21,18 @@ export default class AccessAdd extends Command {
|
|
|
22
21
|
const { app: appName, permissions } = flags;
|
|
23
22
|
const { body: appInfo } = await this.heroku.get(`/apps/${appName}`);
|
|
24
23
|
let output = `Adding ${color.user(email)} access to the app ${color.app(appName)}`;
|
|
25
|
-
let teamFeatures = [];
|
|
26
24
|
if (appInfo?.team) {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
permissionsArray.push('view');
|
|
36
|
-
const permissionsArraySorted = [...new Set(permissionsArray.sort())];
|
|
37
|
-
output += ` with ${color.green(permissionsArraySorted.join(', '))} permissions`;
|
|
25
|
+
const body = { user: email };
|
|
26
|
+
if (permissions) {
|
|
27
|
+
const permissionsArray = permissions.split(',').map((permission) => permission.trim()).filter(Boolean);
|
|
28
|
+
permissionsArray.push('view');
|
|
29
|
+
const normalizedPermissions = [...new Set(permissionsArray)].sort();
|
|
30
|
+
body.permissions = normalizedPermissions;
|
|
31
|
+
output += ` with ${color.green(normalizedPermissions.join(', '))} permissions`;
|
|
32
|
+
}
|
|
38
33
|
ux.action.start(output);
|
|
39
34
|
await this.heroku.post(`/teams/apps/${appName}/collaborators`, {
|
|
40
|
-
body
|
|
35
|
+
body,
|
|
41
36
|
});
|
|
42
37
|
ux.action.stop();
|
|
43
38
|
}
|
|
@@ -2,7 +2,6 @@ import { Command, flags as Flags } from '@heroku-cli/command';
|
|
|
2
2
|
import { BuildpackRegistry } from '@heroku/buildpack-registry';
|
|
3
3
|
import { hux } from '@heroku/heroku-cli-util';
|
|
4
4
|
import { Args, ux } from '@oclif/core';
|
|
5
|
-
import { Result } from 'true-myth';
|
|
6
5
|
export default class Info extends Command {
|
|
7
6
|
static args = {
|
|
8
7
|
buildpack: Args.string({
|
|
@@ -18,11 +17,11 @@ export default class Info extends Command {
|
|
|
18
17
|
const { args, flags } = await this.parse(Info);
|
|
19
18
|
const registry = new BuildpackRegistry();
|
|
20
19
|
const validationResult = BuildpackRegistry.isValidBuildpackSlug(args.buildpack);
|
|
21
|
-
if (
|
|
22
|
-
this.error(`Could not
|
|
20
|
+
if (validationResult.isErr) {
|
|
21
|
+
this.error(`Could not find the buildpack '${args.buildpack}'.\n${validationResult.error}`);
|
|
23
22
|
}
|
|
24
23
|
const result = await registry.info(args.buildpack);
|
|
25
|
-
|
|
24
|
+
result.match({
|
|
26
25
|
Err(err) {
|
|
27
26
|
if (err.status === 404) {
|
|
28
27
|
ux.error(`Could not find the buildpack '${args.buildpack}'`);
|
|
@@ -36,10 +35,13 @@ export default class Info extends Command {
|
|
|
36
35
|
hux.styledJSON(buildpack);
|
|
37
36
|
}
|
|
38
37
|
else {
|
|
38
|
+
if (buildpack.archived) {
|
|
39
|
+
ux.warn('This buildpack has been archived by its owner and is no longer maintained.');
|
|
40
|
+
}
|
|
39
41
|
hux.styledHeader(args.buildpack);
|
|
40
42
|
hux.styledObject(buildpack, ['description', 'category', 'license', 'support', 'source', 'readme']);
|
|
41
43
|
}
|
|
42
44
|
},
|
|
43
|
-
}
|
|
45
|
+
});
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -20,9 +20,11 @@ export default class Search extends Command {
|
|
|
20
20
|
const registry = new BuildpackRegistry();
|
|
21
21
|
if (args.term) {
|
|
22
22
|
const uniqueBuildpacks = new Map();
|
|
23
|
-
const array =
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const array = [
|
|
24
|
+
...(await registry.search(args.term)).unwrapOr([]),
|
|
25
|
+
...(await registry.search(undefined, args.term)).unwrapOr([]),
|
|
26
|
+
...(await registry.search(undefined, undefined, args.term)).unwrapOr([]),
|
|
27
|
+
];
|
|
26
28
|
array
|
|
27
29
|
.forEach((element) => {
|
|
28
30
|
uniqueBuildpacks.set(`${element.namespace}/${element.name}`, element);
|
|
@@ -3,7 +3,6 @@ import { BuildpackRegistry } from '@heroku/buildpack-registry';
|
|
|
3
3
|
import { hux } from '@heroku/heroku-cli-util';
|
|
4
4
|
import { Args } from '@oclif/core';
|
|
5
5
|
import { ux } from '@oclif/core/ux';
|
|
6
|
-
import { Result } from 'true-myth';
|
|
7
6
|
export default class Versions extends Command {
|
|
8
7
|
static args = {
|
|
9
8
|
buildpack: Args.string({
|
|
@@ -20,11 +19,11 @@ export default class Versions extends Command {
|
|
|
20
19
|
}
|
|
21
20
|
const registry = new BuildpackRegistry();
|
|
22
21
|
const validationResult = BuildpackRegistry.isValidBuildpackSlug(args.buildpack);
|
|
23
|
-
if (
|
|
24
|
-
ux.error(`Could not find
|
|
22
|
+
if (validationResult.isErr) {
|
|
23
|
+
ux.error(`Could not find '${args.buildpack}'.\n${validationResult.error}`);
|
|
25
24
|
}
|
|
26
25
|
const result = await registry.listVersions(args.buildpack);
|
|
27
|
-
|
|
26
|
+
result.match({
|
|
28
27
|
Err(err) {
|
|
29
28
|
if (err.status === 404) {
|
|
30
29
|
ux.error(`Could not find '${args.buildpack}'`);
|
|
@@ -48,6 +47,6 @@ export default class Versions extends Command {
|
|
|
48
47
|
});
|
|
49
48
|
/* eslint-enable perfectionist/sort-objects */
|
|
50
49
|
},
|
|
51
|
-
}
|
|
50
|
+
});
|
|
52
51
|
}
|
|
53
52
|
}
|
|
@@ -27,4 +27,5 @@ export declare class BuildpackCommand {
|
|
|
27
27
|
validateIndex(index: number): void;
|
|
28
28
|
validateIndexInRange(buildpacks: BuildpackResponse[], index: number): void;
|
|
29
29
|
validateUrlNotSet(buildpacks: BuildpackResponse[], buildpack: string): Promise<void>;
|
|
30
|
+
private lookupRegistryUrl;
|
|
30
31
|
}
|
|
@@ -91,7 +91,7 @@ export class BuildpackCommand {
|
|
|
91
91
|
return -1;
|
|
92
92
|
}
|
|
93
93
|
async findUrl(buildpacks, buildpack) {
|
|
94
|
-
const mappedUrl = await this.
|
|
94
|
+
const mappedUrl = await this.lookupRegistryUrl(buildpack);
|
|
95
95
|
return _.findIndex(buildpacks, (b) => b.buildpack.url === buildpack || b.buildpack.url === mappedUrl);
|
|
96
96
|
}
|
|
97
97
|
mapBuildpackResponse(buildpacks) {
|
|
@@ -117,30 +117,11 @@ export class BuildpackCommand {
|
|
|
117
117
|
return this.mapBuildpackResponse(buildpacks);
|
|
118
118
|
}
|
|
119
119
|
async registryNameToUrl(buildpack) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const validationResult = BuildpackRegistry.isValidBuildpackSlug(buildpack);
|
|
124
|
-
if (!validationResult.isOk) {
|
|
125
|
-
ux.error(`Could not find the buildpack: ${buildpack}. ${validationResult.error}`, { exit: 1 });
|
|
126
|
-
}
|
|
127
|
-
try {
|
|
128
|
-
const response = await this.registry.buildpackExists(buildpack);
|
|
129
|
-
const body = await response.json();
|
|
130
|
-
return body.blob_url;
|
|
131
|
-
}
|
|
132
|
-
catch (error) {
|
|
133
|
-
if (error.statusCode === 404) {
|
|
134
|
-
ux.error(`${buildpack} is not in the buildpack registry.`, { exit: 1 });
|
|
135
|
-
}
|
|
136
|
-
else if (error.statusCode) {
|
|
137
|
-
ux.error(`${error.statusCode}: ${error.message}`, { exit: 1 });
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
ux.error(error.message, { exit: 1 });
|
|
141
|
-
}
|
|
120
|
+
const url = await this.lookupRegistryUrl(buildpack);
|
|
121
|
+
if (url === undefined) {
|
|
122
|
+
ux.error(`${buildpack} is not in the buildpack registry.`, { exit: 1 });
|
|
142
123
|
}
|
|
143
|
-
return
|
|
124
|
+
return url;
|
|
144
125
|
}
|
|
145
126
|
registryUrlToName(buildpack, registryOnly = false) {
|
|
146
127
|
// eslint-disable-next-line no-useless-escape
|
|
@@ -177,6 +158,33 @@ export class BuildpackCommand {
|
|
|
177
158
|
ux.error(`The buildpack ${buildpack} is already set on your app.`, { exit: 1 });
|
|
178
159
|
}
|
|
179
160
|
}
|
|
161
|
+
// Resolves a URL or registry name to the URL to install. Returns undefined
|
|
162
|
+
// when the name is well-formed but not in the registry, so callers that only
|
|
163
|
+
// match against installed buildpacks (remove) can fall back to the raw name.
|
|
164
|
+
async lookupRegistryUrl(buildpack) {
|
|
165
|
+
if (isValidURL(buildpack)) {
|
|
166
|
+
return buildpack;
|
|
167
|
+
}
|
|
168
|
+
const validationResult = BuildpackRegistry.isValidBuildpackSlug(buildpack);
|
|
169
|
+
if (validationResult.isErr) {
|
|
170
|
+
ux.error(`Could not find the buildpack '${buildpack}'.\n${validationResult.error}`, { exit: 1 });
|
|
171
|
+
}
|
|
172
|
+
let response;
|
|
173
|
+
try {
|
|
174
|
+
response = await this.registry.buildpackExists(buildpack);
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
ux.error(error instanceof Error ? error.message : String(error), { exit: 1 });
|
|
178
|
+
}
|
|
179
|
+
if (response.status === 404) {
|
|
180
|
+
return undefined;
|
|
181
|
+
}
|
|
182
|
+
if (!response.ok) {
|
|
183
|
+
ux.error(`${response.status}: ${response.statusText}`, { exit: 1 });
|
|
184
|
+
}
|
|
185
|
+
const body = await response.json();
|
|
186
|
+
return body.blob_url;
|
|
187
|
+
}
|
|
180
188
|
}
|
|
181
189
|
// Simple URL validation function that returns boolean
|
|
182
190
|
function isValidURL(url) {
|