Skip to content

Commit

Permalink
feat: update versions of http-call, heroku-cli/command, and ps-exec (#…
Browse files Browse the repository at this point in the history
…3161)

* feat: update versions of http-call, heroku-cli/command, and ps-exec

* fix: update imports of http-call to @heroku/http-call

* fix: more updates from http-call to @heroku/http-call

* fix: remove unnecessary http-call import
  • Loading branch information
k80bowman authored Jan 7, 2025
1 parent 8954349 commit 29b9580
Show file tree
Hide file tree
Showing 21 changed files with 87 additions and 49 deletions.
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
"bugs": "https://github.com/heroku/cli/issues",
"dependencies": {
"@heroku-cli/color": "2.0.1",
"@heroku-cli/command": "^11.3.1",
"@heroku-cli/command": "^11.4.0",
"@heroku-cli/notifications": "^1.2.4",
"@heroku-cli/plugin-ps-exec": "2.6.0",
"@heroku-cli/plugin-ps-exec": "2.6.1",
"@heroku-cli/schema": "^1.0.25",
"@heroku/buildpack-registry": "^1.0.1",
"@heroku/eventsource": "^1.0.7",
"@heroku/heroku-cli-util": "^8.0.13",
"@heroku/http-call": "^5.4.0",
"@inquirer/prompts": "^5.0.5",
"@oclif/core": "^2.16.0",
"@oclif/plugin-commands": "2.2.28",
Expand Down Expand Up @@ -49,7 +50,6 @@
"github-url-to-object": "^4.0.4",
"glob": "^10.3.10",
"got": "^11.8.6",
"http-call": "5.3.0",
"inquirer": "^8.2.6",
"lodash": "^4.17.21",
"netrc-parser": "3.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/addons/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {attachmentResolver, resolveAddon} from '../../lib/addons/resolve'
import * as fs from 'node:fs/promises'
import * as os from 'node:os'
import * as path from 'node:path'
import {HTTP, HTTPError} from 'http-call'
import {HTTP, HTTPError} from '@heroku/http-call'
import {AddOnAttachment} from '@heroku-cli/schema'
import * as open from 'open'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/addons/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Args, ux} from '@oclif/core'
import {formatPriceText} from '../../lib/addons/util'
import {addonResolver} from '../../lib/addons/resolve'
import type {AddOn, Plan} from '@heroku-cli/schema'
import {HTTP} from 'http-call'
import {HTTP} from '@heroku/http-call'
import {HerokuAPIError} from '@heroku-cli/command/lib/api-client'
import type {AddOnAttachmentWithConfigVarsAndPlan} from '../../lib/pg/types'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/apps/errors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import {ux} from '@oclif/core'
import {HTTP} from 'http-call'
import {HTTP} from '@heroku/http-call'
import {sum} from 'lodash'
import errorInfo from '../../lib/apps/error_info'
import * as Heroku from '@heroku-cli/schema'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/pg/backups/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {BackupTransfer, PgDatabase} from '../../../lib/pg/types'
import {getAddon} from '../../../lib/pg/fetcher'
import pgHost from '../../../lib/pg/host'
import heredoc from 'tsheredoc'
import {HTTPError} from 'http-call'
import {HTTPError} from '@heroku/http-call'
import {nls} from '../../../nls'

export default class Capture extends Command {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/pg/backups/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Args, ux} from '@oclif/core'
import pgHost from '../../../lib/pg/host'
import {getAttachment} from '../../../lib/pg/fetcher'
import {PgDatabase} from '../../../lib/pg/types'
import {HTTPError} from 'http-call'
import {HTTPError} from '@heroku/http-call'
import {nls} from '../../../nls'

