@vercel/redwood 2.3.6 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +40 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1040,7 +1040,7 @@ var require_superstatic = __commonJS({
1040
1040
  });
1041
1041
  return { src: r.source, segments };
1042
1042
  }
1043
- var namedGroupsRegex = /\(\?<([a-zA-Z][a-zA-Z0-9]*)>/g;
1043
+ var namedGroupsRegex = /\(\?<([a-zA-Z][a-zA-Z0-9_]*)>/g;
1044
1044
  var normalizeHasKeys = (hasItems = []) => {
1045
1045
  for (const hasItem of hasItems) {
1046
1046
  if ("key" in hasItem && hasItem.type === "header") {
@@ -1407,6 +1407,7 @@ var require_schemas = __commonJS({
1407
1407
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1408
1408
  var schemas_exports = {};
1409
1409
  __export2(schemas_exports, {
1410
+ bulkRedirectsSchema: () => bulkRedirectsSchema,
1410
1411
  cleanUrlsSchema: () => cleanUrlsSchema,
1411
1412
  hasSchema: () => hasSchema,
1412
1413
  headersSchema: () => headersSchema,
@@ -1983,6 +1984,44 @@ var require_schemas = __commonJS({
1983
1984
  description: "When `false`, visiting a path that ends with a forward slash will respond with a `308` status code and redirect to the path without the trailing slash.",
1984
1985
  type: "boolean"
1985
1986
  };
1987
+ var bulkRedirectsSchema = {
1988
+ type: "array",
1989
+ description: "A list of bulk redirect definitions.",
1990
+ items: {
1991
+ type: "object",
1992
+ additionalProperties: false,
1993
+ required: ["source", "destination"],
1994
+ properties: {
1995
+ source: {
1996
+ description: "The exact URL path or pattern to match.",
1997
+ type: "string",
1998
+ maxLength: 2048
1999
+ },
2000
+ destination: {
2001
+ description: "The target URL path where traffic should be redirected.",
2002
+ type: "string",
2003
+ maxLength: 2048
2004
+ },
2005
+ permanent: {
2006
+ description: "A boolean to toggle between permanent and temporary redirect. When `true`, the status code is `308`. When `false` the status code is `307`.",
2007
+ type: "boolean"
2008
+ },
2009
+ statusCode: {
2010
+ description: "An optional integer to define the status code of the redirect.",
2011
+ type: "integer",
2012
+ enum: [301, 302, 307, 308]
2013
+ },
2014
+ sensitive: {
2015
+ description: "A boolean to toggle between case-sensitive and case-insensitive redirect. When `true`, the redirect is case-sensitive. When `false` the redirect is case-insensitive.",
2016
+ type: "boolean"
2017
+ },
2018
+ query: {
2019
+ description: "Whether the query string should be preserved by the redirect. The default is `false`.",
2020
+ type: "boolean"
2021
+ }
2022
+ }
2023
+ }
2024
+ };
1986
2025
  }
1987
2026
  });
1988
2027
 
@@ -2432,7 +2471,6 @@ var build = async ({
2432
2471
  cliType,
2433
2472
  lockfileVersion,
2434
2473
  packageJsonPackageManager,
2435
- nodeVersion,
2436
2474
  env: spawnOpts.env || {},
2437
2475
  turboSupportsCorepackHome,
2438
2476
  projectCreatedAt: config.projectSettings?.createdAt
@@ -2453,7 +2491,6 @@ var build = async ({
2453
2491
  [],
2454
2492
  spawnOpts,
2455
2493
  meta,
2456
- nodeVersion,
2457
2494
  config.projectSettings?.createdAt
2458
2495
  );
2459
2496
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/redwood",
3
- "version": "2.3.6",
3
+ "version": "2.4.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs",
@@ -22,8 +22,8 @@
22
22
  "@types/aws-lambda": "8.10.19",
23
23
  "@types/node": "14.18.33",
24
24
  "@types/semver": "6.0.0",
25
- "@vercel/build-utils": "11.0.2",
26
- "@vercel/routing-utils": "5.1.1",
25
+ "@vercel/build-utils": "12.2.0",
26
+ "@vercel/routing-utils": "5.2.0",
27
27
  "execa": "3.2.0",
28
28
  "fs-extra": "11.1.0",
29
29
  "jest-junit": "16.0.0"