Steven
faaccc1f9f
[frameworks] Add missing cachePattern to Next.js ( #6396 )
2021-06-24 15:31:16 -04:00
Nathan Rajlich
4b61f1dd61
[cli] Set proper currentTeam in vc deploy ( #6394 )
...
Fixes an edge case bug when the user has a current scope that is
different than the owner of the project that is being deployed.
When this was the case, the API call to get the certs for a domain at
the end of the `vc deploy` command was using the incorrect `teamId`,
potentially causing a 403 error (when the current auth token does not
have access to the selected scope).
2021-06-24 12:06:27 -07:00
Steven
cdd417455f
[frameworks] Add cachePattern to API response ( #6395 )
2021-06-24 14:44:38 -04:00
Leonardo Merlin
fe671f56c5
chore(examples): update nuxtjs ( #6383 )
...
* chore: update nuxtjs example
* fix: remove @nuxtjs/pwa
Co-authored-by: Leonardo Merlin <lmerlin@schubergphilis.com >
2021-06-23 19:19:04 -07:00
Nathan Rajlich
ddf9e6cf3f
[cli] Make vc deploy not load current "scope" ( #6388 )
...
`vc deploy` doesn't care about the current "scope" that the CLI has selected, since it uses the `.vercel` directory to determine the ownerId and projectId.
Therefore, it should not be fetching the team details of the selected scope during `vc deploy`, since it's possible that the token might not have access to the current scope and returns a 403, even though that API call is unnecessary for the `vc deploy` command to complete.
2021-06-23 12:32:43 -07:00
Steven
13b03c6abd
Publish Canary
...
- @vercel/build-utils@2.11 .2-canary.0
- vercel@23.0.2-canary.1
- @vercel/client@10.1.2-canary.0
- @vercel/node@1.11 .2-canary.1
vercel@23.0.2-canary.1
@vercel/build-utils@2.11.2-canary.0
@vercel/client@10.1.2-canary.0
@vercel/node@1.11.2-canary.1
2021-06-23 10:54:17 -04:00
Steven
7dd4c629ad
[node] Add support for ESM to vc dev ( #6385 )
...
Follow up to #6121
2021-06-23 14:48:47 +00:00
Nathan Rajlich
81b3d7f5f1
[cli] Fix vc login hanging for a few seconds before exiting ( #6387 )
...
Closing keep-alive HTTP connections was causing the `server.close()` call
to take a few seconds before completing, so set the `Connection: close`
response header in order to make the connections close immediately,
so that `server.close()` is fast.
2021-06-22 20:57:15 -07:00
Steven
3566c32209
[build-utils] Add support for .mjs with zero config ( #6386 )
...
Follow up to #6121
2021-06-23 02:21:16 +00:00
Nathan Rajlich
267ca7b379
[cli] Print timestamp for each line for multi-line log entries ( #6384 )
2021-06-22 16:46:03 -07:00
Steven
7b9d9954b8
Publish Canary
...
- vercel@23.0.2-canary.0
- @vercel/node-bridge@2.0.1-canary.0
- @vercel/node@1.11 .2-canary.0
vercel@23.0.2-canary.0
@vercel/node@1.11.2-canary.0
@vercel/node-bridge@2.0.1-canary.0
2021-06-22 15:46:21 -04:00
Steven
79675db241
[node][node-bridge] Add support for ESM ( #6121 )
2021-06-22 15:44:30 -04:00
Nathan Rajlich
3ac8a3f67f
[cli] Make vercel dev command exit quickly ( #6365 )
...
Considering that it's a development environment, it's not important to wait for ongoing HTTP request connections to complete. Sometimes it takes a long time for all the shutdown operations to complete, which makes the command feel sluggish. So let's just `process.exit()` and exit quickly.
2021-06-18 23:33:37 +00:00
Nathan Rajlich
2f19949133
[cli] Finish executing the original command after login with no credentials ( #6364 )
2021-06-18 13:10:30 -07:00
Paco
85fd2aed7e
Update Next.js example favicon ( #6367 )
2021-06-18 12:35:01 -07:00
Steven
e659eecf48
Publish Stable
...
- @vercel/build-utils@2.11 .1
- vercel@23.0.1
- @vercel/client@10.1.1
- @vercel/frameworks@0.4.1
- @vercel/node@1.11 .1
- @vercel/python@2.0.4
- @vercel/routing-utils@1.11 .2
@vercel/routing-utils@1.11.2
@vercel/build-utils@2.11.1
vercel@23.0.1
@vercel/python@2.0.4
@vercel/node@1.11.1
@vercel/frameworks@0.4.1
@vercel/client@10.1.1
2021-06-15 17:29:53 -04:00
Steven
b428f7ff83
Publish Canary
...
- vercel@23.0.1-canary.4
vercel@23.0.1-canary.4
2021-06-15 16:37:28 -04:00
Nathan Rajlich
5eb133283d
Remove utils/go ( #6362 )
...
This code now lives in its own repository, so the code in this repo is not being used.
https://github.com/vercel/go-bridge
2021-06-15 12:49:18 +00:00
Nathan Rajlich
646c29600e
[cgi] Remove @vercel/cgi Runtime ( #6361 )
...
This Runtime is very old, outdated, unmaintained, and has never been documented.
Additionally, it no longer compiles with the latest version of Go. So
rather than fixing it, let's just remove it since we don't want to
invest any more time into it.
2021-06-14 20:49:05 -07:00
Nathan Rajlich
469eb4315d
[cli] Update "open" to v8.2.0 ( #6348 )
...
Fixes an issue where the bundled `xdg-open` script would not be used.
2021-06-10 19:14:57 -07:00
JJ Kasper
6dc54d0d64
Publish Canary
...
- @vercel/build-utils@2.11 .1-canary.1
- vercel@23.0.1-canary.3
- @vercel/client@10.1.1-canary.1
- @vercel/frameworks@0.4.1-canary.1
- @vercel/routing-utils@1.11 .2-canary.1
@vercel/client@10.1.1-canary.1
@vercel/build-utils@2.11.1-canary.1
@vercel/frameworks@0.4.1-canary.1
@vercel/routing-utils@1.11.2-canary.1
vercel@23.0.1-canary.3
2021-06-08 11:38:01 -05:00
JJ Kasper
adc84d5148
Fix check: true beforeFiles order ( #6337 )
2021-06-08 11:35:31 -05:00
Nathan Rajlich
88642b1ce8
[cli] Print login URL to terminal ( #6336 )
...
In some cases (i.e. when SSH'd to a remote machine) the `open` command will not work reliably. So we need to print the URL to the user as a fallback for those cases when the web browser is not automatically opened.
This also moves where `tokenName` is specified to be in the "verify" endpoint, so that it does not need to be part of the URL that gets printed to the user.
<img width="738" alt="Screen Shot 2021-06-07 at 2 12 47 PM" src="https://user-images.githubusercontent.com/71256/121089239-b5452d00-c79b-11eb-85b2-0e45b817dff0.png ">
2021-06-07 22:13:58 +00:00
Steven
4b8d207533
[cli] Warn when vercel.json uses has ( #6327 )
2021-06-07 14:45:36 -04:00
Steven
36fe5cc4d1
[test] Fix corrupt bmp test ( #6328 )
2021-06-07 09:31:51 -04:00
JJ Kasper
370b0dbed2
Publish Canary
...
- vercel@23.0.1-canary.2
- @vercel/node@1.11 .1-canary.0
vercel@23.0.1-canary.2
@vercel/node@1.11.1-canary.0
2021-06-06 15:24:50 -05:00
JJ Kasper
cc7a82fb0a
[node] Update nft to 0.13.1 ( #6333 )
2021-06-06 16:22:56 -04:00
Markoz Peña
6eea26c39e
[cli] Convert vc alias to TS ( #6325 )
...
* refactor: Remove unncessary file
* feat(cli/alias): Migration to TS
* refactor(cli/alias): Add a line break
* refactor(cli/alias): Remove unnecesary code
* feat(cli): Add `Paginationoptions` type to `pagination`
* feat(cli/commands): Rewrite th `alias ls` command to TS
* refactor: Remove unncessary code
* feat: Create helper function for `getSafeAlias`
* refactor: Remove unnecessary code
* feat: Remove parameter generic, "null" for the fetch
* feat(cli/alias): Rewritten in full TS
* feat: Add Partial to opts
* refactor: Remove comment @ts-ignore
* feat: Add Partial to opts
* feat: Only should be return `alias.uid`
* refactor: Remove `Alias` type from of the parameter `id`
* refactor: Remove destructuring from alias object
* refactor: Remove unnecessary code
* feat: Rename `created` property to `createdAt` of number type
* refactor: Move getSafeAlias function in the same file
* refactor: Simplifying code
* refactor: Intentation did not affect diff on git
* Add null back to type
Co-authored-by: Steven <steven@ceriously.com >
2021-06-04 16:43:39 -04:00
Nathan Rajlich
b8bfae7840
[cli] Fix vc logout command when using Team scope ( #6322 )
...
Fixes logout command not working when switched to a Team scope:
```
$ vc login
$ vc switch $some_team
$ vc logout
Failed during logout
```
2021-06-04 19:48:03 +00:00
Nathan Rajlich
dc6a0a1cbb
[cli] Upgrade token scopes in vc switch command ( #6323 )
...
Pass the `Authorization` request header to the verify endpoint so that the current auth token will be upgraded with the new scope.
[ch22273]
2021-06-04 18:33:49 +00:00
Steven
a6807c9d21
Publish Canary
...
- vercel@23.0.1-canary.1
- @vercel/python@2.0.4-canary.0
@vercel/python@2.0.4-canary.0
vercel@23.0.1-canary.1
2021-06-01 14:35:09 -04:00
Steven
c628090d08
[cli] Fix vc projects rm race condition ( #6306 )
...
The call to `GET /projects/info` is used to check existence but it can cause a race condition if the project was removed before the `DELETE /v2/projects` is called.
Instead, we rely on the response from `DELETE /v2/projects` to determine if the project exists or not.
This will also allow us to remove a legacy API endpoint in the future (see related API PR)
2021-06-01 18:31:20 +00:00
Hydrophobefireman
4e0b291ed1
[python] Remove imports from werkzeug._compat ( #6283 )
2021-06-01 09:15:06 -04:00
JJ Kasper
ee0bc9b0c8
Publish Canary
...
- @vercel/build-utils@2.11 .1-canary.0
- vercel@23.0.1-canary.0
- @vercel/client@10.1.1-canary.0
- @vercel/frameworks@0.4.1-canary.0
- @vercel/routing-utils@1.11 .2-canary.0
vercel@23.0.1-canary.0
@vercel/build-utils@2.11.1-canary.0
@vercel/client@10.1.1-canary.0
@vercel/frameworks@0.4.1-canary.0
@vercel/routing-utils@1.11.2-canary.0
2021-05-26 13:44:39 -05:00
JJ Kasper
e516c1f49f
Ensure beforeFiles rewrites come after redirects when continuing ( #6289 )
2021-05-26 12:50:51 -05:00
JJ Kasper
01f53f36fc
[routing-utils] Ensure header key value casing is normalized ( #6284 )
...
This ensures we normalize header `key` values in `has` items to be lower-case as the proxy currently only matches against the lower-case variant. Updated superstatic tests to ensure the header key is normalized correctly.
### Related Issues
[related thread](https://vercel.slack.com/archives/C01N3RWTE5V/p1621937306006400 )
### 📋 Checklist
<!--
Please keep your PR as a Draft until the checklist is complete
-->
#### 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
- [ ] This PR has a concise title and thorough description useful to a reviewer
- [ ] Issue from task tracker has a link to this PR
2021-05-25 22:46:28 +00:00
Nathan Rajlich
f2d396caae
Publish Stable
...
- @vercel/build-utils@2.11 .0
- vercel@23.0.0
- @vercel/client@10.1.0
- @vercel/frameworks@0.4.0
- @vercel/node@1.11 .0
- @vercel/python@2.0.3
- @vercel/routing-utils@1.11 .1
@vercel/client@10.1.0
vercel@23.0.0
@vercel/build-utils@2.11.0
@vercel/frameworks@0.4.0
@vercel/node@1.11.0
@vercel/python@2.0.3
@vercel/routing-utils@1.11.1
2021-05-25 14:56:11 -07:00
Matheus Fernandes
001f2f60b8
Use proper Apache License format ( #6189 )
...
The existing LICENSE file was missing the Appendix, and also
used weird formatting. Now it's an exact copy of the original:
https://www.apache.org/licenses/LICENSE-2.0.txt .
2021-05-25 13:27:32 -07:00
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
@vercel/python@2.0.3-canary.0
vercel@22.0.2-canary.7
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
@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
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
Steven
00a97b7ae2
[node] Bump nft to 0.12.2 ( #6274 )
2021-05-24 13:34:28 -04:00