@vercel/microfrontends 0.17.4 → 0.18.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 (53) hide show
  1. package/README.md +7 -159
  2. package/dist/bin/cli.cjs +52 -69
  3. package/dist/config.cjs +1 -1
  4. package/dist/config.cjs.map +1 -1
  5. package/dist/config.d.ts +4 -4
  6. package/dist/config.js +1 -1
  7. package/dist/config.js.map +1 -1
  8. package/dist/{index-f094deb1.d.ts → index-24024799.d.ts} +3 -3
  9. package/dist/{index-5fcf0863.d.ts → index-ef8657e6.d.ts} +0 -10
  10. package/dist/microfrontends/server.cjs +33 -66
  11. package/dist/microfrontends/server.cjs.map +1 -1
  12. package/dist/microfrontends/server.d.ts +4 -4
  13. package/dist/microfrontends/server.js +33 -66
  14. package/dist/microfrontends/server.js.map +1 -1
  15. package/dist/microfrontends.cjs +1 -1
  16. package/dist/microfrontends.cjs.map +1 -1
  17. package/dist/microfrontends.d.ts +4 -4
  18. package/dist/microfrontends.js +1 -1
  19. package/dist/microfrontends.js.map +1 -1
  20. package/dist/next/client.cjs +1 -1
  21. package/dist/next/client.cjs.map +1 -1
  22. package/dist/next/client.d.ts +1 -1
  23. package/dist/next/client.js +1 -1
  24. package/dist/next/client.js.map +1 -1
  25. package/dist/next/config.cjs +33 -66
  26. package/dist/next/config.cjs.map +1 -1
  27. package/dist/next/config.js +33 -66
  28. package/dist/next/config.js.map +1 -1
  29. package/dist/next/endpoints.d.ts +2 -2
  30. package/dist/next/middleware.cjs +1 -5
  31. package/dist/next/middleware.cjs.map +1 -1
  32. package/dist/next/middleware.js +1 -5
  33. package/dist/next/middleware.js.map +1 -1
  34. package/dist/next/testing.cjs +1 -1
  35. package/dist/next/testing.cjs.map +1 -1
  36. package/dist/next/testing.d.ts +4 -4
  37. package/dist/next/testing.js +1 -1
  38. package/dist/next/testing.js.map +1 -1
  39. package/dist/overrides.d.ts +3 -3
  40. package/dist/schema.d.ts +1 -1
  41. package/dist/{types-5900be7c.d.ts → types-089498fd.d.ts} +1 -1
  42. package/dist/{types-ecd7b91b.d.ts → types-9f161cec.d.ts} +1 -1
  43. package/dist/utils/mfe-port.cjs +33 -66
  44. package/dist/utils/mfe-port.cjs.map +1 -1
  45. package/dist/utils/mfe-port.js +33 -66
  46. package/dist/utils/mfe-port.js.map +1 -1
  47. package/dist/validation.cjs +31 -64
  48. package/dist/validation.cjs.map +1 -1
  49. package/dist/validation.d.ts +1 -1
  50. package/dist/validation.js +31 -64
  51. package/dist/validation.js.map +1 -1
  52. package/package.json +19 -3
  53. package/schema/schema.json +9 -33
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@vercel/microfrontends",
3
- "version": "0.17.4",
3
+ "version": "0.18.0",
4
4
  "private": false,
5
- "description": "Defines configuration and utilities for micro-frontend development",
5
+ "description": "Defines configuration and utilities for microfrontends development",
6
+ "keywords": [
7
+ "microfrontends",
8
+ "Next.js"
9
+ ],
10
+ "homepage": "https://vercel.com/docs/microfrontends",
6
11
  "repository": {
7
12
  "type": "git",
8
13
  "url": "https://github.com/vercel/front.git",
@@ -144,7 +149,7 @@
144
149
  "@types/react-dom": "18.3.0",
145
150
  "jest": "^29.7.0",
146
151
  "jest-environment-jsdom": "29.2.2",
147
- "next": "15.2.0-canary.32",
152
+ "next": "15.1.6",
148
153
  "react": "19.0.0",
149
154
  "react-dom": "19.0.0",
150
155
  "ts-json-schema-generator": "^1.1.2",
@@ -161,6 +166,17 @@
161
166
  "react": ">=17.0.0",
162
167
  "react-dom": ">=17.0.0"
163
168
  },
169
+ "peerDependenciesMeta": {
170
+ "next": {
171
+ "optional": true
172
+ },
173
+ "react": {
174
+ "optional": true
175
+ },
176
+ "react-dom": {
177
+ "optional": true
178
+ }
179
+ },
164
180
  "scripts": {
165
181
  "build": "tsup",
166
182
  "postbuild": "pnpm generate:exports",
@@ -25,16 +25,6 @@
25
25
  "options": {
26
26
  "$ref": "#/definitions/Options"
27
27
  },
28
- "remotes": {
29
- "type": "object",
30
- "additionalProperties": {
31
- "$ref": "#/definitions/Application"
32
- },
33
- "propertyNames": {
34
- "description": "The unique identifier for a Microfrontend Application. Must match the `name` field of the application's `package.json`."
35
- },
36
- "description": "Applications that only serve a subset of the microfrontend routes only need to reference the name of the primary application that owns the full microfrontends configuration."
37
- },
38
28
  "applications": {
39
29
  "$ref": "#/definitions/ApplicationRouting",
40
30
  "description": "Mapping of application names to the routes that they host. Only needs to be defined in the application that owns the primary microfrontend domain"
@@ -62,10 +52,6 @@
62
52
  "VercelOptions": {
63
53
  "type": "object",
64
54
  "properties": {
65
- "teamSlug": {
66
- "type": "string",
67
- "description": "Team slug for the Vercel team"
68
- },
69
55
  "disableOverrides": {
70
56
  "type": "boolean",
71
57
  "description": "If you want to disable the overrides for the site. For example, if you are managing rewrites between applications externally, you may wish to disable the overrides on the toolbar as they will have no effect."
@@ -83,6 +69,15 @@
83
69
  },
84
70
  "additionalProperties": false
85
71
  },
72
+ "ApplicationRouting": {
73
+ "type": "object",
74
+ "additionalProperties": {
75
+ "$ref": "#/definitions/Application"
76
+ },
77
+ "propertyNames": {
78
+ "description": "The unique identifier for a Microfrontend Application. Must match the `name` field of the application's `package.json`."
79
+ }
80
+ },
86
81
  "Application": {
87
82
  "anyOf": [
88
83
  {
@@ -239,15 +234,6 @@
239
234
  ],
240
235
  "additionalProperties": false
241
236
  },
242
- "ApplicationRouting": {
243
- "type": "object",
244
- "additionalProperties": {
245
- "$ref": "#/definitions/Application"
246
- },
247
- "propertyNames": {
248
- "description": "The unique identifier for a Microfrontend Application. Must match the `name` field of the application's `package.json`."
249
- }
250
- },
251
237
  "ChildConfig": {
252
238
  "type": "object",
253
239
  "properties": {
@@ -261,16 +247,6 @@
261
247
  "options": {
262
248
  "$ref": "#/definitions/Options"
263
249
  },
264
- "remotes": {
265
- "type": "object",
266
- "additionalProperties": {
267
- "$ref": "#/definitions/Application"
268
- },
269
- "propertyNames": {
270
- "description": "The unique identifier for a Microfrontend Application. Must match the `name` field of the application's `package.json`."
271
- },
272
- "description": "Applications that only serve a subset of the microfrontend routes only need to reference the name of the primary application that owns the full microfrontends configuration."
273
- },
274
250
  "partOf": {
275
251
  "type": "string",
276
252
  "description": "Applications that only serve a subset of the microfrontend routes only need to reference the name of the primary application that owns the full microfrontends configuration."