Compare commits

..

3 Commits

Author SHA1 Message Date
Steven
3ff93279cd Publish Stable
- vercel@28.2.2
 - @vercel/next@3.1.24
 - @vercel/node@2.5.13
 - @vercel/redwood@1.0.22
 - @vercel/remix@1.0.23
2022-09-01 16:42:27 -04:00
Steven
58f9d649a8 [next][node][remix][redwood] Bump @vercel/nft@0.22.1 (#8502)
Bump `@vercel/nft` to version [0.22.1](https://github.com/vercel/nft/releases/tag/0.22.1)
2022-09-01 16:41:30 -04:00
JJ Kasper
cadc082ad1 [next] Fix index app dir case (#8501)
### Related Issues

This ensures we properly normalize the `/` case from the `app-path-routes-manifest` as the outputs expect this to be normalized to `index`. 

### 📋 Checklist

<!--
  Please keep your PR as a Draft until the checklist is complete
-->

#### 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
2022-09-01 12:06:18 -07:00
14 changed files with 25 additions and 69 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "28.2.1",
"version": "28.2.2",
"preferGlobal": true,
"license": "Apache-2.0",
"description": "The command-line interface for Vercel",
@@ -44,11 +44,11 @@
"@vercel/build-utils": "5.4.1",
"@vercel/go": "2.2.4",
"@vercel/hydrogen": "0.0.17",
"@vercel/next": "3.1.23",
"@vercel/node": "2.5.12",
"@vercel/next": "3.1.24",
"@vercel/node": "2.5.13",
"@vercel/python": "3.1.13",
"@vercel/redwood": "1.0.21",
"@vercel/remix": "1.0.22",
"@vercel/redwood": "1.0.22",
"@vercel/remix": "1.0.23",
"@vercel/ruby": "1.3.30",
"@vercel/static-build": "1.0.21",
"update-notifier": "5.1.0"

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/next",
"version": "3.1.23",
"version": "3.1.24",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -45,7 +45,7 @@
"@types/text-table": "0.2.1",
"@types/webpack-sources": "3.2.0",
"@vercel/build-utils": "5.4.1",
"@vercel/nft": "0.21.0",
"@vercel/nft": "0.22.1",
"@vercel/routing-utils": "2.0.2",
"async-sema": "3.0.1",
"buffer-crc32": "0.2.13",

View File

@@ -2636,7 +2636,10 @@ async function getServerlessPages(params: {
for (const [entry, normalizedEntry] of Object.entries(
params.appPathRoutesManifest
)) {
const normalizedPath = `${path.join('.', normalizedEntry)}.js`;
const normalizedPath = `${path.join(
'.',
normalizedEntry === '/' ? '/index' : normalizedEntry
)}.js`;
const globPath = `${path.join('.', entry)}.js`;
if (appPaths[globPath]) {

View File

@@ -0,0 +1,3 @@
export default function Page() {
return <p>index app page</p>;
}

View File

@@ -1,9 +0,0 @@
import Link from 'next/link';
export default function Page(props) {
return (
<>
<p>hello from pages/index</p>
<Link href="/dashboard">Dashboard</Link>
</>
);
}

View File

@@ -24,7 +24,7 @@
{
"path": "/",
"status": 200,
"mustContain": "hello from pages/index"
"mustContain": "index app page"
},
{
"path": "/blog/123",

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/node",
"version": "2.5.12",
"version": "2.5.13",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -53,7 +53,7 @@
"@types/node-fetch": "^2.6.1",
"@types/test-listen": "1.1.0",
"@vercel/ncc": "0.24.0",
"@vercel/nft": "0.22.0",
"@vercel/nft": "0.22.1",
"content-type": "1.0.4",
"cookie": "0.4.0",
"etag": "1.8.1",

View File

@@ -1,12 +0,0 @@
import { readFileSync } from 'fs';
import { join } from 'path';
export default function handler(_req, res) {
// This build.js asset should be included but not the dep.js asset
// because this is readFile(), not require(). It also shouldn't transpile
// with babel because it should be considered an asset.
const file = join(process.cwd(), 'assets', 'build.js');
const content = readFileSync(file, 'utf8');
res.setHeader('Content-Type', 'application/javascript');
return res.end(content);
}

View File

@@ -1 +0,0 @@
import dep from './dep.js';

View File

@@ -1,3 +0,0 @@
// This file should not be included because the
// api/index.js is performing a readFile(), not require().
export const dep = 'dep1';

View File

@@ -1,8 +0,0 @@
{
"probes": [
{
"path": "/api",
"mustContain": "import dep from './dep.js';"
}
]
}

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/redwood",
"version": "1.0.21",
"version": "1.0.22",
"main": "./dist/index.js",
"license": "MIT",
"homepage": "https://vercel.com/docs",
@@ -19,7 +19,7 @@
"test-unit": "yarn test test/prepare-cache.test.js"
},
"dependencies": {
"@vercel/nft": "0.22.0",
"@vercel/nft": "0.22.1",
"@vercel/routing-utils": "2.0.2",
"semver": "6.1.1"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/remix",
"version": "1.0.22",
"version": "1.0.23",
"license": "MIT",
"main": "./dist/index.js",
"homepage": "https://vercel.com/docs",
@@ -20,7 +20,7 @@
"default-server.js"
],
"dependencies": {
"@vercel/nft": "0.22.0"
"@vercel/nft": "0.22.1"
},
"devDependencies": {
"@types/jest": "27.5.1",

View File

@@ -3212,27 +3212,10 @@
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.24.0.tgz#a2e8783a185caa99b5d8961a57dfc9665de16296"
integrity sha512-crqItMcIwCkvdXY/V3/TzrHJQx6nbIaRqE1cOopJhgGX6izvNov40SmD//nS5flfEvdK54YGjwVVq+zG6crjOg==
"@vercel/nft@0.21.0":
version "0.21.0"
resolved "https://registry.yarnpkg.com/@vercel/nft/-/nft-0.21.0.tgz#e0715b1997cd7021a7c7c48b584ef2295fd4b810"
integrity sha512-hFCAETfI5cG8l5iAiLhMC2bReC5K7SIybzrxGorv+eGspIbIFsVw7Vg85GovXm/LxA08pIDrAlrhR6GN36XB/Q==
dependencies:
"@mapbox/node-pre-gyp" "^1.0.5"
acorn "^8.6.0"
async-sema "^3.1.1"
bindings "^1.4.0"
estree-walker "2.0.2"
glob "^7.1.3"
graceful-fs "^4.2.9"
micromatch "^4.0.2"
node-gyp-build "^4.2.2"
resolve-from "^5.0.0"
rollup-pluginutils "^2.8.2"
"@vercel/nft@0.22.0":
version "0.22.0"
resolved "https://registry.yarnpkg.com/@vercel/nft/-/nft-0.22.0.tgz#586ed4edfd0dabc9bf07525044782198a0b31199"
integrity sha512-hB80/093PPiCefN2gVbqv6J93MH+63Zr7uDCwkiS/U4W07DXkLoftbnkBmZoS0Q84LiTSl9DRVSHU4XYCX+sJA==
"@vercel/nft@0.22.1":
version "0.22.1"
resolved "https://registry.yarnpkg.com/@vercel/nft/-/nft-0.22.1.tgz#0d91d2a21e3a7f0b23ce1550da9870eac4942828"
integrity sha512-lYYZIoxRurqDOSoVIdBicGnpUIpfyaS5qVjdPq+EfI285WqtZK3NK/dyCkiyBul+X2U2OEhRyeMdXPCHGJbohw==
dependencies:
"@mapbox/node-pre-gyp" "^1.0.5"
acorn "^8.6.0"