@vercel/microfrontends 1.0.1-canary.5 → 1.1.1-canary.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.
- package/dist/bin/cli.cjs +128 -53
- package/dist/config.cjs +80 -16
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.ts +4 -4
- package/dist/config.js +80 -16
- package/dist/config.js.map +1 -1
- package/dist/experimental/sveltekit.cjs +116 -49
- package/dist/experimental/sveltekit.cjs.map +1 -1
- package/dist/experimental/sveltekit.js +116 -49
- package/dist/experimental/sveltekit.js.map +1 -1
- package/dist/experimental/vite.cjs +116 -49
- package/dist/experimental/vite.cjs.map +1 -1
- package/dist/experimental/vite.js +116 -49
- package/dist/experimental/vite.js.map +1 -1
- package/dist/{index-2b59c627.d.ts → index-7e69650e.d.ts} +11 -5
- package/dist/microfrontends/server.cjs +116 -49
- package/dist/microfrontends/server.cjs.map +1 -1
- package/dist/microfrontends/server.d.ts +4 -4
- package/dist/microfrontends/server.js +116 -49
- package/dist/microfrontends/server.js.map +1 -1
- package/dist/microfrontends.cjs +80 -16
- package/dist/microfrontends.cjs.map +1 -1
- package/dist/microfrontends.d.ts +4 -4
- package/dist/microfrontends.js +80 -16
- package/dist/microfrontends.js.map +1 -1
- package/dist/next/config.cjs +133 -56
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.js +133 -56
- package/dist/next/config.js.map +1 -1
- package/dist/next/endpoints.d.ts +2 -2
- package/dist/next/middleware.cjs +90 -16
- package/dist/next/middleware.cjs.map +1 -1
- package/dist/next/middleware.js +90 -16
- package/dist/next/middleware.js.map +1 -1
- package/dist/next/testing.cjs +84 -21
- package/dist/next/testing.cjs.map +1 -1
- package/dist/next/testing.d.ts +4 -4
- package/dist/next/testing.js +84 -21
- package/dist/next/testing.js.map +1 -1
- package/dist/overrides.d.ts +3 -3
- package/dist/schema.cjs +23 -0
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.ts +7 -1
- package/dist/schema.js +13 -0
- package/dist/schema.js.map +1 -1
- package/dist/{index-2f78c0ca.d.ts → types-6ee19ccc.d.ts} +40 -9
- package/dist/{types-b6d38aea.d.ts → types-73527280.d.ts} +1 -1
- package/dist/{types-4ef2bddb.d.ts → types-74e3336c.d.ts} +1 -1
- package/dist/utils/mfe-port.cjs +116 -49
- package/dist/utils/mfe-port.cjs.map +1 -1
- package/dist/utils/mfe-port.js +116 -49
- package/dist/utils/mfe-port.js.map +1 -1
- package/dist/validation.cjs +36 -33
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.d.ts +1 -1
- package/dist/validation.js +36 -33
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
- package/schema/schema.json +28 -7
package/schema/schema.json
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"$ref": "#/definitions/Application"
|
|
86
86
|
},
|
|
87
87
|
"propertyNames": {
|
|
88
|
-
"description": "The unique identifier for a Microfrontend Application
|
|
88
|
+
"description": "The unique identifier for a Microfrontend Application.\n\nMust match the Vercel project name.\n\nNote: If this name does not also match the name used to run the application, (e.g. the `name` from the `package.json`), then the `packageName` field should be set."
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"Application": {
|
|
@@ -107,7 +107,12 @@
|
|
|
107
107
|
},
|
|
108
108
|
"projectId": {
|
|
109
109
|
"type": "string",
|
|
110
|
-
"description": "Vercel project ID"
|
|
110
|
+
"description": "Vercel project ID, only required if the application name / id is different to the Vercel project name.",
|
|
111
|
+
"deprecated": "Instead, the application id should match the Vercel project name."
|
|
112
|
+
},
|
|
113
|
+
"packageName": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "The name used to run the application, e.g. the `name` field in the `package.json`.\n\nThis is used by the local proxy to map the application config to the locally running app.\n\nThis is only necessary when the application name does not match the `name` used in `package.json`."
|
|
111
116
|
},
|
|
112
117
|
"production": {
|
|
113
118
|
"$ref": "#/definitions/HostConfig",
|
|
@@ -161,12 +166,23 @@
|
|
|
161
166
|
"type": "object",
|
|
162
167
|
"properties": {
|
|
163
168
|
"local": {
|
|
164
|
-
"
|
|
165
|
-
|
|
169
|
+
"anyOf": [
|
|
170
|
+
{
|
|
171
|
+
"type": "number"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"$ref": "#/definitions/LocalHostConfig"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"description": "A local port number or host string that this application runs on when it is running locally. If passing a string, include the protocol (optional), host (required) and port (optional). For example: `https://this.ismyhost:8080`. If omitted, the protocol defaults to HTTP. If omitted, the port defaults to a unique, but stable (based on the application name) number.\n\nExamples of valid values:\n- 8080\n- my.localhost.me\n- my.localhost.me:8080\n- https://my.localhost.me\n- https://my.localhost.me:8080\n\nPassing a LocalHostConfig is deprecated and will go away soon, please pass a number or string."
|
|
166
181
|
},
|
|
167
182
|
"localPort": {
|
|
168
183
|
"type": "number",
|
|
169
|
-
"description": "The local port number that this application runs on when it is running locally. Common values include `80` for HTTP and `443` for HTTPS."
|
|
184
|
+
"description": "The local port number that this application runs on when it is running locally. Common values include `80` for HTTP and `443` for HTTPS. If omitted, the port defaults to a unique, but stable (based on the application name) number.",
|
|
185
|
+
"deprecated": "Please set the port with the 'local' field instead."
|
|
170
186
|
},
|
|
171
187
|
"fallback": {
|
|
172
188
|
"anyOf": [
|
|
@@ -177,7 +193,7 @@
|
|
|
177
193
|
"type": "string"
|
|
178
194
|
}
|
|
179
195
|
],
|
|
180
|
-
"description": "Fallback for local development, could
|
|
196
|
+
"description": "Fallback for local development, could point to any environment. If this is not provided, or the application is not running - requests to the application in local development will error.\n\nIf passing a string, include the protocol (optional), host (required) and port (optional). For example: `https://this.ismyhost:8080`. If omitted, the protocol defaults to HTTPS. If omitted, the port defaults to `80` for HTTP and `443` for HTTPS.\n\nPassing a HostConfig is deprecated and will go away soon, please pass a string."
|
|
181
197
|
},
|
|
182
198
|
"task": {
|
|
183
199
|
"type": "string",
|
|
@@ -217,7 +233,12 @@
|
|
|
217
233
|
},
|
|
218
234
|
"projectId": {
|
|
219
235
|
"type": "string",
|
|
220
|
-
"description": "Vercel project ID"
|
|
236
|
+
"description": "Vercel project ID, only required if the application name / id is different to the Vercel project name.",
|
|
237
|
+
"deprecated": "Instead, the application id should match the Vercel project name."
|
|
238
|
+
},
|
|
239
|
+
"packageName": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "The name used to run the application, e.g. the `name` field in the `package.json`.\n\nThis is used by the local proxy to map the application config to the locally running app.\n\nThis is only necessary when the application name does not match the `name` used in `package.json`."
|
|
221
242
|
},
|
|
222
243
|
"production": {
|
|
223
244
|
"$ref": "#/definitions/HostConfig",
|