type Timezone = {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/pg/wait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {all, getAddon} from '../../lib/pg/fetcher'
import pgHost from '../../lib/pg/host'
import notify from '../../lib/notify'
import {AddOnAttachmentWithConfigVarsAndPlan, AddOnWithRelatedData, PgStatus} from '../../lib/pg/types'
import {HTTPError} from 'http-call'
import {HTTPError} from '@heroku/http-call'
import {nls} from '../../nls'

const wait = (ms: number) => new Promise(resolve => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/pipelines/diff.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import {ux} from '@oclif/core'
import HTTP from 'http-call'
import HTTP from '@heroku/http-call'

import {getCoupling, getReleases, listPipelineApps, SDK_HEADER} from '../../lib/api'
import KolkrabbiAPI from '../../lib/pipelines/kolkrabbi-api'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/redis/wait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import {Args, ux} from '@oclif/core'
import redisApi, {RedisFormationWaitResponse} from '../../lib/redis/api'
import {HTTPError} from 'http-call'
import {HTTPError} from '@heroku/http-call'

const wait = (ms: number) => new Promise(resolve => {
setTimeout(resolve, ms)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import color from '@heroku-cli/color'
import {Command, Flags, ux} from '@oclif/core'
import {capitalize} from '@oclif/core/lib/util'
import {formatDistanceToNow} from 'date-fns'
import HTTP from 'http-call'
import HTTP from '@heroku/http-call'

import {maxBy} from '../lib/status/util'

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {HTTP} from 'http-call'
import {HTTP} from '@heroku/http-call'
import UserConfig from './user-config'
import FS = require('fs-extra')

Expand All @@ -18,7 +18,7 @@ export default {
return fetch('fs-extra')
},
get HTTP(): typeof HTTP {
return fetch('http-call').HTTP
return fetch('@heroku/http-call').HTTP
},
get file(): typeof file {
return fetch('./file')
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/addons/resolve.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {APIClient} from '@heroku-cli/command'
import {HTTP, HTTPError} from 'http-call'
import {HTTP, HTTPError} from '@heroku/http-call'
import type {AddOn, AddOnAttachment} from '@heroku-cli/schema'
import {HerokuAPIError} from '@heroku-cli/command/lib/api-client'
import type {AddOnAttachmentWithConfigVarsAndPlan} from '../pg/types'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/certs/flags.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {SniEndpoint} from '../types/sni_endpoint'
import {APIClient} from '@heroku-cli/command'
import {HTTP} from 'http-call'
import {HTTP} from '@heroku/http-call'
import {Domain} from '../types/domain'

export default async function (flags: { endpoint: string | undefined; name: string | undefined; app: string }, heroku: APIClient) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/container/streamer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
async function call(url: string, out: NodeJS.WriteStream, retries: number) {
const http = require('http-call').HTTP
const http = require('@heroku/http-call').HTTP
const maxRetries = 30
try {
const {response} = await http.stream(url)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/pg/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {APIClient} from '@heroku-cli/command'
import type {HTTP} from 'http-call'
import type {HTTP} from '@heroku/http-call'

const responseByAppId: Map<string, Promise<HTTP<Record<string, string>>>> = new Map()

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/pipelines/github-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import HTTP from 'http-call'
import HTTP from '@heroku/http-call'
const GITHUB_API = 'https://api.github.com'

export default class GitHubAPI {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/pipelines/kolkrabbi-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {HTTP} from 'http-call'
import {HTTP} from '@heroku/http-call'

const KOLKRABBI_BASE_URL = 'https://kolkrabbi.heroku.com'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/run/dyno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Dyno as APIDyno} from '@heroku-cli/schema'
import {spawn} from 'child_process'
import {ux} from '@oclif/core'
import debugFactory from 'debug'
import {HTTP} from 'http-call'
import {HTTP} from '@heroku/http-call'
import * as https from 'https'
import * as net from 'net'
import {Duplex, Transform} from 'stream'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/utils/paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// This paginator uses status code to determine passing the Next-Range header
import {APIClient} from '@heroku-cli/command'
import HTTP from 'http-call'
import HTTP from '@heroku/http-call'

export async function paginateRequest<T = unknown>(client: APIClient, url: string, pageSize = 200): Promise<T[]> {
let isPartial = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import heredoc from 'tsheredoc'
import {expect} from 'chai'
import stripAnsi = require('strip-ansi')
import {CLIError} from '@oclif/core/lib/errors'
import {HTTPError} from 'http-call'

describe('pg:backups:schedule', function () {
let api: nock.Scope
Expand Down
91 changes: 65 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1607,23 +1607,23 @@ __metadata:
languageName: node
linkType: hard

"@heroku-cli/command@npm:^11.3.1":
version: 11.3.1
resolution: "@heroku-cli/command@npm:11.3.1"
"@heroku-cli/command@npm:^11.4.0":
version: 11.4.0
resolution: "@heroku-cli/command@npm:11.4.0"
dependencies:
"@heroku-cli/color": ^2.0.1
"@heroku/http-call": ^5.4.0
"@oclif/core": ^2.16.0
cli-ux: ^6.0.9
debug: ^4.3.4
debug: ^4.4.0
fs-extra: ^9.1.0
heroku-client: ^3.1.0
http-call: ^5.3.0
netrc-parser: ^3.1.6
open: ^8.4.2
uuid: ^8.3.0
yargs-parser: ^18.1.3
yargs-unparser: ^2.0.0
checksum: 8dad0aec09ce7ebcee688ca52b4f6085b5272dd87d32ee7b4e7cc9d633deb42031ad73674de027671da698cc8851e8ba7d93f4f6dac334488291ccd87dbd07d3
checksum: fb4ddfdbc43d4e9ccdb5ce697c52cb2984f83705a7e24ab38d50264fb5d0b923f2b6c71863b15e49086a1df50c15fc91aeebe1a49a096b540404aedcdaf7d9d3
languageName: node
linkType: hard

Expand All @@ -1645,9 +1645,9 @@ __metadata:
languageName: node
linkType: hard

"@heroku-cli/heroku-exec-util@npm:0.9.0":
version: 0.9.0
resolution: "@heroku-cli/heroku-exec-util@npm:0.9.0"
"@heroku-cli/heroku-exec-util@npm:0.9.1":
version: 0.9.1
resolution: "@heroku-cli/heroku-exec-util@npm:0.9.1"
dependencies:
"@heroku/heroku-cli-util": ^8.0.13
"@heroku/socksv5": ^0.0.9
Expand All @@ -1658,7 +1658,7 @@ __metadata:
smooth-progress: 1.1.0
ssh2: 1.4.0
temp: 0.9.1
checksum: f0411e5a41e2a1774abb0c47f9356fd7bcb1fb36a80b95caec2c0e73756585dc01c1eb9d609669046a38e01d6b719664705ab6907dd96a0a762329af71bd2d98
checksum: 7b51fbd7fadaf02bf8567d58ae8f1cc72710eb282600959e613f54c5fe0e852728d2c2cef99c4f780324b6a69d2a75f4d225b2bfd341bbeda5a6a288a1231c84
languageName: node
linkType: hard

Expand All @@ -1671,13 +1671,13 @@ __metadata:
languageName: node
linkType: hard

"@heroku-cli/plugin-ps-exec@npm:2.6.0":
version: 2.6.0
resolution: "@heroku-cli/plugin-ps-exec@npm:2.6.0"
"@heroku-cli/plugin-ps-exec@npm:2.6.1":
version: 2.6.1
resolution: "@heroku-cli/plugin-ps-exec@npm:2.6.1"
dependencies:
"@heroku-cli/heroku-exec-util": 0.9.0
"@heroku-cli/heroku-exec-util": 0.9.1
"@heroku/heroku-cli-util": ^8.0.13
checksum: 94e33a23b16f62068830bf12d28c16b7132cef8e58d6f9d658aedb65142642f4cf4c5603fe97c51b0ab3b2aaaa9c397a955e5328dd9cd899190dd6e2cb5f5987
checksum: d5e0fe9e6a80a029b917fdfcd34ec6ca0f78900c9cfb4817ee3a751e9c409d3c5450c6c9f1a890bdf7b5e30fc9fa9090b9c5dc5b0c4821b190dca6f097d9db7f
languageName: node
linkType: hard

Expand Down Expand Up @@ -1729,6 +1729,19 @@ __metadata:
languageName: node
linkType: hard

"@heroku/http-call@npm:^5.4.0":
version: 5.4.0
resolution: "@heroku/http-call@npm:5.4.0"
dependencies:
content-type: ^1.0.5
debug: ^4.4.0
is-retry-allowed: ^2.2.0
is-stream: ^2.0.0
tunnel-agent: ^0.6.0
checksum: 46e522a6f1d1ae44d857db202862aa0ca800804af7ba04b13a46a99f7bb1233adaf47d7d22dbf4fcd7443e78603e3793b3d6662486e8eb1c9ab6e3569e116f25
languageName: node
linkType: hard

"@heroku/socksv5@npm:^0.0.9":
version: 0.0.9
resolution: "@heroku/socksv5@npm:0.0.9"
Expand Down Expand Up @@ -7214,6 +7227,13 @@ __metadata:
languageName: node
linkType: hard

"content-type@npm:^1.0.5":
version: 1.0.5
resolution: "content-type@npm:1.0.5"
checksum: 566271e0a251642254cde0f845f9dd4f9856e52d988f4eb0d0dcffbb7a1f8ec98de7a5215fc628f3bce30fe2fb6fd2bc064b562d721658c59b544e2d34ea2766
languageName: node
linkType: hard

"conventional-changelog-angular@npm:^5.0.12":
version: 5.0.13
resolution: "conventional-changelog-angular@npm:5.0.13"
Expand Down Expand Up @@ -7684,6 +7704,18 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:^4.4.0":
version: 4.4.0
resolution: "debug@npm:4.4.0"
dependencies:
ms: ^2.1.3
peerDependenciesMeta:
supports-color:
optional: true
checksum: fb42df878dd0e22816fc56e1fdca9da73caa85212fbe40c868b1295a6878f9101ae684f4eeef516c13acfc700f5ea07f1136954f43d4cd2d477a811144136479
languageName: node
linkType: hard

"debuglog@npm:^1.0.1":
version: 1.0.1
resolution: "debuglog@npm:1.0.1"
Expand Down Expand Up @@ -10331,13 +10363,14 @@ __metadata:
resolution: "heroku@workspace:packages/cli"
dependencies:
"@heroku-cli/color": 2.0.1
"@heroku-cli/command": ^11.3.1
"@heroku-cli/command": ^11.4.0
"@heroku-cli/notifications": ^1.2.4
"@heroku-cli/plugin-ps-exec": 2.6.0
"@heroku-cli/plugin-ps-exec": 2.6.1
"@heroku-cli/schema": ^1.0.25
"@heroku/buildpack-registry": ^1.0.1
"@heroku/eventsource": ^1.0.7
"@heroku/heroku-cli-util": ^8.0.13
"@heroku/http-call": ^5.4.0
"@inquirer/prompts": ^5.0.5
"@oclif/core": ^2.16.0
"@oclif/plugin-commands": 2.2.28
Expand Down Expand Up @@ -10406,7 +10439,6 @@ __metadata:
glob: ^10.3.10
globby: ^10.0.2
got: ^11.8.6
http-call: 5.3.0
inquirer: ^8.2.6
lodash: ^4.17.11
lolex: ^3.1.0
Expand Down Expand Up @@ -10521,31 +10553,31 @@ __metadata:
languageName: node
linkType: hard

"http-call@npm:5.3.0, http-call@npm:^5.2.2, http-call@npm:^5.2.4, http-call@npm:^5.3.0":
version: 5.3.0
resolution: "http-call@npm:5.3.0"
"http-call@npm:^5.1.2":
version: 5.2.4
resolution: "http-call@npm:5.2.4"
dependencies:
content-type: ^1.0.4
debug: ^4.1.1
is-retry-allowed: ^1.1.0
is-stream: ^2.0.0
parse-json: ^4.0.0
tunnel-agent: ^0.6.0
checksum: 06e9342e1fc9d805ab666c862cac58ece953e0a72007410f4fba9aef40075f4c8bf0fdebbcfa1648433db05003ce1e00496ddb92e8dcff319a976638b2be4057
checksum: 61fe14c84a83b205e1bd53306899b1d6cfd4767140bd9e4ce3b362e21da770c16f235fd09207937fafde7cbbce621a991423338c07acd4c6db64b8cc3be649fb
languageName: node
linkType: hard

"http-call@npm:^5.1.2":
version: 5.2.4
resolution: "http-call@npm:5.2.4"
"http-call@npm:^5.2.2, http-call@npm:^5.2.4, http-call@npm:^5.3.0":
version: 5.3.0
resolution: "http-call@npm:5.3.0"
dependencies:
content-type: ^1.0.4
debug: ^4.1.1
is-retry-allowed: ^1.1.0
is-stream: ^2.0.0
parse-json: ^4.0.0
tunnel-agent: ^0.6.0
checksum: 61fe14c84a83b205e1bd53306899b1d6cfd4767140bd9e4ce3b362e21da770c16f235fd09207937fafde7cbbce621a991423338c07acd4c6db64b8cc3be649fb
checksum: 06e9342e1fc9d805ab666c862cac58ece953e0a72007410f4fba9aef40075f4c8bf0fdebbcfa1648433db05003ce1e00496ddb92e8dcff319a976638b2be4057
languageName: node
linkType: hard

Expand Down Expand Up @@ -11264,6 +11296,13 @@ __metadata:
languageName: node
linkType: hard

"is-retry-allowed@npm:^2.2.0":
version: 2.2.0
resolution: "is-retry-allowed@npm:2.2.0"
checksum: 3d1103a9290b5d03626756a41054844633eac78bc5d3e3a95b13afeae94fa3cfbcf7f0b5520d83f75f48a25ce7b142fdbac4217dc4b0630f3ea55e866ec3a029
languageName: node
linkType: hard

"is-set@npm:^2.0.3":
version: 2.0.3
resolution: "is-set@npm:2.0.3"
Expand Down

0 comments on commit 29b9580

Please sign in to comment.