Nathan Rajlich
78ca930287
[cli] Show user's name in vc switch command ( #6288 )
...
This more closely matches the Team picker on vercel.com.
Will still show "email" if no "name" is defined.
2021-05-25 13:18:14 -07:00
Nathan Rajlich
b03e18df12
Publish Canary
...
- vercel@22.0.2-canary.7
- @vercel/python@2.0.3-canary.0
2021-05-25 11:07:16 -07:00
Nathan Rajlich
3a6b8b072c
[cli] Reauthenticate scopes with limited access in vc switch ( #6280 )
...
In the `vc switch` command, if your current access token results in
"limited" Team information being returned, then show a lock emoji
next to the team/user name in the select input.
When a locked scope is selected, then pre-emptively prompt the
user to re-authenticate using a valid login method in relation to
the desired scope.
https://user-images.githubusercontent.com/71256/119441172-87abae80-bcda-11eb-801a-cb6837bae353.mov
[ch21964]
2021-05-25 11:03:06 -07:00
Steven
d480cd6bbd
[cli] Bump codecov to 3.8.2 ( #6279 )
...
Closes #5814
2021-05-24 23:16:02 +00:00
Nathan Rajlich
181b624bf4
[cli] Add SAML reauthentication logic when using different scope ( #6263 )
...
When the API returns a SAML error, then show the proper reauthentication prompt depending on the scope being requested:
Team with SAML enforced, shows only SSO login option:
<img width="476" alt="Screen Shot 2021-05-24 at 1 50 29 PM" src="https://user-images.githubusercontent.com/71256/119406131-31694c00-bc97-11eb-858a-52e5fe7052d1.png ">
Team with SAML enabled, but not enforced, prompts with all login methods:
<img width="352" alt="Screen Shot 2021-05-24 at 1 50 36 PM" src="https://user-images.githubusercontent.com/71256/119406134-3201e280-bc97-11eb-9166-60fbfec47ee0.png ">
Team without SAML enabled, or User scope, shows prompt with SSO option removed:
<img width="366" alt="Screen Shot 2021-05-24 at 1 50 44 PM" src="https://user-images.githubusercontent.com/71256/119406137-3201e280-bc97-11eb-8c5c-b88eb9983500.png ">
[ch21964]
2021-05-24 15:16:24 -07:00
Nathan Rajlich
200495e4ce
[cli] Use ts-eager to execute build script ( #6278 )
...
* [cli] Use `ts-eager` to execute build script
* Use `node -r ts-eager/register` to workaround Windows issue
2021-05-24 18:14:55 -04:00
Steven
9178f14c40
Publish Stable
...
- @vercel/python@2.0.2
2021-05-24 16:46:49 -04:00
Nathan Rajlich
9a790f5352
[cli] Set tokenName query param for Git provider login methods ( #6277 )
...
We're not currently setting the `tokenName` when logging in via a
Git provider, so the name becomes the default "Website" one which
is confusing / incorrect.
2021-05-24 13:38:55 -07:00
Steven
33d8be7f8f
[cli] Fix vc logout retry ( #6276 )
...
* [cli] Fix `vc logout` retry
* Fix logout message
2021-05-24 16:26:01 -04:00
JJ Kasper
82aa86b786
Apply dependabot changes ( #6275 )
...
* Bump elliptic in /packages/cli/test/dev/fixtures/02-angular-node
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.2 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump node-fetch from 2.6.0 to 2.6.1 in /api
Bumps [node-fetch](https://github.com/bitinn/node-fetch ) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases )
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ssri from 6.0.1 to 6.0.2 in /examples/blitzjs
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump hosted-git-info from 2.8.8 to 2.8.9 in /examples/angular
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump hosted-git-info from 2.8.8 to 2.8.9 in /examples/blitzjs
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ssri in /packages/cli/test/dev/fixtures/02-angular-node
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ssri in /packages/cli/test/dev/fixtures/04-create-react-app
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump ssri in /packages/cli/test/dev/fixtures/03-aurelia
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump hosted-git-info in /packages/cli/test/dev/fixtures/02-angular-node
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump url-parse in /packages/cli/test/dev/fixtures/04-create-react-app
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump url-parse in /packages/cli/test/dev/fixtures/03-aurelia
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump handlebars in /packages/cli/test/dev/fixtures/02-angular-node
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump lodash in /packages/cli/test/dev/fixtures/02-angular-node
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump hosted-git-info in /packages/cli/test/dev/fixtures/03-aurelia
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump hosted-git-info
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump lodash in /packages/cli/test/dev/fixtures/03-aurelia
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com >
* Bump url-parse in /packages/cli/test/dev/fixtures/02-angular-node
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven <steven@ceriously.com >
2021-05-24 15:49:31 -04:00
Steven
6288d5ef43
Publish Canary
...
- vercel@22.0.2-canary.6
- @vercel/client@10.0.1-canary.5
- @vercel/node@1.10 .1-canary.2
- @vercel/python@2.0.2-canary.0
2021-05-24 13:37:57 -04:00
Nathan Rajlich
93fae76f9c
[cli] Simplify emoji module ( #6260 )
2021-05-21 13:53:13 -07:00
Nathan Rajlich
e5131d5557
[cli] Update NowConfig references to VercelConfig ( #6256 )
...
The `NowConfig` interface is deprecated.
2021-05-21 12:21:38 -07:00
Nathan Rajlich
930063638c
[cli] Refactor vc logs command ( #6259 )
2021-05-21 11:36:58 -07:00
Nathan Rajlich
7b509ae672
[cli] Refactor vc switch command ( #6257 )
...
Refactors the `vc switch` command to more closely match how the team picker works on the Vercel dashboard:
* Converts to TypeScript
* Adds separator between user scope and team scopes
* Sorts teams by name
* No longer places the current scope at the top of the list (but the current scope is still selected by default)
2021-05-20 11:19:38 -07:00
Nathan Rajlich
711da37771
[cli] Refactor vc inspect command ( #6258 )
2021-05-20 10:30:33 -07:00
Steven
5e50b96994
Publish Canary
...
- vercel@22.0.2-canary.5
- @vercel/node@1.10 .1-canary.1
2021-05-13 16:40:36 -04:00
Steven
37f969416c
Publish Canary
...
- @vercel/build-utils@2.10 .3-canary.4
- vercel@22.0.2-canary.4
- @vercel/client@10.0.1-canary.4
- @vercel/node@1.10 .1-canary.0
2021-05-10 14:01:41 -04:00
Steven
75630e0982
[node] Bump nft to 0.11.2 ( #6211 )
...
* [node] Bump nft to 0.11.2
* Fix tests since node 10.x is discontinued
2021-05-10 14:01:02 -04:00
Nathan Rajlich
00bb723db3
Publish Canary
...
- @vercel/build-utils@2.10 .3-canary.3
- vercel@22.0.2-canary.3
- @vercel/client@10.0.1-canary.3
- @vercel/frameworks@0.3.3-canary.3
2021-05-05 13:09:43 -07:00
Nathan Rajlich
65a97720b3
[cli] Refactor vc login command ( #6185 )
...
Refactors the CLI `vc login` command with the following features:
* Adds GitHub, GitLab and Bitbucket as login options
* Uses a "list" input to select which login method to use (same list as `vc init`)
* Support connecting SAML Profile to Vercel user during login
2021-05-05 13:08:26 -07:00
luc
a23879b507
Publish Canary
...
- @vercel/build-utils@2.10 .3-canary.2
- vercel@22.0.2-canary.2
- @vercel/client@10.0.1-canary.2
- @vercel/frameworks@0.3.3-canary.2
2021-05-04 09:33:09 +02:00
JJ Kasper
e28edc5c93
Publish Canary
...
- @vercel/build-utils@2.10 .3-canary.1
- vercel@22.0.2-canary.1
- @vercel/client@10.0.1-canary.1
- @vercel/frameworks@0.3.3-canary.1
- @vercel/routing-utils@1.11 .1-canary.1
2021-04-29 11:03:01 -05:00
JJ Kasper
6d8b10802c
Publish Canary
...
- @vercel/build-utils@2.10 .3-canary.0
- vercel@22.0.2-canary.0
- @vercel/client@10.0.1-canary.0
- @vercel/frameworks@0.3.3-canary.0
- @vercel/routing-utils@1.11 .1-canary.0
2021-04-23 14:48:09 -05:00
Steven
e4d422a2d7
Publish Stable
...
- vercel@22.0.1
2021-04-22 15:07:42 -04:00
Steven
bd55ad8212
Publish Canary
...
- vercel@22.0.1-canary.0
2021-04-22 14:50:59 -04:00
Nathan Rajlich
6591dae152
[cli] Update default auth config comment to say "Vercel" ( #6140 )
2021-04-22 14:40:11 -04:00
Steven
a490faa496
[cli] Fix SAML usage with --token ( #6139 )
2021-04-22 14:39:51 -04:00
Steven
8fe16f1b0a
[cli] Fix vercel login command ( #6138 )
...
* Revert file symbol usage for login
* Add missing remove() to test
2021-04-22 13:35:07 -04:00
Steven
bac19b66af
Publish Stable
...
- @vercel/build-utils@2.10 .2
- vercel@22.0.0
- @vercel/client@10.0.0
- @vercel/frameworks@0.3.2
- @vercel/node@1.10 .0
- @vercel/routing-utils@1.11 .0
2021-04-21 16:57:38 -04:00
Steven
8c1b707f38
Publish Canary
...
- @vercel/build-utils@2.10 .2-canary.6
- vercel@21.3.4-canary.13
- @vercel/client@9.0.9-canary.7
- @vercel/frameworks@0.3.2-canary.6
2021-04-21 15:18:08 -04:00
Steven
4b4caccb3d
[cli] (Major) Remove deprecated vc domains verify command ( #6130 )
...
The command `vc domains verify` was deprecated in #4959 so we can remove it for the next major version.
2021-04-21 19:07:39 +00:00
JJ Kasper
bf3a1fc832
Publish Canary
...
- @vercel/build-utils@2.10 .2-canary.5
- vercel@21.3.4-canary.12
- @vercel/client@9.0.9-canary.6
- @vercel/frameworks@0.3.2-canary.5
- @vercel/routing-utils@1.10 .2-canary.3
2021-04-14 13:34:55 -05:00
Steven
9e5edd6c51
Publish Canary
...
- vercel@21.3.4-canary.11
- @vercel/node@1.9.2-canary.1
2021-04-14 09:34:38 -04:00
Steven
b2653c457b
Publish Canary
...
- vercel@21.3.4-canary.10
- @vercel/client@9.0.9-canary.5
- @vercel/node@1.9.2-canary.0
2021-04-13 16:04:20 -04:00
Steven
6617ace647
[cli] Replace "mri" with "arg" ( #6108 )
...
Replace a few usages of [mri](https://www.npmjs.com/package/mri ) with [arg](https://www.npmjs.com/package/arg ) which will ensure that unknown flags will throw instead of skip silently.
This also bumps `arg` to version 5.0.0 which has support for TS types.
2021-04-13 15:26:29 -04:00
Steven
b4bebb41be
[cli][client] Drop support for Node.js 10 ( #6101 )
...
Node.js 10 is about to reach EOL so we can drop CLI support in the next major release. We'll support 12+ going forward.
Node.js 12 needs `es2019` because it doesn't support the `es2020` features of optional chaining and nullish coalescing as seen from the [compatibility table](https://kangax.github.io/compat-table/es2016plus/#node12_11 ).
2021-04-12 15:34:51 -04:00
Steven
40aaa0952f
[cli] Fix error usage before defined ( #6099 )
...
This PR fixes a couple regressions from #6016 :
- Using `error` before its imported. [See index.js](https://github.com/vercel/vercel/pull/6016/files#diff-032eb615f83c504bbb0ec2dfae005b7cea1748c905270acfffe6be0ee3fef7acL3 )
- Passing the incorrect params to `add()`. [See add.js](https://github.com/vercel/vercel/pull/6016/files#diff-ee72a76cd216b786bc71a05d76a1b3c760a73248e5b8363ec2f83dd1d46b63d7R39 )
We should eventually move these files to TS to catch these types of bugs.
2021-04-12 12:52:43 -04:00
Steven
7ccdc7baac
Publish Canary
...
- vercel@21.3.4-canary.9
2021-04-09 11:32:02 -04:00
Steven
363922dd11
[cli] Add vc link to vc help output ( #6086 )
2021-04-08 18:21:56 -04:00
Steven
ea798e40af
[cli] Bump chalk and change "update available" color ( #6084 )
...
- Bump `chalk` to latest version https://github.com/chalk/chalk/releases
- Use black text instead of white text
- Use cyan background instead of red background
### Before

### After

2021-04-08 22:00:59 +00:00
Steven
d9e0c44d3a
Publish Canary
...
- vercel@21.3.4-canary.8
2021-04-08 15:24:37 -04:00
Steven
0a2d55d83d
[cli] Update vc env messages ( #6081 )
2021-04-08 15:17:39 -04:00
Steven
b4cb2fc391
Publish Canary
...
- vercel@21.3.4-canary.7
2021-04-03 17:00:51 -04:00
Nathan Rajlich
ada5b35966
[cli] Use updated SSO auth URL for login ( #6063 )
...
The `/registration` prefix is no longer necessary.
2021-04-02 16:17:48 -07:00
Steven
cc54d260a7
Publish Canary
...
- vercel@21.3.4-canary.6
2021-04-02 12:05:55 -04:00
Steven
8147e75d89
[cli] (Major) Update vc env command ( #6049 )
...
### Changes
- Add support for Git Branch
- Use a single env type: "encrypted"
- Remove unnecessary questions during `vc env add`
#### Tests
- [x] The code changed/added as part of this PR has been covered with tests
- [x] All tests pass locally with `yarn test-unit`
#### Code Review
- [x] This PR has a concise title and thorough description useful to a reviewer
- [x] Issue from task tracker has a link to this PR
2021-04-02 16:05:01 +00:00
Nathan Rajlich
43d4268759
[cli] Make vc whoami not require team context ( #6057 )
...
If the user is signed in to a team with SAML enforced, but the
current token is not a SAML token, then `getScope()` will fail.
So add the option to opt-out of team information in `getScope()`
and use that new option in `vc whoami` since it doesn't require
team information.
2021-04-01 12:36:09 -07:00
Nathan Rajlich
3e91f446b4
Publish Canary
...
- vercel@21.3.4-canary.5
2021-04-01 11:46:34 -07:00
Nathan Rajlich
bdb6e33b41
[cli] Re-trigger SSO auth when a SAML error is encountered ( #6053 )
...
When the API returns a `saml: true` error, CLI will re-trigger the SSO
auth browser window so that the user can sign into their identity
provider again. Once the new token is received, it is saved to the
`auth.json` file (unless the token was specified via `--token`) for
future use.
2021-04-01 11:43:28 -07:00