@vercel/next
Advanced tools
Comparing version 2.6.6 to 2.6.7-canary.0
@@ -256,2 +256,15 @@ "use strict"; | ||
const routesManifest = require(pathRoutesManifest); | ||
// massage temporary array based routeKeys from v1/v2 of routes | ||
// manifest into new object based | ||
for (const route of [ | ||
...(routesManifest.dataRoutes || []), | ||
...(routesManifest.dynamicRoutes || []), | ||
]) { | ||
if (Array.isArray(route.routeKeys)) { | ||
route.routeKeys = route.routeKeys.reduce((prev, cur) => { | ||
prev[cur] = cur; | ||
return prev; | ||
}, {}); | ||
} | ||
} | ||
return routesManifest; | ||
@@ -278,2 +291,17 @@ } | ||
} | ||
case 3: { | ||
return routesManifest.dynamicRoutes | ||
.filter(({ page }) => omittedRoutes ? !omittedRoutes.has(page) : true) | ||
.map(({ page, namedRegex, regex, routeKeys }) => { | ||
return { | ||
src: namedRegex || regex, | ||
dest: `${!isDev ? path_1.default.join('/', entryDirectory, page) : page}${routeKeys | ||
? `?${Object.keys(routeKeys) | ||
.map(key => `${routeKeys[key]}=$${key}`) | ||
.join('&')}` | ||
: ''}`, | ||
check: true, | ||
}; | ||
}); | ||
} | ||
default: { | ||
@@ -280,0 +308,0 @@ // update MIN_ROUTES_MANIFEST_VERSION |
{ | ||
"name": "@vercel/next", | ||
"version": "2.6.6", | ||
"version": "2.6.7-canary.0", | ||
"license": "MIT", | ||
@@ -42,3 +42,3 @@ "main": "./dist/index", | ||
}, | ||
"gitHead": "63cc9009c893612dcfb95f4d8c450523eab270fb" | ||
"gitHead": "5a9391b7cec4fdb5f4e1d4399e57b8284cc3ee32" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1398446
39072
1