@devframes/vite 1.3.1 → 1.3.2

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.
@@ -1,5 +1,4 @@
1
1
  import { DevframeClientRuntime, DevframeClientRuntime as DevframeClientRuntime$1, DevframeClientRuntimeOptions, DevframeClientRuntimeOptions as DevframeClientRuntimeOptions$1 } from "@devframes/hub/client";
2
- //#region src/hub-client.d.ts
3
2
  export interface MountDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
4
3
  /**
5
4
  * Hub mount base to connect to. Forwarded as `connect.baseURL` when no
@@ -22,5 +21,4 @@ export interface MountDevframeHubClientOptions extends DevframeClientRuntimeOpti
22
21
  * client for you, so the host page needs no client code.
23
22
  */
24
23
  export declare function mountDevframeHubClient(options?: MountDevframeHubClientOptions): Promise<DevframeClientRuntime$1>;
25
- //#endregion
26
24
  export type { DevframeClientRuntime, DevframeClientRuntimeOptions };
@@ -1,6 +1,6 @@
1
1
  import { createDevframeClientRuntime } from "@devframes/hub/client";
2
2
  import { DEVFRAMES_HUB_BASE } from "@devframes/hub/constants";
3
- //#region src/hub-client.ts
3
+ // src/hub-client.ts
4
4
  /**
5
5
  * Boot the devframes-hub **client runtime** in the host page: the browser
6
6
  * half of {@link import('./hub').viteDevframeHub}. Connects RPC to the hub
@@ -23,5 +23,4 @@ function mountDevframeHubClient(options = {}) {
23
23
  } }
24
24
  });
25
25
  }
26
- //#endregion
27
26
  export { mountDevframeHubClient };
package/dist/hub.d.mts CHANGED
@@ -2,7 +2,6 @@ import { DevframeHubUi, DockRendererRegistration, InitHubOptions } from "@devfra
2
2
  import { DevframeHubContext } from "@devframes/hub/node";
3
3
  import { ClientScriptEntry } from "@devframes/hub/types";
4
4
  import { Plugin } from "vite";
5
- //#region src/hub.d.ts
6
5
  export interface ViteDevframeHubOptions {
7
6
  /**
8
7
  * Mount base the hub answers under; every frame lives at `<base><id>/`.
@@ -108,5 +107,4 @@ export interface ViteDevframeHubOptions {
108
107
  * to that effect (silence it with `{ quiet: true }`). For dev-serving a
109
108
  * single devframe's own SPA, reach for `@devframes/vite/single` instead.
110
109
  */
111
- export declare function viteDevframeHub(options?: ViteDevframeHubOptions): Plugin;
112
- //#endregion
110
+ export declare function viteDevframeHub(options?: ViteDevframeHubOptions): Plugin;
package/dist/hub.mjs CHANGED
@@ -2,7 +2,7 @@ import process from "node:process";
2
2
  import { resolve } from "pathe";
3
3
  import { DEVFRAMES_HUB_BASE, normalizeHubBase } from "@devframes/hub/constants";
4
4
  import { initHub } from "@devframes/hub/initiate";
5
- //#region src/hub.ts
5
+ // src/hub.ts
6
6
  let recommendedViteDevtools = false;
7
7
  function recommendViteDevtools() {
8
8
  if (recommendedViteDevtools) return;
@@ -179,5 +179,4 @@ function attachClientScripts(devframes, clientScripts) {
179
179
  };
180
180
  });
181
181
  }
182
- //#endregion
183
182
  export { viteDevframeHub };
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/index.ts
1
+ // src/index.ts
2
2
  throw new Error("[@devframes/vite] has no root export. Import from a scoped subpath instead:\n • \"@devframes/vite/single\": dev-serve one devframe's SPA with Vite\n • \"@devframes/vite/hub\": mount a devframes-hub inside a Vite app\n");
3
- //#endregion
4
3
  export {};
package/dist/single.d.mts CHANGED
@@ -3,7 +3,6 @@ import { DevframeDefinition, McpSetting } from "devframe";
3
3
  import { DevframeAuthHandler } from "devframe/node/auth";
4
4
  import { WsOriginRegistry } from "devframe/rpc/transports/ws-server";
5
5
  import { IncomingMessage, ServerResponse } from "node:http";
6
- //#region src/single.d.ts
7
6
  /**
8
7
  * The slice of a Vite dev server these plugins touch, deliberately
9
8
  * narrower than Vite's real `ViteDevServer` (which carries the module
@@ -142,5 +141,4 @@ export interface DevframeViteOptions extends DevframeViteBridgeOptions {
142
141
  * once (e.g. a bridge for RPC alongside a static mount serving its own
143
142
  * bundled UI).
144
143
  */
145
- export declare function devframeVite(d: DevframeDefinition, options?: DevframeViteOptions): DevframeVitePlugin;
146
- //#endregion
144
+ export declare function devframeVite(d: DevframeDefinition, options?: DevframeViteOptions): DevframeVitePlugin;
package/dist/single.mjs CHANGED
@@ -4,7 +4,7 @@ import { diagnostics, normalizeBasePath, resolveBasePath } from "devframe/intern
4
4
  import { resolveStaticAssetsSource } from "devframe/utils/remote-assets";
5
5
  import { serveStaticNodeMiddleware } from "devframe/utils/serve-static";
6
6
  import { join, resolve } from "pathe";
7
- //#region src/single.ts
7
+ // src/single.ts
8
8
  /**
9
9
  * Statically mount a devframe's built SPA (`def.clientAssets`) at
10
10
  * `options.base` inside an existing Vite dev server. No RPC server is
@@ -120,5 +120,4 @@ function devframeVite(d, options = {}) {
120
120
  function normalizeMountBase(base) {
121
121
  return normalizeBasePath(base.replace(/^\.\/?/, "/"));
122
122
  }
123
- //#endregion
124
123
  export { devframeVite, devframeViteBridge, devframeVitePlugin };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/vite",
3
3
  "type": "module",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "description": "Vite plugin for mounting a devframe inside any Vite-based host (Astro, SolidStart, Nuxt, plain Vite apps).",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -30,9 +30,9 @@
30
30
  "dist"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@devframes/hub": "1.3.1",
34
- "@devframes/hub-ui": "1.3.1",
35
- "devframe": "1.3.1",
33
+ "@devframes/hub": "1.3.2",
34
+ "@devframes/hub-ui": "1.3.2",
35
+ "devframe": "1.3.2",
36
36
  "vite": "^7.0.0 || ^8.0.0"
37
37
  },
38
38
  "peerDependenciesMeta": {
@@ -50,17 +50,17 @@
50
50
  "pathe": "^2.0.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@devframes/hub": "1.3.1",
54
- "@devframes/hub-ui": "1.3.1",
55
- "@modelcontextprotocol/client": "^2.3.1",
56
- "@types/node": "^26.6.5",
53
+ "@devframes/hub": "1.3.2",
54
+ "@devframes/hub-ui": "1.3.2",
55
+ "@modelcontextprotocol/client": "^2.4.0",
56
+ "@types/node": "^26.6.6",
57
57
  "@types/ws": "^8.18.2",
58
- "devframe": "1.3.1",
58
+ "devframe": "1.3.2",
59
59
  "get-port-please": "^3.2.0",
60
- "tsdown": "0.23.0",
61
- "vite": "^8.3.4",
60
+ "tsdown": "^0.23.4",
61
+ "vite": "^8.3.5",
62
62
  "vitest": "^5.0.5",
63
- "ws": "^8.22.0"
63
+ "ws": "^8.22.1"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsdown",