Compare commits

..

13 Commits

Author SHA1 Message Date
Vercel Release Bot
f7bdc6cc26 Version Packages (#9991)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-19 12:08:50 -05:00
Sean Massa
e94a153b2f add repo details for packages that are missing it (#9990) 2023-05-19 12:02:12 -05:00
Vercel Release Bot
74e639a772 Version Packages (#9978)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/build-utils@6.7.3

### Patch Changes

- Deprecate Node.js 14.x and 16.x with warning
([#9976](https://github.com/vercel/vercel/pull/9976))

## vercel@29.3.5

### Patch Changes

- Updated dependencies
\[[`2c950d47a`](2c950d47ae),
[`71b9f3a94`](71b9f3a94b),
[`f00b08a82`](f00b08a820)]:
    -   @vercel/static-build@1.3.31
    -   @vercel/build-utils@6.7.3
    -   @vercel/next@3.8.5
    -   @vercel/node@2.14.3
    -   @vercel/remix-builder@1.8.10

## @vercel/client@12.5.1

### Patch Changes

- Updated dependencies
\[[`71b9f3a94`](71b9f3a94b)]:
    -   @vercel/build-utils@6.7.3

## @vercel/gatsby-plugin-vercel-builder@1.3.4

### Patch Changes

- Updated dependencies
\[[`71b9f3a94`](71b9f3a94b)]:
    -   @vercel/build-utils@6.7.3
    -   @vercel/node@2.14.3

## @vercel/next@3.8.5

### Patch Changes

- [next] Ensure app functions are detected/separated properly
([#9989](https://github.com/vercel/vercel/pull/9989))

## @vercel/node@2.14.3

### Patch Changes

- Updated dependencies
\[[`71b9f3a94`](71b9f3a94b)]:
    -   @vercel/build-utils@6.7.3

## @vercel/remix-builder@1.8.10

### Patch Changes

- Updated dependencies
\[[`71b9f3a94`](71b9f3a94b)]:
    -   @vercel/build-utils@6.7.3

## @vercel/static-build@1.3.31

### Patch Changes

- ensure cleanup after gatsby plugin runs
([#9975](https://github.com/vercel/vercel/pull/9975))

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@1.3.4

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-19 09:34:26 -07:00
JJ Kasper
f00b08a820 [next] Ensure app functions are detected/separated properly (#9989)
Follow-up to https://github.com/vercel/vercel/pull/9974 this uses the `lambdaAppPaths` as the source of truth instead of the manifest which is more accurate for separating/detecting. Also adds additional test cases for new root and index app functions. 

x-ref: https://github.com/vercel/next.js/issues/49169
2023-05-19 16:22:44 +00:00
Chris Barber
6cdd38d130 [tests] Pin Next.js version in test fixtures (#9910)
Co-authored-by: Sean Massa <EndangeredMassa@gmail.com>
2023-05-19 09:06:08 -05:00
Sean Massa
2c950d47ae ensure cleanup after the gatsby plugin runs (#9975)
There is an issue where you can interrupt a gatsby project build and the temporary files are not cleaned up. If you try to build again, it will get stuck in an infinite loop.

This PR adds an exit hook to make sure the cleanup happens.
2023-05-18 19:42:08 +00:00
Sean Massa
71b9f3a94b Deprecate Node.js 14.x and 16.x with warning (#9976)
Node.js 14 and 16 are being deprecated. This PR will cause a warning when they are used today and an error after August 15.
2023-05-18 19:03:01 +00:00
Vercel Release Bot
91b7f6dcd9 Version Packages (#9973)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## vercel@29.3.4

### Patch Changes

- Updated dependencies
\[[`67e556bc8`](67e556bc80),
[`ba10fb4dd`](ba10fb4dd4)]:
    -   @vercel/remix-builder@1.8.9
    -   @vercel/next@3.8.4

## @vercel/next@3.8.4

### Patch Changes

- Update handling for react prebundled flag
([#9974](https://github.com/vercel/vercel/pull/9974))

## @vercel/remix-builder@1.8.9

### Patch Changes

- Upgrade `@remix-run/dev` fork to v1.16.1
([#9971](https://github.com/vercel/vercel/pull/9971))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 10:38:24 -07:00
JJ Kasper
ba10fb4dd4 [next] Update handling for react prebundled flag (#9974)
This ensures we properly set the prebundled react flag conditionally for
app and pages ensuring they are kept separate when bundling.

x-ref: https://github.com/vercel/next.js/issues/49169
2023-05-18 06:37:50 -07:00
Nathan Rajlich
18c1c45ce3 Add changeset for @remix-run/dev updater GH Action (#9972)
Adds a changeset file when the GH Action to update `@remix-run/dev`
creates a pull request.
2023-05-17 16:39:09 -07:00
Vercel Release Bot
67e556bc80 [remix] Upgrade @remix-run/dev to version 1.16.1 (#9971)
This auto-generated PR updates @remix-run/dev to version 1.16.1
2023-05-17 19:34:12 +00:00
Sean Massa
7235000181 fix release script (#9959)
The [previous PR](https://github.com/vercel/vercel/pull/9942) used `github.repos`, but I think this needs to be `github.rest.repos`.

- [Docs](https://octokit.github.io/rest.js/v19#repos)
- [Failed GH Action](https://github.com/vercel/vercel/actions/runs/4994578940/jobs/8945329301)
2023-05-17 18:26:30 +00:00
Sean Massa
5124d431ea fix deploy from local (#9969)
Local deployments of this repo would fail because this repo assumes that it's only ever deployed via git connection.
2023-05-17 17:45:28 +00:00
196 changed files with 1628 additions and 861 deletions

View File

@@ -32,4 +32,4 @@ packages/**/test/fixtures
packages/**/test/dev/fixtures
packages/**/test/build-fixtures
packages/**/test/cache-fixtures
packages/cli/src/util/dev/templates/*.ts

View File

@@ -21,6 +21,7 @@
"eslint-plugin-jest": "26.1.5",
"execa": "3.2.0",
"fs-extra": "11.1.0",
"glob": "10.2.3",
"husky": "7.0.4",
"jest": "29.5.0",
"json5": "2.1.1",

View File

@@ -0,0 +1,7 @@
# @vercel/build-utils
## 6.7.3
### Patch Changes
- Deprecate Node.js 14.x and 16.x with warning ([#9976](https://github.com/vercel/vercel/pull/9976))

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/build-utils",
"version": "6.7.2",
"version": "6.7.3",
"license": "Apache-2.0",
"main": "./dist/index.js",
"types": "./dist/index.d.js",

View File

@@ -6,8 +6,18 @@ import debug from '../debug';
function getOptions() {
const options = [
{ major: 18, range: '18.x', runtime: 'nodejs18.x' },
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
{
major: 16,
range: '16.x',
runtime: 'nodejs16.x',
discontinueDate: new Date('2023-08-15'),
},
{
major: 14,
range: '14.x',
runtime: 'nodejs14.x',
discontinueDate: new Date('2023-08-15'),
},
{
major: 12,
range: '12.x',

View File

@@ -1,6 +1,6 @@
{
"private": true,
"engines": {
"node": "16.14.0"
"node": "18.2.0"
}
}

View File

@@ -1,6 +1,6 @@
{
"private": true,
"engines": {
"node": "14.x"
"node": "18.x"
}
}

View File

@@ -140,20 +140,20 @@ it('should ignore node version in vercel dev getNodeVersion()', async () => {
it('should select project setting from config when no package.json is found and fallback undefined', async () => {
expect(
await getNodeVersion('/tmp', undefined, { nodeVersion: '16.x' }, {})
).toHaveProperty('range', '16.x');
await getNodeVersion('/tmp', undefined, { nodeVersion: '18.x' }, {})
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([]);
});
it('should select project setting from config when no package.json is found and fallback is null', async () => {
expect(
await getNodeVersion('/tmp', null as any, { nodeVersion: '16.x' }, {})
).toHaveProperty('range', '16.x');
await getNodeVersion('/tmp', null as any, { nodeVersion: '18.x' }, {})
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([]);
});
it('should select project setting from fallback when no package.json is found', async () => {
expect(await getNodeVersion('/tmp', '16.x')).toHaveProperty('range', '16.x');
expect(await getNodeVersion('/tmp', '18.x')).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([]);
});
@@ -165,9 +165,9 @@ it('should prefer package.json engines over project setting from config and warn
{ nodeVersion: '12.x' },
{}
)
).toHaveProperty('range', '14.x');
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([
'Warning: Due to "engines": { "node": "14.x" } in your `package.json` file, the Node.js Version defined in your Project Settings ("12.x") will not apply. Learn More: http://vercel.link/node-version',
'Warning: Due to "engines": { "node": "18.x" } in your `package.json` file, the Node.js Version defined in your Project Settings ("12.x") will not apply. Learn More: http://vercel.link/node-version',
]);
});
@@ -179,9 +179,9 @@ it('should warn when package.json engines is exact version', async () => {
{},
{}
)
).toHaveProperty('range', '16.x');
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([
'Warning: Detected "engines": { "node": "16.14.0" } in your `package.json` with major.minor.patch, but only major Node.js Version can be selected. Learn More: http://vercel.link/node-version',
'Warning: Detected "engines": { "node": "18.2.0" } in your `package.json` with major.minor.patch, but only major Node.js Version can be selected. Learn More: http://vercel.link/node-version',
]);
});
@@ -204,30 +204,30 @@ it('should not warn when package.json engines matches project setting from confi
await getNodeVersion(
path.join(__dirname, 'pkg-engine-node'),
undefined,
{ nodeVersion: '14' },
{ nodeVersion: '18' },
{}
)
).toHaveProperty('range', '14.x');
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([]);
expect(
await getNodeVersion(
path.join(__dirname, 'pkg-engine-node'),
undefined,
{ nodeVersion: '14.x' },
{ nodeVersion: '18.x' },
{}
)
).toHaveProperty('range', '14.x');
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([]);
expect(
await getNodeVersion(
path.join(__dirname, 'pkg-engine-node'),
undefined,
{ nodeVersion: '<15' },
{ nodeVersion: '<19' },
{}
)
).toHaveProperty('range', '14.x');
).toHaveProperty('range', '18.x');
expect(warningMessages).toStrictEqual([]);
});
@@ -238,7 +238,7 @@ it('should get latest node version', async () => {
it('should throw for discontinued versions', async () => {
// Mock a future date so that Node 8 and 10 become discontinued
const realDateNow = Date.now.bind(global.Date);
global.Date.now = () => new Date('2022-10-15').getTime();
global.Date.now = () => new Date('2023-10-01').getTime();
expect(getSupportedNodeVersion('8.10.x', false)).rejects.toThrow();
expect(getSupportedNodeVersion('8.10.x', true)).rejects.toThrow();
@@ -246,12 +246,18 @@ it('should throw for discontinued versions', async () => {
expect(getSupportedNodeVersion('10.x', true)).rejects.toThrow();
expect(getSupportedNodeVersion('12.x', false)).rejects.toThrow();
expect(getSupportedNodeVersion('12.x', true)).rejects.toThrow();
expect(getSupportedNodeVersion('14.x', false)).rejects.toThrow();
expect(getSupportedNodeVersion('14.x', true)).rejects.toThrow();
expect(getSupportedNodeVersion('16.x', false)).rejects.toThrow();
expect(getSupportedNodeVersion('16.x', true)).rejects.toThrow();
const discontinued = getDiscontinuedNodeVersions();
expect(discontinued.length).toBe(3);
expect(discontinued[0]).toHaveProperty('range', '12.x');
expect(discontinued[1]).toHaveProperty('range', '10.x');
expect(discontinued[2]).toHaveProperty('range', '8.10.x');
expect(discontinued.length).toBe(5);
expect(discontinued[0]).toHaveProperty('range', '16.x');
expect(discontinued[1]).toHaveProperty('range', '14.x');
expect(discontinued[2]).toHaveProperty('range', '12.x');
expect(discontinued[3]).toHaveProperty('range', '10.x');
expect(discontinued[4]).toHaveProperty('range', '8.10.x');
global.Date.now = realDateNow;
});
@@ -277,11 +283,31 @@ it('should warn for deprecated versions, soon to be discontinued', async () => {
'major',
12
);
expect(await getSupportedNodeVersion('14.x', false)).toHaveProperty(
'major',
14
);
expect(await getSupportedNodeVersion('14.x', true)).toHaveProperty(
'major',
14
);
expect(await getSupportedNodeVersion('16.x', false)).toHaveProperty(
'major',
16
);
expect(await getSupportedNodeVersion('16.x', true)).toHaveProperty(
'major',
16
);
expect(warningMessages).toStrictEqual([
'Error: Node.js version 10.x has reached End-of-Life. Deployments created on or after 2021-04-20 will fail to build. Please set "engines": { "node": "18.x" } in your `package.json` file to use Node.js 18.',
'Error: Node.js version 10.x has reached End-of-Life. Deployments created on or after 2021-04-20 will fail to build. Please set Node.js Version to 18.x in your Project Settings to use Node.js 18.',
'Error: Node.js version 12.x has reached End-of-Life. Deployments created on or after 2022-10-03 will fail to build. Please set "engines": { "node": "18.x" } in your `package.json` file to use Node.js 18.',
'Error: Node.js version 12.x has reached End-of-Life. Deployments created on or after 2022-10-03 will fail to build. Please set Node.js Version to 18.x in your Project Settings to use Node.js 18.',
'Error: Node.js version 14.x has reached End-of-Life. Deployments created on or after 2023-08-15 will fail to build. Please set "engines": { "node": "18.x" } in your `package.json` file to use Node.js 18.',
'Error: Node.js version 14.x has reached End-of-Life. Deployments created on or after 2023-08-15 will fail to build. Please set Node.js Version to 18.x in your Project Settings to use Node.js 18.',
'Error: Node.js version 16.x has reached End-of-Life. Deployments created on or after 2023-08-15 will fail to build. Please set "engines": { "node": "18.x" } in your `package.json` file to use Node.js 18.',
'Error: Node.js version 16.x has reached End-of-Life. Deployments created on or after 2023-08-15 will fail to build. Please set Node.js Version to 18.x in your Project Settings to use Node.js 18.',
]);
global.Date.now = realDateNow;

View File

@@ -1,5 +1,31 @@
# vercel
## 29.3.6
### Patch Changes
- Updated dependencies []:
- @vercel/static-build@1.3.32
## 29.3.5
### Patch Changes
- Updated dependencies [[`2c950d47a`](https://github.com/vercel/vercel/commit/2c950d47aeb22a3de16f983259ea6f37a4555189), [`71b9f3a94`](https://github.com/vercel/vercel/commit/71b9f3a94b7922607f8f24bf7b2bd1742e62cc05), [`f00b08a82`](https://github.com/vercel/vercel/commit/f00b08a82085c3a63059f34f67f10ced92f2979c)]:
- @vercel/static-build@1.3.31
- @vercel/build-utils@6.7.3
- @vercel/next@3.8.5
- @vercel/node@2.14.3
- @vercel/remix-builder@1.8.10
## 29.3.4
### Patch Changes
- Updated dependencies [[`67e556bc8`](https://github.com/vercel/vercel/commit/67e556bc80c821c233120a2ec1611adb8e195baa), [`ba10fb4dd`](https://github.com/vercel/vercel/commit/ba10fb4dd4155a75df79b98a0c43a6c42eac7b62)]:
- @vercel/remix-builder@1.8.9
- @vercel/next@3.8.4
## 29.3.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "29.3.3",
"version": "29.3.6",
"preferGlobal": true,
"license": "Apache-2.0",
"description": "The command-line interface for Vercel",
@@ -32,16 +32,16 @@
"node": ">= 14"
},
"dependencies": {
"@vercel/build-utils": "6.7.2",
"@vercel/build-utils": "6.7.3",
"@vercel/go": "2.5.1",
"@vercel/hydrogen": "0.0.64",
"@vercel/next": "3.8.3",
"@vercel/node": "2.14.2",
"@vercel/next": "3.8.5",
"@vercel/node": "2.14.3",
"@vercel/python": "3.1.60",
"@vercel/redwood": "1.1.15",
"@vercel/remix-builder": "1.8.8",
"@vercel/remix-builder": "1.8.10",
"@vercel/ruby": "1.3.76",
"@vercel/static-build": "1.3.30"
"@vercel/static-build": "1.3.32"
},
"devDependencies": {
"@alex_neo/jest-expect-message": "1.0.5",
@@ -88,7 +88,7 @@
"@vercel-internals/constants": "*",
"@vercel-internals/get-package-json": "*",
"@vercel-internals/types": "*",
"@vercel/client": "12.5.0",
"@vercel/client": "12.5.1",
"@vercel/error-utils": "1.0.10",
"@vercel/frameworks": "1.4.2",
"@vercel/fs-detectors": "3.9.2",

View File

@@ -1,5 +1,6 @@
{
"name": "nextjs-node",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"dev": "next",
@@ -9,5 +10,6 @@
"next": "13.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,8 +1,11 @@
{
"name": "10a-nextjs-routes",
"version": "0.0.0",
"private": true,
"dependencies": {
"next": "13.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,5 +1,6 @@
{
"name": "nextjs-src-dir",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"dev": "next",
@@ -9,5 +10,6 @@
"next": "13.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -8,5 +8,6 @@
"next": "latest",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -6,5 +6,6 @@
"next": "9.0.0",
"react": "16.8.6",
"react-dom": "16.8.6"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -8,5 +8,6 @@
"next": "12.1.6",
"react": "18.1.0",
"react-dom": "18.1.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,5 +1,6 @@
{
"name": "force-module-commonjs",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "next",
@@ -15,5 +16,6 @@
"@types/node": "18.x",
"@types/react": "18.0.25",
"typescript": "4.9.3"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,5 +1,6 @@
{
"name": "nested-tsconfig",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "next",
@@ -15,5 +16,6 @@
"@types/node": "18.x",
"@types/react": "18.0.25",
"typescript": "4.9.3"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,5 +1,6 @@
{
"dependencies": {
"next": "13.0.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -8,5 +8,6 @@
"next": "^8.0.0",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -8,5 +8,6 @@
"next": "^8.0.0",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -8,5 +8,6 @@
"next": "^8.0.0",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -8,5 +8,6 @@
"next": "^8.0.0",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -0,0 +1,8 @@
# @vercel/client
## 12.5.1
### Patch Changes
- Updated dependencies [[`71b9f3a94`](https://github.com/vercel/vercel/commit/71b9f3a94b7922607f8f24bf7b2bd1742e62cc05)]:
- @vercel/build-utils@6.7.3

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/client",
"version": "12.5.0",
"version": "12.5.1",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://vercel.com",
@@ -35,7 +35,7 @@
"typescript": "4.9.5"
},
"dependencies": {
"@vercel/build-utils": "6.7.2",
"@vercel/build-utils": "6.7.3",
"@vercel/routing-utils": "2.2.1",
"@zeit/fetch": "5.2.0",
"async-retry": "1.2.3",

View File

@@ -6,6 +6,11 @@
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/vercel/vercel.git",
"directory": "packages/frameworks"
},
"license": "Apache-2.0",
"scripts": {
"build": "tsc",

View File

@@ -35,7 +35,7 @@
"@types/minimatch": "3.0.5",
"@types/node": "14.18.33",
"@types/semver": "7.3.10",
"@vercel/build-utils": "6.7.2",
"@vercel/build-utils": "6.7.3",
"typescript": "4.9.5"
}
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"license": "ISC",
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -5,5 +5,6 @@
},
"dependencies": {
"next": "^4.3.2"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,5 +1,6 @@
{
"dependencies": {
"next": "1.2.3"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -0,0 +1,15 @@
# @vercel/gatsby-plugin-vercel-builder
## 1.3.5
### Patch Changes
- add repo details for gatsby-plugin-vercel-builder ([#9990](https://github.com/vercel/vercel/pull/9990))
## 1.3.4
### Patch Changes
- Updated dependencies [[`71b9f3a94`](https://github.com/vercel/vercel/commit/71b9f3a94b7922607f8f24bf7b2bd1742e62cc05)]:
- @vercel/build-utils@6.7.3
- @vercel/node@2.14.3

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/gatsby-plugin-vercel-builder",
"version": "1.3.3",
"version": "1.3.5",
"main": "dist/index.js",
"files": [
"dist",
@@ -8,6 +8,11 @@
"gatsby-node.js",
"gatsby-node.js.map"
],
"repository": {
"type": "git",
"url": "https://github.com/vercel/vercel.git",
"directory": "packages/gatsby-plugin-vercel-builder"
},
"scripts": {
"build": "pnpm build:src && pnpm build:gatsby",
"build:gatsby": "tsc -p tsconfig.gatsby.json",
@@ -15,8 +20,8 @@
},
"dependencies": {
"@sinclair/typebox": "0.25.24",
"@vercel/build-utils": "6.7.2",
"@vercel/node": "2.14.2",
"@vercel/build-utils": "6.7.3",
"@vercel/node": "2.14.3",
"@vercel/routing-utils": "2.2.1",
"esbuild": "0.14.47",
"etag": "1.8.1",

View File

@@ -27,7 +27,7 @@
"@types/node-fetch": "^2.3.0",
"@types/tar": "^4.0.0",
"@types/yauzl-promise": "2.1.0",
"@vercel/build-utils": "6.7.2",
"@vercel/build-utils": "6.7.3",
"@vercel/ncc": "0.24.0",
"async-retry": "1.3.1",
"execa": "^1.0.0",

View File

@@ -21,7 +21,7 @@
"devDependencies": {
"@types/jest": "27.5.1",
"@types/node": "14.18.33",
"@vercel/build-utils": "6.7.2",
"@vercel/build-utils": "6.7.3",
"@vercel/static-config": "2.0.17",
"execa": "3.2.0",
"fs-extra": "11.1.0",

View File

@@ -1,5 +1,17 @@
# @vercel/next
## 3.8.5
### Patch Changes
- [next] Ensure app functions are detected/separated properly ([#9989](https://github.com/vercel/vercel/pull/9989))
## 3.8.4
### Patch Changes
- Update handling for react prebundled flag ([#9974](https://github.com/vercel/vercel/pull/9974))
## 3.8.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/next",
"version": "3.8.3",
"version": "3.8.5",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -35,7 +35,7 @@
"@types/semver": "6.0.0",
"@types/text-table": "0.2.1",
"@types/webpack-sources": "3.2.0",
"@vercel/build-utils": "6.7.2",
"@vercel/build-utils": "6.7.3",
"@vercel/nft": "0.22.5",
"@vercel/routing-utils": "2.2.1",
"async-sema": "3.0.1",

View File

@@ -386,7 +386,7 @@ export async function serverBuild({
const apiPages: string[] = [];
const nonApiPages: string[] = [];
const streamingPages: string[] = [];
const appRouterPages: string[] = [];
lambdaPageKeys.forEach(page => {
if (
@@ -401,15 +401,16 @@ export async function serverBuild({
if (nonLambdaSsgPages.has(pathname)) {
return;
}
const normalizedPathname = normalizePage(pathname);
if (isDynamicRoute(pathname)) {
dynamicPages.push(normalizePage(pathname));
if (isDynamicRoute(normalizedPathname)) {
dynamicPages.push(normalizedPathname);
}
if (pageMatchesApi(page)) {
if (lambdaAppPaths[page]) {
appRouterPages.push(page);
} else if (pageMatchesApi(page)) {
apiPages.push(page);
} else if (appDir && lambdaAppPaths[page]) {
streamingPages.push(page);
} else {
nonApiPages.push(page);
}
@@ -570,6 +571,15 @@ export async function serverBuild({
`${getNextServerPath(nextVersion)}/next-server.js`
);
const appLauncher = launcher.replace(
'// pre-next-server-target',
`process.env.__NEXT_PRIVATE_PREBUNDLED_REACT = "${
requiredServerFilesManifest.config?.experimental?.serverActions
? 'experimental'
: 'next'
}"`
);
if (
entryDirectory !== '.' &&
path.posix.join('/', entryDirectory) !== routesManifest.basePath
@@ -585,10 +595,6 @@ export async function serverBuild({
);
}
const launcherFiles: { [name: string]: FileFsRef | FileBlob } = {
[path.join(path.relative(baseDir, projectDir), '___next_launcher.cjs')]:
new FileBlob({ data: launcher }),
};
const pageTraces: {
[page: string]: { [key: string]: FileFsRef };
} = {};
@@ -597,7 +603,7 @@ export async function serverBuild({
} = {};
const mergedPageKeys = [
...nonApiPages,
...streamingPages,
...appRouterPages,
...apiPages,
...internalPages,
];
@@ -758,10 +764,10 @@ export async function serverBuild({
pageExtensions,
});
const streamingPageLambdaGroups = await getPageLambdaGroups({
const appRouterLambdaGroups = await getPageLambdaGroups({
entryPath: projectDir,
config,
pages: streamingPages,
pages: appRouterPages,
prerenderRoutes,
pageTraces,
compressedPages,
@@ -773,10 +779,11 @@ export async function serverBuild({
pageExtensions,
});
for (const group of streamingPageLambdaGroups) {
for (const group of appRouterLambdaGroups) {
if (!group.isPrerenders) {
group.isStreaming = true;
}
group.isAppRouter = true;
}
const apiLambdaGroups = await getPageLambdaGroups({
@@ -812,7 +819,7 @@ export async function serverBuild({
pseudoLayerBytes: group.pseudoLayerBytes,
uncompressedLayerBytes: group.pseudoLayerUncompressedBytes,
})),
streamingPageLambdaGroups: streamingPageLambdaGroups.map(group => ({
appRouterLambdaGroups: appRouterLambdaGroups.map(group => ({
pages: group.pages,
isPrerender: group.isPrerenders,
pseudoLayerBytes: group.pseudoLayerBytes,
@@ -826,7 +833,7 @@ export async function serverBuild({
);
const combinedGroups = [
...pageLambdaGroups,
...streamingPageLambdaGroups,
...appRouterLambdaGroups,
...apiLambdaGroups,
];
@@ -905,6 +912,10 @@ export async function serverBuild({
}
}
const launcherFiles: { [name: string]: FileFsRef | FileBlob } = {
[path.join(path.relative(baseDir, projectDir), '___next_launcher.cjs')]:
new FileBlob({ data: group.isAppRouter ? appLauncher : launcher }),
};
const operationType = getOperationType({ group, prerenderManifest });
const lambda = await createLambdaFromPseudoLayers({

View File

@@ -18,6 +18,8 @@ if (process.env.NODE_ENV !== 'production' && region !== 'dev1') {
process.env.NODE_ENV = 'production';
}
// pre-next-server-target
// eslint-disable-next-line
const NextServer = require('__NEXT_SERVER_PATH__').default;
const nextServer = new NextServer({

View File

@@ -1350,6 +1350,7 @@ export type LambdaGroup = {
pages: string[];
memory?: number;
maxDuration?: number;
isAppRouter?: boolean;
isStreaming?: boolean;
isPrerenders?: boolean;
isApiLambda: boolean;

View File

@@ -8,5 +8,6 @@
"next": "13.1.2",
"react": "18.2.0",
"react-dom": "18.2.0"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -6,5 +6,6 @@
"next": "canary",
"react": "experimental",
"react-dom": "experimental"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -9,5 +9,6 @@
"next": "canary",
"react": "experimental",
"react-dom": "experimental"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "experimental",
"react-dom": "experimental"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "experimental",
"react-dom": "experimental"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "experimental",
"react-dom": "experimental"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,3 +1,5 @@
export const dynamic = 'force-dynamic'
export default function HelloPage(props) {
return (
<>

View File

@@ -1,3 +1,5 @@
export const dynamic = 'force-dynamic'
export default function Page() {
return <p>index app page</p>;
return <p>index app page {Date.now()}</p>;
}

View File

@@ -0,0 +1,18 @@
"use client";
import react from 'react'
export const MoreData = () => {
const [mounted, setMounted] = react.useState(false)
react.useEffect(() => {
setMounted(true)
}, [])
return (
<>
<p>more data</p>
{mounted && <p>mounted!</p>}
</>
)
}

View File

@@ -0,0 +1,3 @@
import react from 'react'
export const DataContext = react.createContext(null)

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "experimental",
"react-dom": "experimental"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -0,0 +1,28 @@
import react from 'react'
import { MoreData } from '../../components/more-data'
import { DataContext } from '../../data-context'
const ValueItem = () => {
const value = react.useContext(DataContext)
return <p>{value}</p>
}
export default function Page(props) {
return (
<>
<DataContext.Provider value={'hello context'}>
<p>hello from pages/blog-ssr/[slug]</p>
<ValueItem />
<MoreData />
</DataContext.Provider>
</>
);
}
export function getServerSideProps() {
return {
props: {
now: Date.now()
}
}
}

View File

@@ -18,6 +18,11 @@
}
],
"probes": [
{
"path": "/dashboard/hello",
"status": 200,
"mustContain": "hello from app/dashboard/rootonly/hello"
},
{
"path": "/dashboard/another-edge",
"status": 200,
@@ -160,6 +165,16 @@
"status": 200,
"mustContain": "hello from pages/blog/[slug]"
},
{
"path": "/blog-ssr/123",
"status": 200,
"mustContain": "hello from pages/blog-ssr/[slug]"
},
{
"path": "/blog-ssr/321",
"status": 200,
"mustContain": "hello context"
},
{
"path": "/dynamic/category-1/id-1",
"status": 200,

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -12,5 +12,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -1,4 +1,6 @@
{
"name": "00-cached-build",
"version": "0.0.0",
"workspaces": [
"apps/*"
],
@@ -11,5 +13,6 @@
},
"scripts": {
"build": "turbo build --cache-dir=turbo-cache"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -7,5 +7,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -11,5 +11,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -6,5 +6,6 @@
"next": "latest",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -17,5 +17,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -18,5 +18,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -10,5 +10,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -10,5 +10,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -6,5 +6,6 @@
"next": "latest",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -9,5 +9,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -9,5 +9,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -12,5 +12,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -7,5 +7,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -7,5 +7,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -7,5 +7,6 @@
"next": "12.1.6",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -7,5 +7,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -9,5 +9,6 @@
"build": "next build",
"start": "next start",
"lint": "next lint"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -6,5 +6,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -9,5 +9,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -6,5 +6,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -13,5 +13,6 @@
},
"resolutions": {
"@babel/compat-data": "7.21.4"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

View File

@@ -3,5 +3,6 @@
"next": "canary",
"react": "latest",
"react-dom": "latest"
}
},
"ignoreNextjsUpdates": true
}

Some files were not shown because too many files have changed in this diff Show More