Compare commits

..

9 Commits

Author SHA1 Message Date
Nathan Rajlich
1bb7b37e0c Publish Stable
- vercel@28.15.7
 - @vercel/next@3.4.6
 - @vercel/remix@1.3.2
2023-02-15 23:41:25 -08:00
Nathan Rajlich
ca81c133b9 [remix] Fix root-level splat path (#9457)
Fixes https://github.com/orgs/vercel/discussions/1545.
2023-02-16 07:32:53 +00:00
Luba Kravchenko
f332b7856c Adds framework fields to build outputs (#9449)
Adds framework to Lambda and edge build outputs so that we can distinguish which framework they originated from when certain features should be applied to specific frameworks.

This PR adds framework to the outputs. Part 1: https://github.com/vercel/vercel/pull/9448

ticket: ED-131

x-ref: [slack channel](https://vercel.slack.com/archives/C042LHPJ1NX)
2023-02-15 22:56:29 +00:00
Sean Massa
9308a0fda5 Publish Stable
- @vercel/build-utils@6.2.4
 - vercel@28.15.6
 - @vercel/client@12.3.10
 - @vercel/frameworks@1.3.1
 - @vercel/fs-detectors@3.7.13
 - @vercel/gatsby-plugin-vercel-builder@1.1.6
 - @vercel/go@2.3.6
 - @vercel/hydrogen@0.0.52
 - @vercel/next@3.4.5
 - @vercel/node@2.9.5
 - @vercel/python@3.1.48
 - @vercel/redwood@1.1.4
 - @vercel/remix@1.3.1
 - @vercel/routing-utils@2.1.9
 - @vercel/ruby@1.3.64
 - @vercel/static-build@1.3.8
2023-02-15 12:26:53 -06:00
Steven
c2f8a5990a [tests] Fix gh actions cron job to update next/turbo (#9453)
This token should run the tests automatically
2023-02-15 12:11:54 -05:00
JJ Kasper
fc2f0b919b [next] Ensure app routes are handled (#9450) 2023-02-15 10:00:24 +01:00
Luba Kravchenko
a606ab8678 [build-utils] add framework slug and version to build output (#9448)
Adds framework to Lambda and edge build outputs so that we can distinguish which framework they originated from when certain features should be applied to specific frameworks.

Breaking up https://github.com/vercel/vercel/pull/9447 into two parts:
This PR introduces the frameworks type. Part 2: https://github.com/vercel/vercel/pull/9449

ticket: ED-131

x-ref: [slack channel](https://vercel.slack.com/archives/C042LHPJ1NX)
2023-02-15 03:14:21 +00:00
Chris Barber
13062cd47d [routing-utils] Added middlewareRawSrc to RouteWithSrc type (#9443)
This PR adds a new `middlewareRawSrc` prop to the `RouteWithSrc` type which is used for edge middleware routes. The existing `middlewarePath` prop contains a regex of all the middleware `matcher` routes which isn't very user friendly on the front end.

By preserving the original middleware matchers, the front end can display the list in a much more presentable fashion.

This feature blocks 3 other PRs.
1. https://github.com/vercel/api/pull/17231 depends on `Route` type for schema validation and translates `middlewareRawSrc` to `rawMatchers` for front end consumption
2. https://github.com/vercel/vercel/pull/9435 sets the `middlewareRawSrc` in the BOA output
3. https://github.com/vercel/front/pull/19606 displays the `rawMatchers` under the Edge Middleware section for a deployment

Linear: https://linear.app/vercel/issue/VCCLI-411/display-uncompressed-edge-middleware-matcher-show-the-list-of-matches
2023-02-14 23:45:03 +00:00
Chris Barber
bb9faaed99 [test] Use execFileSync() to get processes (#9445)
`spawnSync()` does not throw if the command can't be found in the PATH or if an error occurs. If we use `execFileSync()`, it will throw and that was likely the desired behavior in this test utility function.
2023-02-14 22:59:52 +00:00
32 changed files with 180 additions and 106 deletions

View File

@@ -16,10 +16,13 @@ jobs:
# 0 means fetch all commits so we can commit and push in the script below
with:
fetch-depth: 0
- name: Enable corepack
run: corepack enable pnpm
- name: Create Pull Request
uses: actions/github-script@v6
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
# See https://github.com/actions/github-script#run-a-separate-file-with-an-async-function
with:
script: |

View File

@@ -16,12 +16,13 @@ jobs:
# 0 means fetch all commits so we can commit and push in the script below
with:
fetch-depth: 0
- name: install pnpm@7.26.0
run: npm i -g pnpm@7.26.0
- name: Enable corepack
run: corepack enable pnpm
- name: Create Pull Request
uses: actions/github-script@v6
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
# See https://github.com/actions/github-script#run-a-separate-file-with-an-async-function
with:
script: |

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/build-utils",
"version": "6.2.3",
"version": "6.2.4",
"license": "MIT",
"main": "./dist/index.js",
"types": "./dist/index.d.js",

View File

@@ -1,4 +1,4 @@
import type { Cron, Files } from './types';
import type { Cron, Files, FunctionFramework } from './types';
/**
* An Edge Functions output
@@ -44,6 +44,9 @@ export class EdgeFunction {
/** Cronjob definition for the edge function */
cron?: Cron;
/** The framework */
framework?: FunctionFramework;
constructor(params: Omit<EdgeFunction, 'type'>) {
this.type = 'EdgeFunction';
this.name = params.name;
@@ -54,5 +57,6 @@ export class EdgeFunction {
this.assets = params.assets;
this.regions = params.regions;
this.cron = params.cron;
this.framework = params.framework;
}
}

View File

@@ -5,7 +5,7 @@ import minimatch from 'minimatch';
import { readlink } from 'fs-extra';
import { isSymbolicLink, isDirectory } from './fs/download';
import streamToBuffer from './fs/stream-to-buffer';
import type { Files, Config, Cron } from './types';
import type { Files, Config, Cron, FunctionFramework } from './types';
interface Environment {
[key: string]: string;
@@ -26,6 +26,7 @@ export interface LambdaOptionsBase {
experimentalResponseStreaming?: boolean;
operationType?: string;
cron?: Cron;
framework?: FunctionFramework;
}
export interface LambdaOptionsWithFiles extends LambdaOptionsBase {
@@ -71,6 +72,7 @@ export class Lambda {
supportsMultiPayloads?: boolean;
supportsWrapper?: boolean;
experimentalResponseStreaming?: boolean;
framework?: FunctionFramework;
constructor(opts: LambdaOptions) {
const {
@@ -86,6 +88,7 @@ export class Lambda {
supportsWrapper,
experimentalResponseStreaming,
operationType,
framework,
} = opts;
if ('files' in opts) {
assert(typeof opts.files === 'object', '"files" must be an object');
@@ -139,6 +142,20 @@ export class Lambda {
assert(typeof cron === 'string', '"cron" is not a string');
}
if (framework !== undefined) {
assert(typeof framework === 'object', '"framework" is not an object');
assert(
typeof framework.slug === 'string',
'"framework.slug" is not a string'
);
if (framework.version !== undefined) {
assert(
typeof framework.version === 'string',
'"framework.version" is not a string'
);
}
}
this.type = 'Lambda';
this.operationType = operationType;
this.files = 'files' in opts ? opts.files : undefined;
@@ -154,6 +171,7 @@ export class Lambda {
this.supportsMultiPayloads = supportsMultiPayloads;
this.supportsWrapper = supportsWrapper;
this.experimentalResponseStreaming = experimentalResponseStreaming;
this.framework = framework;
}
async createZip(): Promise<Buffer> {

View File

@@ -412,6 +412,11 @@ export interface BuildResultBuildOutput {
}
export type Cron = string;
/** The framework which created the function */
export interface FunctionFramework {
slug: string;
version?: string;
}
/**
* When a Builder implements `version: 2`, the `build()` function is expected

View File

@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "28.15.5",
"version": "28.15.7",
"preferGlobal": true,
"license": "Apache-2.0",
"description": "The command-line interface for Vercel",
@@ -41,16 +41,16 @@
"node": ">= 14"
},
"dependencies": {
"@vercel/build-utils": "6.2.3",
"@vercel/go": "2.3.5",
"@vercel/hydrogen": "0.0.51",
"@vercel/next": "3.4.4",
"@vercel/node": "2.9.4",
"@vercel/python": "3.1.47",
"@vercel/redwood": "1.1.3",
"@vercel/remix": "1.3.0",
"@vercel/ruby": "1.3.63",
"@vercel/static-build": "1.3.7"
"@vercel/build-utils": "6.2.4",
"@vercel/go": "2.3.6",
"@vercel/hydrogen": "0.0.52",
"@vercel/next": "3.4.6",
"@vercel/node": "2.9.5",
"@vercel/python": "3.1.48",
"@vercel/redwood": "1.1.4",
"@vercel/remix": "1.3.2",
"@vercel/ruby": "1.3.64",
"@vercel/static-build": "1.3.8"
},
"devDependencies": {
"@alex_neo/jest-expect-message": "1.0.5",
@@ -93,13 +93,13 @@
"@types/which": "1.3.2",
"@types/write-json-file": "2.2.1",
"@types/yauzl-promise": "2.1.0",
"@vercel/client": "12.3.9",
"@vercel/client": "12.3.10",
"@vercel/error-utils": "1.0.8",
"@vercel/frameworks": "1.3.0",
"@vercel/fs-detectors": "3.7.12",
"@vercel/frameworks": "1.3.1",
"@vercel/fs-detectors": "3.7.13",
"@vercel/fun": "1.0.4",
"@vercel/ncc": "0.24.0",
"@vercel/routing-utils": "2.1.8",
"@vercel/routing-utils": "2.1.9",
"@zeit/source-map-support": "0.6.2",
"ajv": "6.12.2",
"alpha-sort": "2.0.1",

View File

@@ -10,7 +10,7 @@ const { version: cliVersion } = require('../../package.json');
const {
fetchCachedToken,
} = require('../../../../test/lib/deployment/now-deploy');
const { spawnSync } = require('child_process');
const { spawnSync, execFileSync } = require('child_process');
jest.setTimeout(6 * 60 * 1000);
@@ -522,7 +522,7 @@ async function ps(parentPid, pids = {}) {
: ['ps', '-o', 'pid', '--no-headers', '--ppid', parentPid];
try {
const { stdout: buf } = spawnSync(cmd[0], cmd.slice(1), {
const buf = execFileSync(cmd[0], cmd.slice(1), {
encoding: 'utf-8',
});
for (let pid of buf.match(/\d+/g)) {

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/client",
"version": "12.3.9",
"version": "12.3.10",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://vercel.com",
@@ -43,8 +43,8 @@
]
},
"dependencies": {
"@vercel/build-utils": "6.2.3",
"@vercel/routing-utils": "2.1.8",
"@vercel/build-utils": "6.2.4",
"@vercel/routing-utils": "2.1.9",
"@zeit/fetch": "5.2.0",
"async-retry": "1.2.3",
"async-sema": "3.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/frameworks",
"version": "1.3.0",
"version": "1.3.1",
"main": "./dist/frameworks.js",
"types": "./dist/frameworks.d.ts",
"files": [
@@ -21,7 +21,7 @@
"@types/js-yaml": "3.12.1",
"@types/node": "14.18.33",
"@types/node-fetch": "2.5.8",
"@vercel/routing-utils": "2.1.8",
"@vercel/routing-utils": "2.1.9",
"ajv": "6.12.2",
"typescript": "4.3.4"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/fs-detectors",
"version": "3.7.12",
"version": "3.7.13",
"description": "Vercel filesystem detectors",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -20,8 +20,8 @@
},
"dependencies": {
"@vercel/error-utils": "1.0.8",
"@vercel/frameworks": "1.3.0",
"@vercel/routing-utils": "2.1.8",
"@vercel/frameworks": "1.3.1",
"@vercel/routing-utils": "2.1.9",
"glob": "8.0.3",
"js-yaml": "4.1.0",
"json5": "2.2.2",
@@ -35,7 +35,7 @@
"@types/minimatch": "3.0.5",
"@types/node": "14.18.33",
"@types/semver": "7.3.10",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"typescript": "4.3.4"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/gatsby-plugin-vercel-builder",
"version": "1.1.5",
"version": "1.1.6",
"main": "dist/index.js",
"files": [
"dist",
@@ -14,9 +14,9 @@
"build:src": "tsc -p tsconfig.src.json"
},
"dependencies": {
"@vercel/build-utils": "6.2.3",
"@vercel/node": "2.9.4",
"@vercel/routing-utils": "2.1.8",
"@vercel/build-utils": "6.2.4",
"@vercel/node": "2.9.5",
"@vercel/routing-utils": "2.1.9",
"ajv": "8.12.0",
"esbuild": "0.14.47",
"etag": "1.8.1",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/go",
"version": "2.3.5",
"version": "2.3.6",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/go",
@@ -36,7 +36,7 @@
"@types/node": "14.18.33",
"@types/node-fetch": "^2.3.0",
"@types/tar": "^4.0.0",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"@vercel/ncc": "0.24.0",
"async-retry": "1.3.1",
"execa": "^1.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/hydrogen",
"version": "0.0.51",
"version": "0.0.52",
"license": "MIT",
"main": "./dist/index.js",
"homepage": "https://vercel.com/docs",
@@ -21,7 +21,7 @@
"devDependencies": {
"@types/jest": "27.5.1",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"@vercel/static-config": "2.0.12",
"execa": "3.2.0",
"fs-extra": "11.1.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/next",
"version": "3.4.4",
"version": "3.4.6",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -45,9 +45,9 @@
"@types/semver": "6.0.0",
"@types/text-table": "0.2.1",
"@types/webpack-sources": "3.2.0",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"@vercel/nft": "0.22.5",
"@vercel/routing-utils": "2.1.8",
"@vercel/routing-utils": "2.1.9",
"async-sema": "3.0.1",
"buffer-crc32": "0.2.13",
"bytes": "3.1.2",

View File

@@ -1094,6 +1094,10 @@ export const build: BuildV2 = async ({
shouldAddHelpers: false,
shouldAddSourcemapSupport: false,
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD,
framework: {
slug: 'nextjs',
version: nextVersion,
},
});
debug(`Created serverless function for page: "${page}"`);
})
@@ -1816,6 +1820,7 @@ export const build: BuildV2 = async ({
'___next_launcher.cjs'
),
runtime: nodeVersion.runtime,
nextVersion,
...lambdaOptions,
});
} else {
@@ -1835,6 +1840,7 @@ export const build: BuildV2 = async ({
'___next_launcher.cjs'
),
runtime: nodeVersion.runtime,
nextVersion,
...lambdaOptions,
});
}
@@ -2046,6 +2052,7 @@ export const build: BuildV2 = async ({
'___next_launcher.cjs'
),
runtime: nodeVersion.runtime,
nextVersion,
});
}
)
@@ -2644,7 +2651,10 @@ async function getServerlessPages(params: {
const [pages, appPaths, middlewareManifest] = await Promise.all([
glob('**/!(_middleware).js', params.pagesDir),
params.appPathRoutesManifest
? glob('**/page.js', path.join(params.pagesDir, '../app'))
? Promise.all([
glob('**/page.js', path.join(params.pagesDir, '../app')),
glob('**/route.js', path.join(params.pagesDir, '../app')),
]).then(items => Object.assign(...items))
: Promise.resolve({}),
getMiddlewareManifest(params.entryPath, params.outputDirectory),
]);

View File

@@ -874,6 +874,7 @@ export async function serverBuild({
maxDuration: group.maxDuration,
isStreaming: group.isStreaming,
cron: group.cron,
nextVersion,
});
for (const page of group.pages) {
@@ -974,6 +975,7 @@ export async function serverBuild({
routesManifest,
isCorrectMiddlewareOrder,
prerenderBypassToken: prerenderManifest.bypassToken || '',
nextVersion,
});
const isNextDataServerResolving =

View File

@@ -775,6 +775,7 @@ export async function createPseudoLayer(files: {
interface CreateLambdaFromPseudoLayersOptions extends LambdaOptionsWithFiles {
layers: PseudoLayer[];
isStreaming?: boolean;
nextVersion?: string;
}
// measured with 1, 2, 5, 10, and `os.cpus().length || 5`
@@ -785,6 +786,7 @@ export async function createLambdaFromPseudoLayers({
files: baseFiles,
layers,
isStreaming,
nextVersion,
...lambdaOptions
}: CreateLambdaFromPseudoLayersOptions) {
await createLambdaSema.acquire();
@@ -828,6 +830,10 @@ export async function createLambdaFromPseudoLayers({
shouldAddHelpers: false,
shouldAddSourcemapSupport: false,
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD,
framework: {
slug: 'nextjs',
version: nextVersion,
},
});
}
@@ -2318,6 +2324,7 @@ export async function getMiddlewareBundle({
routesManifest,
isCorrectMiddlewareOrder,
prerenderBypassToken,
nextVersion,
}: {
config: Config;
entryPath: string;
@@ -2325,6 +2332,7 @@ export async function getMiddlewareBundle({
prerenderBypassToken: string;
routesManifest: RoutesManifest;
isCorrectMiddlewareOrder: boolean;
nextVersion: string;
}): Promise<{
staticRoutes: Route[];
dynamicRouteMap: Map<string, RouteWithSrc>;
@@ -2462,6 +2470,10 @@ export async function getMiddlewareBundle({
path: `assets/${name}`,
};
}),
framework: {
slug: 'nextjs',
version: nextVersion,
},
});
})(),
routeMatchers: getRouteMatchers(edgeFunction, routesManifest),

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/node",
"version": "2.9.4",
"version": "2.9.5",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -31,7 +31,7 @@
"dependencies": {
"@edge-runtime/vm": "2.0.0",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"@vercel/node-bridge": "3.1.11",
"@vercel/static-config": "2.0.12",
"edge-runtime": "2.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/python",
"version": "3.1.47",
"version": "3.1.48",
"main": "./dist/index.js",
"license": "MIT",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -23,7 +23,7 @@
"@types/execa": "^0.9.0",
"@types/jest": "27.4.1",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"@vercel/ncc": "0.24.0",
"execa": "^1.0.0",
"typescript": "4.3.4"

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/redwood",
"version": "1.1.3",
"version": "1.1.4",
"main": "./dist/index.js",
"license": "MIT",
"homepage": "https://vercel.com/docs",
@@ -20,14 +20,14 @@
},
"dependencies": {
"@vercel/nft": "0.22.5",
"@vercel/routing-utils": "2.1.8",
"@vercel/routing-utils": "2.1.9",
"semver": "6.1.1"
},
"devDependencies": {
"@types/aws-lambda": "8.10.19",
"@types/node": "14.18.33",
"@types/semver": "6.0.0",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"execa": "3.2.0",
"fs-extra": "11.1.0",
"typescript": "4.3.4"

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/remix",
"version": "1.3.0",
"version": "1.3.2",
"license": "MIT",
"main": "./dist/index.js",
"homepage": "https://vercel.com/docs",
@@ -29,7 +29,7 @@
"devDependencies": {
"@types/jest": "27.5.1",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"typescript": "4.9.4"
}
}

View File

@@ -266,7 +266,9 @@ module.exports = config;`;
// If this is a dynamic route then add a Vercel route
const keys: Key[] = [];
// Replace "/*" at the end to handle "splat routes"
const rePath = `/${path.replace(/\/\*$/, '/:params+')}`;
const splatPath = '/:params+';
const rePath =
path === '*' ? splatPath : `/${path.replace(/\/\*$/, splatPath)}`;
const re = pathToRegexp(rePath, keys);
if (keys.length > 0) {
routes.push({

View File

@@ -0,0 +1,6 @@
import { useParams } from "@remix-run/react";
export default function CatchAll() {
const params = useParams();
return <div>{params['*']}</div>;
}

View File

@@ -15,7 +15,7 @@
{ "path": "/b", "mustContain": "B page" },
{ "path": "/nested", "mustContain": "Nested index page" },
{ "path": "/nested/another", "mustContain": "Nested another page" },
{ "path": "/nested/index", "mustContain": "Not Found" },
{ "path": "/asdf", "mustContain": "Not Found" }
{ "path": "/nested/index", "mustContain": "<div>nested/index</div>" },
{ "path": "/asdf", "mustContain": "<div>asdf</div>" }
]
}

View File

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

View File

@@ -43,6 +43,10 @@ export type RouteWithSrc = {
* Overrides a `middleware` definition.
*/
middlewarePath?: string;
/**
* The original middleware matchers.
*/
middlewareRawSrc?: string[];
/**
* A middleware index in the `middleware` key under the build result
*/

View File

@@ -1,7 +1,7 @@
{
"name": "@vercel/ruby",
"author": "Nathan Cahill <nathan@nathancahill.com>",
"version": "1.3.63",
"version": "1.3.64",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
@@ -22,7 +22,7 @@
"devDependencies": {
"@types/fs-extra": "8.0.0",
"@types/semver": "6.0.0",
"@vercel/build-utils": "6.2.3",
"@vercel/build-utils": "6.2.4",
"@vercel/ncc": "0.24.0",
"execa": "2.0.4",
"fs-extra": "^7.0.1",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/static-build",
"version": "1.3.7",
"version": "1.3.8",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/build-step",
@@ -30,7 +30,7 @@
},
"dependencies": {
"@vercel/gatsby-plugin-vercel-analytics": "1.0.7",
"@vercel/gatsby-plugin-vercel-builder": "1.1.5"
"@vercel/gatsby-plugin-vercel-builder": "1.1.6"
},
"devDependencies": {
"@types/aws-lambda": "8.10.64",
@@ -42,11 +42,11 @@
"@types/node-fetch": "2.5.4",
"@types/promise-timeout": "1.3.0",
"@types/semver": "7.3.13",
"@vercel/build-utils": "6.2.3",
"@vercel/frameworks": "1.3.0",
"@vercel/fs-detectors": "3.7.12",
"@vercel/build-utils": "6.2.4",
"@vercel/frameworks": "1.3.1",
"@vercel/fs-detectors": "3.7.13",
"@vercel/ncc": "0.24.0",
"@vercel/routing-utils": "2.1.8",
"@vercel/routing-utils": "2.1.9",
"@vercel/static-config": "2.0.12",
"execa": "3.2.0",
"fs-extra": "10.0.0",

85
pnpm-lock.yaml generated
View File

@@ -90,7 +90,7 @@ importers:
'@vercel/frameworks': 1.3.0
devDependencies:
'@types/jest': 27.4.1
'@vercel/frameworks': link:../packages/frameworks
'@vercel/frameworks': 1.3.0
packages/build-utils:
specifiers:
@@ -204,23 +204,23 @@ importers:
'@types/which': 1.3.2
'@types/write-json-file': 2.2.1
'@types/yauzl-promise': 2.1.0
'@vercel/build-utils': 6.2.3
'@vercel/client': 12.3.9
'@vercel/build-utils': 6.2.4
'@vercel/client': 12.3.10
'@vercel/error-utils': 1.0.8
'@vercel/frameworks': 1.3.0
'@vercel/fs-detectors': 3.7.12
'@vercel/frameworks': 1.3.1
'@vercel/fs-detectors': 3.7.13
'@vercel/fun': 1.0.4
'@vercel/go': 2.3.5
'@vercel/hydrogen': 0.0.51
'@vercel/go': 2.3.6
'@vercel/hydrogen': 0.0.52
'@vercel/ncc': 0.24.0
'@vercel/next': 3.4.4
'@vercel/node': 2.9.4
'@vercel/python': 3.1.47
'@vercel/redwood': 1.1.3
'@vercel/remix': 1.3.0
'@vercel/routing-utils': 2.1.8
'@vercel/ruby': 1.3.63
'@vercel/static-build': 1.3.7
'@vercel/next': 3.4.6
'@vercel/node': 2.9.5
'@vercel/python': 3.1.48
'@vercel/redwood': 1.1.4
'@vercel/remix': 1.3.2
'@vercel/routing-utils': 2.1.9
'@vercel/ruby': 1.3.64
'@vercel/static-build': 1.3.8
'@zeit/source-map-support': 0.6.2
ajv: 6.12.2
alpha-sort: 2.0.1
@@ -446,8 +446,8 @@ importers:
'@types/node-fetch': 2.5.4
'@types/recursive-readdir': 2.2.0
'@types/tar-fs': 1.16.1
'@vercel/build-utils': 6.2.3
'@vercel/routing-utils': 2.1.8
'@vercel/build-utils': 6.2.4
'@vercel/routing-utils': 2.1.9
'@zeit/fetch': 5.2.0
async-retry: 1.2.3
async-sema: 3.0.0
@@ -527,7 +527,7 @@ importers:
'@types/js-yaml': 3.12.1
'@types/node': 14.18.33
'@types/node-fetch': 2.5.8
'@vercel/routing-utils': 2.1.8
'@vercel/routing-utils': 2.1.9
ajv: 6.12.2
js-yaml: 3.13.1
typescript: 4.3.4
@@ -551,10 +551,10 @@ importers:
'@types/minimatch': 3.0.5
'@types/node': 14.18.33
'@types/semver': 7.3.10
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/error-utils': 1.0.8
'@vercel/frameworks': 1.3.0
'@vercel/routing-utils': 2.1.8
'@vercel/frameworks': 1.3.1
'@vercel/routing-utils': 2.1.9
glob: 8.0.3
js-yaml: 4.1.0
json5: 2.2.2
@@ -599,9 +599,9 @@ importers:
'@types/fs-extra': 11.0.1
'@types/node': 14.18.33
'@types/react': 18.0.26
'@vercel/build-utils': 6.2.3
'@vercel/node': 2.9.4
'@vercel/routing-utils': 2.1.8
'@vercel/build-utils': 6.2.4
'@vercel/node': 2.9.5
'@vercel/routing-utils': 2.1.9
ajv: 8.12.0
esbuild: 0.14.47
etag: 1.8.1
@@ -634,7 +634,7 @@ importers:
'@types/node': 14.18.33
'@types/node-fetch': ^2.3.0
'@types/tar': ^4.0.0
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/ncc': 0.24.0
async-retry: 1.3.1
execa: ^1.0.0
@@ -666,7 +666,7 @@ importers:
specifiers:
'@types/jest': 27.5.1
'@types/node': 14.18.33
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/static-config': 2.0.12
execa: 3.2.0
fs-extra: 11.1.0
@@ -697,9 +697,9 @@ importers:
'@types/semver': 6.0.0
'@types/text-table': 0.2.1
'@types/webpack-sources': 3.2.0
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/nft': 0.22.5
'@vercel/routing-utils': 2.1.8
'@vercel/routing-utils': 2.1.9
async-sema: 3.0.1
buffer-crc32: 0.2.13
bytes: 3.1.2
@@ -776,7 +776,7 @@ importers:
'@types/node': 14.18.33
'@types/node-fetch': ^2.6.1
'@types/test-listen': 1.1.0
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/ncc': 0.24.0
'@vercel/nft': 0.22.5
'@vercel/node-bridge': 3.1.11
@@ -860,7 +860,7 @@ importers:
'@types/execa': ^0.9.0
'@types/jest': 27.4.1
'@types/node': 14.18.33
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/ncc': 0.24.0
execa: ^1.0.0
typescript: 4.3.4
@@ -878,9 +878,9 @@ importers:
'@types/aws-lambda': 8.10.19
'@types/node': 14.18.33
'@types/semver': 6.0.0
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/nft': 0.22.5
'@vercel/routing-utils': 2.1.8
'@vercel/routing-utils': 2.1.9
execa: 3.2.0
fs-extra: 11.1.0
semver: 6.1.1
@@ -903,7 +903,7 @@ importers:
'@remix-run/dev': 1.12.0
'@types/jest': 27.5.1
'@types/node': 14.18.33
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/nft': 0.22.5
'@vercel/static-config': 2.0.12
path-to-regexp: 6.2.1
@@ -960,7 +960,7 @@ importers:
specifiers:
'@types/fs-extra': 8.0.0
'@types/semver': 6.0.0
'@vercel/build-utils': 6.2.3
'@vercel/build-utils': 6.2.4
'@vercel/ncc': 0.24.0
execa: 2.0.4
fs-extra: ^7.0.1
@@ -987,13 +987,13 @@ importers:
'@types/node-fetch': 2.5.4
'@types/promise-timeout': 1.3.0
'@types/semver': 7.3.13
'@vercel/build-utils': 6.2.3
'@vercel/frameworks': 1.3.0
'@vercel/fs-detectors': 3.7.12
'@vercel/build-utils': 6.2.4
'@vercel/frameworks': 1.3.1
'@vercel/fs-detectors': 3.7.13
'@vercel/gatsby-plugin-vercel-analytics': 1.0.7
'@vercel/gatsby-plugin-vercel-builder': 1.1.5
'@vercel/gatsby-plugin-vercel-builder': 1.1.6
'@vercel/ncc': 0.24.0
'@vercel/routing-utils': 2.1.8
'@vercel/routing-utils': 2.1.9
'@vercel/static-config': 2.0.12
execa: 3.2.0
fs-extra: 10.0.0
@@ -7148,6 +7148,13 @@ packages:
resolution: {integrity: sha512-17kVyLq3ePTKOkveHxXuIJZtGYs+cSoev7BlP+Lf4916qfDhk/HBjvlYDe8egrea7LNPHKwSZJK/bzZC+Q6AwQ==}
dev: false
/@vercel/frameworks/1.3.0:
resolution: {integrity: sha512-guXALpQLhL0bCvIjUhHbYFyS8XusZQ6RtjqCTq0eJM6p8QLun4DI1TToqbIah/o7DY3s+RAyC2OUyOAY91qH4w==}
dependencies:
'@iarna/toml': 2.2.3
js-yaml: 3.13.1
dev: true
/@vercel/fun/1.0.4:
resolution: {integrity: sha512-zLY2d1U9JJm3CorfEcuZ7307fo77/Z/mU12LDJpSGtdpjzxgpxMlU5NPq8whz8hIZhIMkBJv0DqZ5bgenktQnw==}
engines: {node: '>= 10'}

View File

@@ -58,8 +58,8 @@ module.exports = async ({ github, context }) => {
pull_number: pr.data.number,
reviewers: ['ijjk', 'styfle'],
});
github.rest.issues.addLabels({
await github.rest.issues.addLabels({
owner,
repo,
issue_number: pr.data.number,

View File

@@ -54,7 +54,7 @@ module.exports = async ({ github, context }) => {
body: `This auto-generated PR updates Turbo to version ${newVersion}`,
});
github.rest.issues.addLabels({
await github.rest.issues.addLabels({
owner,
repo,
issue_number: pr.data.number,