Compare commits

...

8 Commits

Author SHA1 Message Date
Nathan Rajlich
4c0055eaf0 Publish Stable
- vercel@21.3.2
 - @vercel/python@2.0.0
2021-03-02 11:03:53 -08:00
Nathan Rajlich
910a905192 Remove @vercel/python stable publish blacklist (#5920) 2021-03-02 11:01:02 -08:00
Steven
156a9be06e Publish Stable
- vercel@21.3.1
 - @vercel/go@1.2.1
2021-02-26 16:21:51 -05:00
Steven
e2132ee36d Publish Canary
- vercel@21.3.1-canary.0
 - @vercel/go@1.2.1-canary.0
2021-02-26 15:22:59 -05:00
Steven
4572230c1d [go] Fix analyze ignore list (#5906)
A regression was introduced in #5873 that caused the analyze step to parse Go's internal source files (eg `golang/test/bombad.go`) instead of only parsing the user's source code (eg `api/users.go`).

This resulted in the error:

```
Failed to parse AST for "api/users.go"
Error: Command failed: /vercel/1ab928d537d26157/.build-utils/.builder/node_modules/@vercel/go/dist/analyze -modpath=/vercel/workpath1 /vercel/workpath1/api/users.go
2021/02/26 14:26:42 Could not parse Go file "/vercel/workpath1/.vercel/cache/golang/test/bombad.go"
```
2021-02-26 20:15:34 +00:00
Steven
8cfac4cf86 Publish Stable
- @vercel/frameworks@0.3.0
 - @vercel/build-utils@2.10.0
 - vercel@21.3.0
 - @vercel/client@9.0.7
 - @vercel/go@1.2.0
 - @vercel/routing-utils@1.10.0
2021-02-25 19:53:07 -05:00
Steven
4f20783000 Publish Canary
- vercel@21.2.4-canary.14
2021-02-25 17:47:42 -05:00
Mark Glagola
968b7c3fb5 [cli] Use inspectorUrl from api (#5904)
Uses inspector url from api rather than generating one locally.

### 📋 Checklist

#### Tests

- [ ] The code changed/added as part of this PR has been covered with tests
- [ ] 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-02-25 22:29:19 +00:00
11 changed files with 24 additions and 42 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/frameworks",
"version": "0.2.1-canary.7",
"version": "0.3.0",
"main": "./dist/frameworks.js",
"types": "./dist/frameworks.d.ts",
"files": [
@@ -20,7 +20,7 @@
"@types/js-yaml": "3.12.1",
"@types/node": "12.0.4",
"@types/node-fetch": "2.5.8",
"@vercel/routing-utils": "1.9.3-canary.0",
"@vercel/routing-utils": "1.10.0",
"ajv": "6.12.2",
"jest": "24.9.0",
"ts-jest": "24.1.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/build-utils",
"version": "2.9.1-canary.10",
"version": "2.10.0",
"license": "MIT",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
@@ -29,7 +29,7 @@
"@types/node-fetch": "^2.1.6",
"@types/semver": "6.0.0",
"@types/yazl": "^2.4.1",
"@vercel/frameworks": "0.2.1-canary.7",
"@vercel/frameworks": "0.3.0",
"@vercel/ncc": "0.24.0",
"aggregate-error": "3.0.1",
"async-retry": "1.2.3",

View File

@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "21.2.4-canary.13",
"version": "21.3.2",
"preferGlobal": true,
"license": "Apache-2.0",
"description": "The command-line interface for Vercel",
@@ -61,10 +61,10 @@
"node": ">= 10"
},
"dependencies": {
"@vercel/build-utils": "2.9.1-canary.10",
"@vercel/go": "1.1.9-canary.1",
"@vercel/build-utils": "2.10.0",
"@vercel/go": "1.2.1",
"@vercel/node": "1.9.1-canary.0",
"@vercel/python": "1.2.5-canary.1",
"@vercel/python": "2.0.0",
"@vercel/ruby": "1.2.6-canary.0",
"update-notifier": "4.1.0"
},
@@ -100,7 +100,7 @@
"@types/universal-analytics": "0.4.2",
"@types/which": "1.3.2",
"@types/write-json-file": "2.2.1",
"@vercel/frameworks": "0.2.1-canary.7",
"@vercel/frameworks": "0.3.0",
"@vercel/ncc": "0.24.0",
"@zeit/fun": "0.11.2",
"@zeit/source-map-support": "0.6.2",

View File

@@ -17,29 +17,12 @@ import { prependEmoji, emoji } from '../emoji';
function printInspectUrl(
output: Output,
deploymentUrl: string,
deployStamp: () => string,
orgSlug: string
inspectorUrl: string,
deployStamp: () => string
) {
const url = deploymentUrl.replace('https://', '');
// example urls:
// lucim-fyulaijvg.now.sh
// s-66p6vb23x.n8.io (custom domain suffix)
const [sub, ...p] = url.split('.');
const apex = p.join('.');
const q = sub.split('-');
const deploymentShortId = q.pop();
const projectName = q.join('-');
const inspectUrl = `https://vercel.com/${orgSlug}/${projectName}/${deploymentShortId}${
apex !== 'now.sh' && apex !== 'vercel.app' ? `/${apex}` : ''
}`;
output.print(
prependEmoji(
`Inspect: ${chalk.bold(inspectUrl)} ${deployStamp()}`,
`Inspect: ${chalk.bold(inspectorUrl)} ${deployStamp()}`,
emoji('inspect')
) + `\n`
);
@@ -178,7 +161,7 @@ export default async function processDeployment({
output.stopSpinner();
printInspectUrl(output, event.payload.url, deployStamp, org.slug);
printInspectUrl(output, event.payload.inspectorUrl, deployStamp);
if (quiet) {
process.stdout.write(`https://${event.payload.url}`);

View File

@@ -1939,6 +1939,11 @@ test('create a production deployment', async t => {
/Setting target to production/gm,
formatOutput(targetCall)
);
t.regex(
targetCall.stderr,
/Inspect: https:\/\/vercel.com\//gm,
formatOutput(targetCall)
);
t.regex(targetCall.stdout, /https:\/\//gm);
const { host: targetHost } = new URL(targetCall.stdout);

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/client",
"version": "9.0.7-canary.10",
"version": "9.0.7",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://vercel.com",
@@ -37,7 +37,7 @@
]
},
"dependencies": {
"@vercel/build-utils": "2.9.1-canary.10",
"@vercel/build-utils": "2.10.0",
"@zeit/fetch": "5.2.0",
"async-retry": "1.2.3",
"async-sema": "3.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/go",
"version": "1.1.9-canary.1",
"version": "1.2.1",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/go",

View File

@@ -18,7 +18,7 @@ import (
var ignoredFoldersRegex []*regexp.Regexp
func init() {
ignoredFolders := []string{"vendor", "testdata", ".now"}
ignoredFolders := []string{"vendor", "testdata", ".now", ".vercel"}
// Build the regex that matches if a path contains the respective ignored folder
// The pattern will look like: (.*/)?vendor/.*, which matches every path that contains a vendor folder

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/python",
"version": "1.2.5-canary.1",
"version": "2.0.0",
"main": "./dist/index.js",
"license": "MIT",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/routing-utils",
"version": "1.9.3-canary.0",
"version": "1.10.0",
"description": "Vercel routing utilities",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",

6
utils/changelog.js vendored
View File

@@ -48,12 +48,6 @@ async function main() {
pkgs.add('vercel');
}
// NOTE: `@vercel/python` stable must not be released
// until March 1st, 2021 due to breaking behavior with
// the request URL (https://github.com/vercel/vercel/pull/5739).
// After that date this can be removed.
pkgs.delete('@vercel/python');
const pub = Array.from(pkgs).join(',');
console.log('To publish a stable release, execute the following:');