diff --git a/CHANGELOG.md b/CHANGELOG.md index c120ee26e6..890cecb55f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.46.1](https://github.com/heroku/cli/compare/v7.46.0...v7.46.1) (2020-10-20) + +**Note:** Version bump only for package heroku + + + + + # [7.46.0](https://github.com/heroku/cli/compare/v7.45.0...v7.46.0) (2020-10-13) **Note:** Version bump only for package heroku diff --git a/docs/auth.md b/docs/auth.md index edc15f5901..f2dc997c9d 100644 --- a/docs/auth.md +++ b/docs/auth.md @@ -24,7 +24,7 @@ ALIASES $ heroku twofactor ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/2fa/index.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/2fa/index.ts)_ ## `heroku auth:2fa:disable` @@ -43,7 +43,7 @@ EXAMPLES Disabling 2fa on me@example.com... done ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/2fa/disable.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/2fa/disable.ts)_ ## `heroku auth:2fa:generate-recovery-codes` @@ -82,7 +82,7 @@ EXAMPLES f82e7c2a50737494 ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/2fa/generate-recovery-codes.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/2fa/generate-recovery-codes.ts)_ ## `heroku auth:login` @@ -101,7 +101,7 @@ ALIASES $ heroku login ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/login.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/login.ts)_ ## `heroku auth:logout` @@ -115,7 +115,7 @@ ALIASES $ heroku logout ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/logout.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/logout.ts)_ ## `heroku auth:token` @@ -133,7 +133,7 @@ DESCRIPTION authorizations:create ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/token.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/token.ts)_ ## `heroku auth:whoami` @@ -147,4 +147,4 @@ ALIASES $ heroku whoami ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/whoami.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/whoami.ts)_ diff --git a/docs/labs.md b/docs/labs.md index c1809b6b9c..91c77f4930 100644 --- a/docs/labs.md +++ b/docs/labs.md @@ -36,7 +36,7 @@ OPTIONS --confirm=confirm ``` -_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/labs/disable.ts)_ +_See code: [@heroku-cli/plugin-auth](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/labs/disable.ts)_ ## `heroku labs:enable FEATURE` diff --git a/lerna.json b/lerna.json index efdfeb9ca2..ced1c6bb0c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "7.46.0", + "version": "7.46.1", "useWorkspaces": true, "npmClient": "yarn", "command": { diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 409c76c2b4..e369600019 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.46.1](https://github.com/heroku/cli/compare/v7.46.0...v7.46.1) (2020-10-20) + +**Note:** Version bump only for package @heroku-cli/plugin-auth + + + + + # [7.46.0](https://github.com/heroku/cli/compare/v7.45.0...v7.46.0) (2020-10-13) diff --git a/packages/auth/README.md b/packages/auth/README.md index 9c75acfcd7..ea94c7106d 100644 --- a/packages/auth/README.md +++ b/packages/auth/README.md @@ -37,7 +37,7 @@ ALIASES $ heroku twofactor ``` -_See code: [src/commands/auth/2fa/index.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/2fa/index.ts)_ +_See code: [src/commands/auth/2fa/index.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/2fa/index.ts)_ ## `heroku auth:2fa:disable` @@ -56,7 +56,7 @@ EXAMPLES Disabling 2fa on me@example.com... done ``` -_See code: [src/commands/auth/2fa/disable.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/2fa/disable.ts)_ +_See code: [src/commands/auth/2fa/disable.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/2fa/disable.ts)_ ## `heroku auth:2fa:generate-recovery-codes` @@ -95,7 +95,7 @@ EXAMPLES f82e7c2a50737494 ``` -_See code: [src/commands/auth/2fa/generate-recovery-codes.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/2fa/generate-recovery-codes.ts)_ +_See code: [src/commands/auth/2fa/generate-recovery-codes.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/2fa/generate-recovery-codes.ts)_ ## `heroku auth:login` @@ -114,7 +114,7 @@ ALIASES $ heroku login ``` -_See code: [src/commands/auth/login.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/login.ts)_ +_See code: [src/commands/auth/login.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/login.ts)_ ## `heroku auth:logout` @@ -128,7 +128,7 @@ ALIASES $ heroku logout ``` -_See code: [src/commands/auth/logout.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/logout.ts)_ +_See code: [src/commands/auth/logout.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/logout.ts)_ ## `heroku auth:token` @@ -146,7 +146,7 @@ DESCRIPTION authorizations:create ``` -_See code: [src/commands/auth/token.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/token.ts)_ +_See code: [src/commands/auth/token.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/token.ts)_ ## `heroku auth:whoami` @@ -160,7 +160,7 @@ ALIASES $ heroku whoami ``` -_See code: [src/commands/auth/whoami.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/auth/whoami.ts)_ +_See code: [src/commands/auth/whoami.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/auth/whoami.ts)_ ## `heroku labs:disable [FEATURE]` @@ -176,5 +176,5 @@ OPTIONS --confirm=confirm ``` -_See code: [src/commands/labs/disable.ts](https://github.com/heroku/cli/blob/v7.46.0/packages/auth/src/commands/labs/disable.ts)_ +_See code: [src/commands/labs/disable.ts](https://github.com/heroku/cli/blob/v7.46.1/packages/auth/src/commands/labs/disable.ts)_ diff --git a/packages/auth/package.json b/packages/auth/package.json index fc8d09502d..d0f7762538 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,7 +1,7 @@ { "name": "@heroku-cli/plugin-auth", "description": "auth core plugin for Heroku CLI", - "version": "7.46.0", + "version": "7.46.1", "author": "Jeff Dickey @jdxcode", "bugs": "https://github.com/heroku/cli/issues", "dependencies": { diff --git a/packages/auth/src/commands/auth/2fa/disable.ts b/packages/auth/src/commands/auth/2fa/disable.ts index 7c66516a45..a6a940fb86 100644 --- a/packages/auth/src/commands/auth/2fa/disable.ts +++ b/packages/auth/src/commands/auth/2fa/disable.ts @@ -1,6 +1,6 @@ import {Command} from '@heroku-cli/command' import * as Heroku from '@heroku-cli/schema' -import ux from 'cli-ux' +import cli from 'cli-ux' export default class Auth2faGenerate extends Command { static description = 'disables 2fa on account' @@ -14,11 +14,13 @@ export default class Auth2faGenerate extends Command { Disabling 2fa on me@example.com... done` async run() { - ux.action.start('Disabling 2fa') - const {body: account} = await this.heroku.get('/account') - ux.action.start(`Disabling 2fa on ${account.email}`) + cli.action.start('Disabling 2fa') + const headers = {Accept: 'application/vnd.heroku+json; version=3.with_vaas_info'} + const {body: account} = await this.heroku.get('/account', {headers}) + cli.action.start(`Disabling 2fa on ${account.email}`) + if (account.vaas_enrolled) this.error('Cannot disable 2fa via CLI\nPlease visit your Account page on the Heroku Dashboard to manage 2fa: https://dashboard.heroku.com/account') if (!account.two_factor_authentication) this.error('2fa is already disabled') - const password = await ux.prompt('Password', {type: 'hide'}) + const password = await cli.prompt('Password', {type: 'hide'}) await this.heroku.patch('/account', {body: {password, two_factor_authentication: false}}) } } diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index c120ee26e6..890cecb55f 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.46.1](https://github.com/heroku/cli/compare/v7.46.0...v7.46.1) (2020-10-20) + +**Note:** Version bump only for package heroku + + + + + # [7.46.0](https://github.com/heroku/cli/compare/v7.45.0...v7.46.0) (2020-10-13) **Note:** Version bump only for package heroku diff --git a/packages/cli/package.json b/packages/cli/package.json index 114ad6b115..d95ce0cd17 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "heroku", "description": "CLI to interact with Heroku", - "version": "7.46.0", + "version": "7.46.1", "author": "Jeff Dickey @jdxcode", "bin": { "heroku": "./bin/run" @@ -13,7 +13,7 @@ "@heroku-cli/plugin-addons-v5": "^7.42.2", "@heroku-cli/plugin-apps": "^7.43.2", "@heroku-cli/plugin-apps-v5": "^7.43.0", - "@heroku-cli/plugin-auth": "^7.46.0", + "@heroku-cli/plugin-auth": "^7.46.1", "@heroku-cli/plugin-autocomplete": "^7.43.0", "@heroku-cli/plugin-buildpacks": "^7.43.0", "@heroku-cli/plugin-certs": "^7.43.0",