@vercel/microfrontends 0.17.2 → 0.17.4

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 (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -89
  3. package/dist/bin/cli.cjs +298 -200
  4. package/dist/config.cjs +19 -43
  5. package/dist/config.cjs.map +1 -1
  6. package/dist/config.d.ts +4 -4
  7. package/dist/config.js +19 -43
  8. package/dist/config.js.map +1 -1
  9. package/dist/{types-a29d224a.d.ts → index-5fcf0863.d.ts} +2 -2
  10. package/dist/{index-09caaa28.d.ts → index-f094deb1.d.ts} +3 -3
  11. package/dist/microfrontends/server.cjs +65 -73
  12. package/dist/microfrontends/server.cjs.map +1 -1
  13. package/dist/microfrontends/server.d.ts +4 -4
  14. package/dist/microfrontends/server.js +65 -73
  15. package/dist/microfrontends/server.js.map +1 -1
  16. package/dist/microfrontends.cjs +21 -46
  17. package/dist/microfrontends.cjs.map +1 -1
  18. package/dist/microfrontends.d.ts +4 -4
  19. package/dist/microfrontends.js +21 -46
  20. package/dist/microfrontends.js.map +1 -1
  21. package/dist/next/client.cjs +1 -1
  22. package/dist/next/client.cjs.map +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 +83 -99
  26. package/dist/next/config.cjs.map +1 -1
  27. package/dist/next/config.js +83 -99
  28. package/dist/next/config.js.map +1 -1
  29. package/dist/next/endpoints.cjs +1 -1
  30. package/dist/next/endpoints.cjs.map +1 -1
  31. package/dist/next/endpoints.d.ts +2 -2
  32. package/dist/next/endpoints.js +1 -1
  33. package/dist/next/endpoints.js.map +1 -1
  34. package/dist/next/middleware.cjs +29 -61
  35. package/dist/next/middleware.cjs.map +1 -1
  36. package/dist/next/middleware.js +29 -61
  37. package/dist/next/middleware.js.map +1 -1
  38. package/dist/next/testing.cjs +24 -52
  39. package/dist/next/testing.cjs.map +1 -1
  40. package/dist/next/testing.d.ts +4 -4
  41. package/dist/next/testing.js +24 -52
  42. package/dist/next/testing.js.map +1 -1
  43. package/dist/overrides.cjs +1 -2
  44. package/dist/overrides.cjs.map +1 -1
  45. package/dist/overrides.d.ts +3 -3
  46. package/dist/overrides.js +1 -2
  47. package/dist/overrides.js.map +1 -1
  48. package/dist/schema.cjs.map +1 -1
  49. package/dist/schema.d.ts +1 -1
  50. package/dist/{types-fc30696d.d.ts → types-5900be7c.d.ts} +1 -1
  51. package/dist/{types-cfe3308b.d.ts → types-ecd7b91b.d.ts} +1 -1
  52. package/dist/utils/mfe-port.cjs +65 -73
  53. package/dist/utils/mfe-port.cjs.map +1 -1
  54. package/dist/utils/mfe-port.js +65 -73
  55. package/dist/utils/mfe-port.js.map +1 -1
  56. package/dist/validation.cjs +46 -17
  57. package/dist/validation.cjs.map +1 -1
  58. package/dist/validation.d.ts +1 -1
  59. package/dist/validation.js +46 -17
  60. package/dist/validation.js.map +1 -1
  61. package/package.json +20 -24
  62. package/schema/schema.json +15 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/microfrontends",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "private": false,
5
5
  "description": "Defines configuration and utilities for micro-frontend development",
6
6
  "repository": {
@@ -10,12 +10,8 @@
10
10
  },
11
11
  "sideEffects": false,
12
12
  "type": "module",
13
- "bin": {
14
- "microfrontends": "./cli/index.cjs",
15
- "micro-frontends": "./cli/index.cjs"
16
- },
17
13
  "exports": {
18
- "./schema.json": "./schema/schema-v2.json",
14
+ "./schema.json": "./schema/schema.json",
19
15
  "./validation": {
20
16
  "import": "./dist/validation.js",
21
17
  "require": "./dist/validation.cjs"
@@ -119,6 +115,9 @@
119
115
  ]
120
116
  }
121
117
  },
118
+ "bin": {
119
+ "microfrontends": "./cli/index.cjs"
120
+ },
122
121
  "files": [
123
122
  "dist",
124
123
  "schema"
@@ -133,6 +132,7 @@
133
132
  "path-to-regexp": "6.2.1"
134
133
  },
