@vercel/microfrontends 0.16.0 → 0.17.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 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.16.0",
32
+ version: "0.17.0",
33
33
  private: false,
34
34
  description: "Defines configuration and utilities for micro-frontend development",
35
35
  repository: {
@@ -69,6 +69,10 @@ var package_default = {
69
69
  import: "./dist/microfrontends/server.js",
70
70
  require: "./dist/microfrontends/server.cjs"
71
71
  },
72
+ "./microfrontends/utils": {
73
+ import: "./dist/microfrontends/utils.js",
74
+ require: "./dist/microfrontends/utils.cjs"
75
+ },
72
76
  "./schema": {
73
77
  import: "./dist/schema.js",
74
78
  require: "./dist/schema.cjs"
@@ -106,6 +110,7 @@ var package_default = {
106
110
  overrides: ["./dist/overrides.d.ts"],
107
111
  routing: ["./dist/routing.d.ts"],
108
112
  "microfrontends/server": ["./dist/microfrontends/server.d.ts"],
113
+ "microfrontends/utils": ["./dist/microfrontends/utils.d.ts"],
109
114
  schema: ["./dist/schema.d.ts"],
110
115
  "next/config": ["./dist/next/config.d.ts"],
111
116
  "next/middleware": ["./dist/next/middleware.d.ts"],
@@ -153,7 +158,7 @@ var package_default = {
153
158
  "@vercel-private/conformance": "^1.12.2-canary.0",
154
159
  jest: "^29.7.0",
155
160
  "jest-environment-jsdom": "29.2.2",
156
- next: "15.2.0-canary.8",
161
+ next: "15.2.0-canary.23",
157
162
  react: "19.0.0",
158
163
  "react-dom": "19.0.0",
159
164
  "ts-json-schema-generator": "^1.1.2",
@@ -163,7 +168,7 @@ var package_default = {
163
168
  webpack: "5"
164
169
  },
165
170
  peerDependencies: {
166
- next: "15.2.0-canary.8",
171
+ next: "15.2.0-canary.23",
167
172
  react: "19.0.0",
168
173
  "react-dom": "19.0.0"
169
174
  },
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/config/microfrontends/utils/index.ts
31
+ var utils_exports = {};
32
+ __export(utils_exports, {
33
+ findConfig: () => findConfig
34
+ });
35
+ module.exports = __toCommonJS(utils_exports);
36
+
37
+ // src/config/microfrontends/utils/find-config.ts
38
+ var import_node_fs = __toESM(require("fs"), 1);
39
+ var import_node_path = require("path");
40
+
41
+ // src/config/constants.ts
42
+ var CONFIGURATION_FILENAMES = [
43
+ "microfrontends.jsonc",
44
+ "microfrontends.json"
45
+ ];
46
+
47
+ // src/config/microfrontends/utils/find-config.ts
48
+ function findConfig({ dir }) {
49
+ for (const filename of CONFIGURATION_FILENAMES) {
50
+ const maybeConfig = (0, import_node_path.join)(dir, filename);
51
+ if (import_node_fs.default.existsSync(maybeConfig)) {
52
+ return maybeConfig;
53
+ }
54
+ }
55
+ return null;
56
+ }
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ findConfig
60
+ });
61
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/config/microfrontends/utils/index.ts","../../src/config/microfrontends/utils/find-config.ts","../../src/config/constants.ts"],"sourcesContent":["export { findConfig } from './find-config';\n","import fs from 'node:fs';\nimport { join } from 'node:path';\nimport { CONFIGURATION_FILENAMES } from '../../constants';\n\nexport function findConfig({ dir }: { dir: string }): string | null {\n for (const filename of CONFIGURATION_FILENAMES) {\n const maybeConfig = join(dir, filename);\n if (fs.existsSync(maybeConfig)) {\n return maybeConfig;\n }\n }\n\n return null;\n}\n","export const CONFIGURATION_FILENAMES = [\n 'microfrontends.jsonc',\n 'microfrontends.json',\n] as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,qBAAe;AACf,uBAAqB;;;ACDd,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AACF;;;ADCO,SAAS,WAAW,EAAE,IAAI,GAAmC;AAClE,aAAW,YAAY,yBAAyB;AAC9C,UAAM,kBAAc,uBAAK,KAAK,QAAQ;AACtC,QAAI,eAAAA,QAAG,WAAW,WAAW,GAAG;AAC9B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":["fs"]}
@@ -0,0 +1,5 @@
1
+ declare function findConfig({ dir }: {
2
+ dir: string;
3
+ }): string | null;
4
+
5
+ export { findConfig };
@@ -0,0 +1,24 @@
1
+ // src/config/microfrontends/utils/find-config.ts
2
+ import fs from "node:fs";
3
+ import { join } from "node:path";
4
+
5
+ // src/config/constants.ts
6
+ var CONFIGURATION_FILENAMES = [
7
+ "microfrontends.jsonc",
8
+ "microfrontends.json"
9
+ ];
10
+
11
+ // src/config/microfrontends/utils/find-config.ts
12
+ function findConfig({ dir }) {
13
+ for (const filename of CONFIGURATION_FILENAMES) {
14
+ const maybeConfig = join(dir, filename);
15
+ if (fs.existsSync(maybeConfig)) {
16
+ return maybeConfig;
17
+ }
18
+ }
19
+ return null;
20
+ }
21
+ export {
22
+ findConfig
23
+ };
24
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/config/microfrontends/utils/find-config.ts","../../src/config/constants.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { join } from 'node:path';\nimport { CONFIGURATION_FILENAMES } from '../../constants';\n\nexport function findConfig({ dir }: { dir: string }): string | null {\n for (const filename of CONFIGURATION_FILENAMES) {\n const maybeConfig = join(dir, filename);\n if (fs.existsSync(maybeConfig)) {\n return maybeConfig;\n }\n }\n\n return null;\n}\n","export const CONFIGURATION_FILENAMES = [\n 'microfrontends.jsonc',\n 'microfrontends.json',\n] as const;\n"],"mappings":";AAAA,OAAO,QAAQ;AACf,SAAS,YAAY;;;ACDd,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AACF;;;ADCO,SAAS,WAAW,EAAE,IAAI,GAAmC;AAClE,aAAW,YAAY,yBAAyB;AAC9C,UAAM,cAAc,KAAK,KAAK,QAAQ;AACtC,QAAI,GAAG,WAAW,WAAW,GAAG;AAC9B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/microfrontends",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "private": false,
5
5
  "description": "Defines configuration and utilities for micro-frontend development",
6
6
  "repository": {
@@ -40,6 +40,10 @@
40
40
  "import": "./dist/microfrontends/server.js",
41
41
  "require": "./dist/microfrontends/server.cjs"
42
42
  },
43
+ "./microfrontends/utils": {
44
+ "import": "./dist/microfrontends/utils.js",
45
+ "require": "./dist/microfrontends/utils.cjs"
46
+ },
43
47
  "./schema": {
44
48
  "import": "./dist/schema.js",
45
49
  "require": "./dist/schema.cjs"
@@ -89,6 +93,9 @@
89
93
  "microfrontends/server": [
90
94
  "./dist/microfrontends/server.d.ts"
91
95
  ],
96
+ "microfrontends/utils": [
97
+ "./dist/microfrontends/utils.d.ts"
98
+ ],
92
99
  "schema": [
93
100
  "./dist/schema.d.ts"
94
101
  ],
@@ -138,7 +145,7 @@
138
145
  "@vercel-private/conformance": "^1.12.2-canary.0",
139
146
  "jest": "^29.7.0",
140
147
  "jest-environment-jsdom": "29.2.2",
141
- "next": "15.2.0-canary.8",
148
+ "next": "15.2.0-canary.23",
142
149
  "react": "19.0.0",
143
150
  "react-dom": "19.0.0",
144
151
  "ts-json-schema-generator": "^1.1.2",
@@ -150,7 +157,7 @@
150
157
  "@pyra/typescript-config": "1.0.0"
151
158
  },
152
159
  "peerDependencies": {
153
- "next": "15.2.0-canary.8",
160
+ "next": "15.2.0-canary.23",
154
161
  "react": "19.0.0",
155
162
  "react-dom": "19.0.0"
156
163
  },