@devframes/next 0.8.0 → 0.8.1
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/index.d.mts +7 -4
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -45,9 +45,11 @@ interface CreateDevframeNextHandlerOptions {
|
|
|
45
45
|
/** Flag bag forwarded to `def.setup(ctx, { flags })`. */
|
|
46
46
|
flags?: Record<string, unknown>;
|
|
47
47
|
/**
|
|
48
|
-
* Whether the side-car runs its own auth gate.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Whether the side-car runs its own auth gate. **Gates by default** (defers
|
|
49
|
+
* to `createDevServer` — devframe's interactive OTP unless the definition's
|
|
50
|
+
* `cli.auth` opts out), so the side-car socket isn't silently reachable by
|
|
51
|
+
* anything that can open it. Pass `false` to opt out for a single-user
|
|
52
|
+
* localhost host, or a handler for a custom scheme.
|
|
51
53
|
*/
|
|
52
54
|
auth?: CreateDevServerOptions['auth'];
|
|
53
55
|
/** Origin the Next app is reachable at, for docks needing an absolute URL. */
|
|
@@ -134,7 +136,8 @@ interface DevframeNextHostMcpOptions {
|
|
|
134
136
|
exposeSharedState?: boolean | ((key: string) => boolean);
|
|
135
137
|
/**
|
|
136
138
|
* Origin allow-list beyond the loopback default. `false` disables the
|
|
137
|
-
* origin gate entirely.
|
|
139
|
+
* origin gate entirely. Note the MCP route rejects `Origin`-less requests
|
|
140
|
+
* (see `createMcpFetchHandler`).
|
|
138
141
|
*/
|
|
139
142
|
allowedOrigins?: readonly string[] | false;
|
|
140
143
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -159,7 +159,7 @@ function createDevframeNextHandler(def, options = {}) {
|
|
|
159
159
|
port,
|
|
160
160
|
flags: options.flags,
|
|
161
161
|
openBrowser: false,
|
|
162
|
-
auth: options.auth
|
|
162
|
+
auth: options.auth,
|
|
163
163
|
mcp: options.mcp
|
|
164
164
|
});
|
|
165
165
|
const mcpMeta = resolveMcpConnectionMeta(def, options.mcp, port);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/next",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "Next.js host integration for Devframe — serve mounted devframe SPAs and connection meta from an App Router route (experimental)",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"next": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0",
|
|
40
|
-
"devframe": "0.8.
|
|
40
|
+
"devframe": "0.8.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"next": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/react": "^19.2.17",
|
|
56
56
|
"react": "^19.2.8",
|
|
57
57
|
"tsdown": "^0.22.14",
|
|
58
|
-
"devframe": "0.8.
|
|
58
|
+
"devframe": "0.8.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsdown",
|