135
134
  "devDependencies": {
135
+ "@edge-runtime/jest-environment": "^4.0.0",
136
136
  "@edge-runtime/types": "^3.0.2",
137
137
  "@testing-library/react": "^15.0.7",
138
138
  "@types/cookie": "0.5.1",
@@ -142,38 +142,34 @@
142
142
  "@types/node": "20.11.30",
143
143
  "@types/react": "18.3.1",
144
144
  "@types/react-dom": "18.3.0",
145
- "@vercel-private/conformance": "^1.12.2-canary.0",
146
145
  "jest": "^29.7.0",
147
146
  "jest-environment-jsdom": "29.2.2",
148
- "next": "15.2.0-canary.28",
147
+ "next": "15.2.0-canary.32",
149
148
  "react": "19.0.0",
150
149
  "react-dom": "19.0.0",
151
150
  "ts-json-schema-generator": "^1.1.2",
151
+ "ts-node": "~10.9.2",
152
152
  "tsup": "^6.6.2",
153
153
  "tsx": "^4.6.2",
154
- "typescript": "5.6.3",
154
+ "typescript": "5.7.3",
155
155
  "webpack": "5",
156
- "@pyra/eslint-config": "1.0.0",
157
- "@pyra/typescript-config": "1.0.0"
156
+ "eslint-config-custom": "0.0.0",
157
+ "ts-config": "1.0.0"
158
158
  },
159
159
  "peerDependencies": {
160
- "next": "15.2.0-canary.28",
161
- "react": "19.0.0",
162
- "react-dom": "19.0.0"
163
- },
164
- "publishConfig": {
165
- "access": "restricted"
160
+ "next": ">=13",
161
+ "react": ">=17.0.0",
162
+ "react-dom": ">=17.0.0"
166
163
  },
167
164
  "scripts": {
168
165
  "build": "tsup",
169
166
  "postbuild": "pnpm generate:exports",
170
- "generate:schema": "tsx scripts/generate-json-schema.ts",
171
167
  "generate:exports": "tsx scripts/generate-exports/index.ts",
172
- "conformance": "vercel conformance",
173
- "eslint": "eslint-runner",
174
- "eslint-fix": "eslint-runner --fix",
175
- "type-check": "tsc --noEmit",
176
- "unit-test": "cross-env TZ=UTC jest",
177
- "proxy": "tsx src/proxy/index.ts"
168
+ "generate:schema": "tsx scripts/generate-json-schema.ts",
169
+ "lint": "eslint .",
170
+ "lint-fix": "eslint . --fix",
171
+ "proxy": "tsx src/proxy/index.ts",
172
+ "test": "cross-env TZ=UTC jest",
173
+ "typecheck": "tsc --noEmit"
178
174
  }
179
175
  }
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "version": {
22
22
  "type": "string",
23
- "const": "2"
23
+ "const": "1"
24
24
  },
25
25
  "options": {
26
26
  "$ref": "#/definitions/Options"
@@ -30,6 +30,9 @@
30
30
  "additionalProperties": {
31
31
  "$ref": "#/definitions/Application"
32
32
  },
33
+ "propertyNames": {
34
+ "description": "The unique identifier for a Microfrontend Application. Must match the `name` field of the application's `package.json`."
35
+ },
33
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."
34
37
  },
35
38
  "applications": {
@@ -38,8 +41,7 @@
38
41
  }
39
42
  },
40
43
  "required": [
41
- "applications",
42
- "version"
44
+ "applications"
43
45
  ],
44
46
  "additionalProperties": false
45
47
  },
@@ -153,7 +155,7 @@
153
155
  "http",
154
156
  "https"
155
157
  ],
156
- "description": "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n* @defaultValue \"http\" for local development, \"https\" for otherwise"
158
+ "description": "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
157
159
  },
158
160
  "port": {
159
161
  "type": "number",
@@ -170,7 +172,7 @@
170
172
  "http",
171
173
  "https"
172
174
  ],
173
- "description": "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n* @defaultValue \"http\" for local development, \"https\" for otherwise"
175
+ "description": "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
174
176
  },
175
177
  "host": {
176
178
  "type": "string",
@@ -241,6 +243,9 @@
241
243
  "type": "object",
242
244
  "additionalProperties": {
243
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`."
244
249
  }
245
250
  },
246
251
  "ChildConfig": {
@@ -251,7 +256,7 @@
251
256
  },
252
257
  "version": {
253
258
  "type": "string",
254
- "const": "2"
259
+ "const": "1"
255
260
  },
256
261
  "options": {
257
262
  "$ref": "#/definitions/Options"
@@ -261,6 +266,9 @@
261
266
  "additionalProperties": {
262
267
  "$ref": "#/definitions/Application"
263
268
  },
269
+ "propertyNames": {
270
+ "description": "The unique identifier for a Microfrontend Application. Must match the `name` field of the application's `package.json`."
271
+ },
264
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."
265
273
  },
266
274
  "partOf": {
@@ -269,8 +277,7 @@
269
277
  }
270
278
  },
271
279
  "required": [
272
- "partOf",
273
- "version"
280
+ "partOf"
274
281
  ],
275
282
  "additionalProperties": false
276
283
  }