@vercel/microfrontends 0.19.1 → 0.19.3
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.
- package/dist/bin/cli.cjs +38 -32
- package/dist/microfrontends/server.cjs +27 -28
- package/dist/microfrontends/server.cjs.map +1 -1
- package/dist/microfrontends/server.js +27 -28
- package/dist/microfrontends/server.js.map +1 -1
- package/dist/next/config.cjs +27 -28
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.js +27 -28
- package/dist/next/config.js.map +1 -1
- package/dist/utils/mfe-port.cjs +27 -28
- package/dist/utils/mfe-port.cjs.map +1 -1
- package/dist/utils/mfe-port.js +27 -28
- package/dist/utils/mfe-port.js.map +1 -1
- package/dist/validation.cjs +27 -28
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +27 -28
- package/dist/validation.js.map +1 -1
- package/package.json +9 -1
package/dist/bin/cli.cjs
CHANGED
|
@@ -29,7 +29,7 @@ var import_commander = require("commander");
|
|
|
29
29
|
// package.json
|
|
30
30
|
var package_default = {
|
|
31
31
|
name: "@vercel/microfrontends",
|
|
32
|
-
version: "0.19.
|
|
32
|
+
version: "0.19.3",
|
|
33
33
|
private: false,
|
|
34
34
|
description: "Defines configuration and utilities for microfrontends development",
|
|
35
35
|
keywords: [
|
|
@@ -203,11 +203,19 @@ var package_default = {
|
|
|
203
203
|
webpack: "5"
|
|
204
204
|
},
|
|
205
205
|
peerDependencies: {
|
|
206
|
+
"@vercel/analytics": ">=1.5.0",
|
|
207
|
+
"@vercel/speed-insights": ">=1.2.0",
|
|
206
208
|
next: ">=13",
|
|
207
209
|
react: ">=17.0.0",
|
|
208
210
|
"react-dom": ">=17.0.0"
|
|
209
211
|
},
|
|
210
212
|
peerDependenciesMeta: {
|
|
213
|
+
"@vercel/analytics": {
|
|
214
|
+
optional: true
|
|
215
|
+
},
|
|
216
|
+
"@vercel/speed-insights": {
|
|
217
|
+
optional: true
|
|
218
|
+
},
|
|
211
219
|
next: {
|
|
212
220
|
optional: true
|
|
213
221
|
},
|
|
@@ -1378,15 +1386,14 @@ var schema_default = {
|
|
|
1378
1386
|
type: "string",
|
|
1379
1387
|
description: "Vercel project ID"
|
|
1380
1388
|
},
|
|
1381
|
-
development: {
|
|
1382
|
-
$ref: "#/definitions/Development"
|
|
1383
|
-
},
|
|
1384
1389
|
production: {
|
|
1385
1390
|
$ref: "#/definitions/HostConfig",
|
|
1386
1391
|
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1392
|
+
},
|
|
1393
|
+
development: {
|
|
1394
|
+
$ref: "#/definitions/Development"
|
|
1387
1395
|
}
|
|
1388
1396
|
},
|
|
1389
|
-
required: ["production"],
|
|
1390
1397
|
additionalProperties: false
|
|
1391
1398
|
},
|
|
1392
1399
|
Vercel: {
|
|
@@ -1400,6 +1407,26 @@ var schema_default = {
|
|
|
1400
1407
|
required: ["projectId"],
|
|
1401
1408
|
additionalProperties: false
|
|
1402
1409
|
},
|
|
1410
|
+
HostConfig: {
|
|
1411
|
+
type: "object",
|
|
1412
|
+
properties: {
|
|
1413
|
+
protocol: {
|
|
1414
|
+
type: "string",
|
|
1415
|
+
enum: ["http", "https"],
|
|
1416
|
+
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1417
|
+
},
|
|
1418
|
+
host: {
|
|
1419
|
+
type: "string",
|
|
1420
|
+
description: "The hostname or IP address of the server. This can be a domain name (e.g., `example.com`) or an IP address (e.g., `192.168.1.1`)."
|
|
1421
|
+
},
|
|
1422
|
+
port: {
|
|
1423
|
+
type: "number",
|
|
1424
|
+
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
required: ["host"],
|
|
1428
|
+
additionalProperties: false
|
|
1429
|
+
},
|
|
1403
1430
|
Development: {
|
|
1404
1431
|
type: "object",
|
|
1405
1432
|
properties: {
|
|
@@ -1448,26 +1475,6 @@ var schema_default = {
|
|
|
1448
1475
|
}
|
|
1449
1476
|
}
|
|
1450
1477
|
},
|
|
1451
|
-
HostConfig: {
|
|
1452
|
-
type: "object",
|
|
1453
|
-
properties: {
|
|
1454
|
-
protocol: {
|
|
1455
|
-
type: "string",
|
|
1456
|
-
enum: ["http", "https"],
|
|
1457
|
-
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1458
|
-
},
|
|
1459
|
-
host: {
|
|
1460
|
-
type: "string",
|
|
1461
|
-
description: "The hostname or IP address of the server. This can be a domain name (e.g., `example.com`) or an IP address (e.g., `192.168.1.1`)."
|
|
1462
|
-
},
|
|
1463
|
-
port: {
|
|
1464
|
-
type: "number",
|
|
1465
|
-
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1466
|
-
}
|
|
1467
|
-
},
|
|
1468
|
-
required: ["host"],
|
|
1469
|
-
additionalProperties: false
|
|
1470
|
-
},
|
|
1471
1478
|
ChildApplication: {
|
|
1472
1479
|
type: "object",
|
|
1473
1480
|
properties: {
|
|
@@ -1479,16 +1486,16 @@ var schema_default = {
|
|
|
1479
1486
|
type: "string",
|
|
1480
1487
|
description: "Vercel project ID"
|
|
1481
1488
|
},
|
|
1489
|
+
production: {
|
|
1490
|
+
$ref: "#/definitions/HostConfig",
|
|
1491
|
+
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1492
|
+
},
|
|
1482
1493
|
development: {
|
|
1483
1494
|
$ref: "#/definitions/Development"
|
|
1484
1495
|
},
|
|
1485
1496
|
routing: {
|
|
1486
1497
|
$ref: "#/definitions/Routing",
|
|
1487
1498
|
description: "Groups of path expressions that are routed to this application."
|
|
1488
|
-
},
|
|
1489
|
-
production: {
|
|
1490
|
-
$ref: "#/definitions/HostConfig",
|
|
1491
|
-
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1492
1499
|
}
|
|
1493
1500
|
},
|
|
1494
1501
|
required: ["routing"],
|
|
@@ -1979,9 +1986,8 @@ var ProxyRequestRouter = class {
|
|
|
1979
1986
|
referer = void 0,
|
|
1980
1987
|
applications
|
|
1981
1988
|
}) {
|
|
1982
|
-
const isStackFrame = (0, import_path_to_regexp3.pathToRegexp)("/__nextjs_original-stack-frame").test(
|
|
1983
|
-
|
|
1984
|
-
);
|
|
1989
|
+
const isStackFrame = (0, import_path_to_regexp3.pathToRegexp)("/__nextjs_original-stack-frame").test(url.pathname) || // Plural form was introduced in https://github.com/vercel/next.js/pull/75557
|
|
1990
|
+
(0, import_path_to_regexp3.pathToRegexp)("/__nextjs_original-stack-frames").test(url.pathname);
|
|
1985
1991
|
if (!referer || !isStackFrame) {
|
|
1986
1992
|
return null;
|
|
1987
1993
|
}
|
|
@@ -1177,15 +1177,14 @@ var schema_default = {
|
|
|
1177
1177
|
type: "string",
|
|
1178
1178
|
description: "Vercel project ID"
|
|
1179
1179
|
},
|
|
1180
|
-
development: {
|
|
1181
|
-
$ref: "#/definitions/Development"
|
|
1182
|
-
},
|
|
1183
1180
|
production: {
|
|
1184
1181
|
$ref: "#/definitions/HostConfig",
|
|
1185
1182
|
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1183
|
+
},
|
|
1184
|
+
development: {
|
|
1185
|
+
$ref: "#/definitions/Development"
|
|
1186
1186
|
}
|
|
1187
1187
|
},
|
|
1188
|
-
required: ["production"],
|
|
1189
1188
|
additionalProperties: false
|
|
1190
1189
|
},
|
|
1191
1190
|
Vercel: {
|
|
@@ -1199,6 +1198,26 @@ var schema_default = {
|
|
|
1199
1198
|
required: ["projectId"],
|
|
1200
1199
|
additionalProperties: false
|
|
1201
1200
|
},
|
|
1201
|
+
HostConfig: {
|
|
1202
|
+
type: "object",
|
|
1203
|
+
properties: {
|
|
1204
|
+
protocol: {
|
|
1205
|
+
type: "string",
|
|
1206
|
+
enum: ["http", "https"],
|
|
1207
|
+
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1208
|
+
},
|
|
1209
|
+
host: {
|
|
1210
|
+
type: "string",
|
|
1211
|
+
description: "The hostname or IP address of the server. This can be a domain name (e.g., `example.com`) or an IP address (e.g., `192.168.1.1`)."
|
|
1212
|
+
},
|
|
1213
|
+
port: {
|
|
1214
|
+
type: "number",
|
|
1215
|
+
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
required: ["host"],
|
|
1219
|
+
additionalProperties: false
|
|
1220
|
+
},
|
|
1202
1221
|
Development: {
|
|
1203
1222
|
type: "object",
|
|
1204
1223
|
properties: {
|
|
@@ -1247,26 +1266,6 @@ var schema_default = {
|
|
|
1247
1266
|
}
|
|
1248
1267
|
}
|
|
1249
1268
|
},
|
|
1250
|
-
HostConfig: {
|
|
1251
|
-
type: "object",
|
|
1252
|
-
properties: {
|
|
1253
|
-
protocol: {
|
|
1254
|
-
type: "string",
|
|
1255
|
-
enum: ["http", "https"],
|
|
1256
|
-
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1257
|
-
},
|
|
1258
|
-
host: {
|
|
1259
|
-
type: "string",
|
|
1260
|
-
description: "The hostname or IP address of the server. This can be a domain name (e.g., `example.com`) or an IP address (e.g., `192.168.1.1`)."
|
|
1261
|
-
},
|
|
1262
|
-
port: {
|
|
1263
|
-
type: "number",
|
|
1264
|
-
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1265
|
-
}
|
|
1266
|
-
},
|
|
1267
|
-
required: ["host"],
|
|
1268
|
-
additionalProperties: false
|
|
1269
|
-
},
|
|
1270
1269
|
ChildApplication: {
|
|
1271
1270
|
type: "object",
|
|
1272
1271
|
properties: {
|
|
@@ -1278,16 +1277,16 @@ var schema_default = {
|
|
|
1278
1277
|
type: "string",
|
|
1279
1278
|
description: "Vercel project ID"
|
|
1280
1279
|
},
|
|
1280
|
+
production: {
|
|
1281
|
+
$ref: "#/definitions/HostConfig",
|
|
1282
|
+
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1283
|
+
},
|
|
1281
1284
|
development: {
|
|
1282
1285
|
$ref: "#/definitions/Development"
|
|
1283
1286
|
},
|
|
1284
1287
|
routing: {
|
|
1285
1288
|
$ref: "#/definitions/Routing",
|
|
1286
1289
|
description: "Groups of path expressions that are routed to this application."
|
|
1287
|
-
},
|
|
1288
|
-
production: {
|
|
1289
|
-
$ref: "#/definitions/HostConfig",
|
|
1290
|
-
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1291
1290
|
}
|
|
1292
1291
|
},
|
|
1293
1292
|
required: ["routing"],
|