@devframes/vite 0.9.12 → 0.9.15

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,6 +1,6 @@
1
1
  import { DevframeClientHost, DevframeClientHostOptions, DevframeClientRuntime, DevframeClientRuntime as DevframeClientRuntime$1, DevframeClientRuntimeOptions, DevframeClientRuntimeOptions as DevframeClientRuntimeOptions$1 } from "@devframes/hub/client";
2
2
  //#region src/hub-client.d.ts
3
- interface MountDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
3
+ export interface MountDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
4
4
  /**
5
5
  * Hub mount base to connect to. Forwarded as `connect.baseURL` when no
6
6
  * `rpc` / `connect.baseURL` is supplied.
@@ -21,6 +21,6 @@ interface MountDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
21
21
  * With the default `@devframes/hub-ui`, its injected `embedded.js` boots the
22
22
  * client for you, so the host page needs no client code.
23
23
  */
24
- declare function mountDevframeHubClient(options?: MountDevframeHubClientOptions): Promise<DevframeClientRuntime$1>;
24
+ export declare function mountDevframeHubClient(options?: MountDevframeHubClientOptions): Promise<DevframeClientRuntime$1>;
25
25
  //#endregion
26
- export { type DevframeClientHost, type DevframeClientHostOptions, type DevframeClientRuntime, type DevframeClientRuntimeOptions, MountDevframeHubClientOptions, mountDevframeHubClient };
26
+ export type { DevframeClientHost, DevframeClientHostOptions, DevframeClientRuntime, DevframeClientRuntimeOptions };
package/dist/hub.d.mts CHANGED
@@ -3,7 +3,7 @@ import { DevframeHubContext } from "@devframes/hub/node";
3
3
  import { ClientScriptEntry } from "@devframes/hub/types";
4
4
  import { Plugin } from "vite";
5
5
  //#region src/hub.d.ts
6
- interface ViteDevframeHubOptions {
6
+ export interface ViteDevframeHubOptions {
7
7
  /**
8
8
  * Mount base the hub answers under; every frame lives at `<base><id>/`.
9
9
  * Default: `/__devframes/`.
@@ -108,6 +108,5 @@ interface ViteDevframeHubOptions {
108
108
  * to that effect (silence it with `{ quiet: true }`). For dev-serving a
109
109
  * single devframe's own SPA, reach for `@devframes/vite/single` instead.
110
110
  */
111
- declare function viteDevframeHub(options?: ViteDevframeHubOptions): Plugin;
112
- //#endregion
113
- export { ViteDevframeHubOptions, viteDevframeHub };
111
+ export declare function viteDevframeHub(options?: ViteDevframeHubOptions): Plugin;
112
+ //#endregion
package/dist/single.d.mts CHANGED
@@ -13,7 +13,7 @@ import { WsOriginRegistry } from "devframe/rpc/transports/ws-server";
13
13
  * plugin's `configureServer(server: ViteDevServer)` hook (typed against
14
14
  * the real `Plugin` below) is still fully type-safe.
15
15
  */
16
- interface DevframeViteDevServerLike {
16
+ export interface DevframeViteDevServerLike {
17
17
  middlewares: {
18
18
  use: ((path: string, handler: (req: IncomingMessage, res: ServerResponse, next?: (err?: unknown) => void) => void) => void) & ((handler: (req: IncomingMessage, res: ServerResponse, next?: (err?: unknown) => void) => void) => void);
19
19
  };
@@ -28,8 +28,8 @@ interface DevframeViteDevServerLike {
28
28
  } | null;
29
29
  }
30
30
  /** A devframe Vite plugin: a real Vite `Plugin`, scoped to its `serve`-only hooks. */
31
- type DevframeVitePlugin = Plugin;
32
- interface DevframeVitePluginOptions {
31
+ export type DevframeVitePlugin = Plugin;
32
+ export interface DevframeVitePluginOptions {
33
33
  /**
34
34
  * Mount base. Defaults to `def.basePath ?? '/__<id>/'` for this hosted
35
35
  * adapter, so the devframe shares the origin with the host Vite app.
@@ -51,8 +51,8 @@ interface DevframeVitePluginOptions {
51
51
  * whose backend runs elsewhere, or a hub that only wants the static
52
52
  * assets).
53
53
  */
54
- declare function devframeVitePlugin(d: DevframeDefinition, options?: DevframeVitePluginOptions): DevframeVitePlugin;
55
- interface DevframeViteBridgeOptions {
54
+ export declare function devframeVitePlugin(d: DevframeDefinition, options?: DevframeVitePluginOptions): DevframeVitePlugin;
55
+ export interface DevframeViteBridgeOptions {
56
56
  /**
57
57
  * Mount base. Defaults to `def.basePath ?? '/__<id>/'` for this hosted
58
58
  * adapter, so the devframe shares the origin with the host Vite app.
@@ -125,8 +125,8 @@ interface DevframeViteBridgeOptions {
125
125
  * backend, or `createCac` (`devframe/adapters/cac`) for the all-in-one
126
126
  * `dev` / `build` / `mcp` shell.
127
127
  */
128
- declare function devframeViteBridge(d: DevframeDefinition, options?: DevframeViteBridgeOptions): DevframeVitePlugin;
129
- interface DevframeViteOptions extends DevframeViteBridgeOptions {
128
+ export declare function devframeViteBridge(d: DevframeDefinition, options?: DevframeViteBridgeOptions): DevframeVitePlugin;
129
+ export interface DevframeViteOptions extends DevframeViteBridgeOptions {
130
130
  /**
131
131
  * Start devframe's RPC/WS bridge ({@link devframeViteBridge}) instead of
132
132
  * statically mounting the built SPA ({@link devframeVitePlugin}).
@@ -142,6 +142,5 @@ interface DevframeViteOptions extends DevframeViteBridgeOptions {
142
142
  * once (e.g. a bridge for RPC alongside a static mount serving its own
143
143
  * bundled UI).
144
144
  */
145
- declare function devframeVite(d: DevframeDefinition, options?: DevframeViteOptions): DevframeVitePlugin;
146
- //#endregion
147
- export { DevframeViteBridgeOptions, DevframeViteDevServerLike, DevframeViteOptions, DevframeVitePlugin, DevframeVitePluginOptions, devframeVite, devframeViteBridge, devframeVitePlugin };
145
+ export declare function devframeVite(d: DevframeDefinition, options?: DevframeViteOptions): DevframeVitePlugin;
146
+ //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/vite",
3
3
  "type": "module",
4
- "version": "0.9.12",
4
+ "version": "0.9.15",
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": "0.9.12",
34
- "@devframes/hub-ui": "0.9.12",
35
- "devframe": "0.9.12",
33
+ "@devframes/hub": "0.9.15",
34
+ "@devframes/hub-ui": "0.9.15",
35
+ "devframe": "0.9.15",
36
36
  "vite": "^7.0.0 || ^8.0.0"
37
37
  },
38
38
  "peerDependenciesMeta": {
@@ -50,16 +50,16 @@
50
50
  "pathe": "^2.0.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@devframes/hub": "0.9.12",
54
- "@devframes/hub-ui": "0.9.12",
53
+ "@devframes/hub": "0.9.15",
54
+ "@devframes/hub-ui": "0.9.15",
55
55
  "@modelcontextprotocol/client": "^2.0.0",
56
- "@types/node": "^26.4.0",
56
+ "@types/node": "^26.5.0",
57
57
  "@types/ws": "^8.18.1",
58
- "devframe": "0.9.12",
58
+ "devframe": "0.9.15",
59
59
  "get-port-please": "^3.2.0",
60
- "tsdown": "^0.22.14",
60
+ "tsdown": "^0.23.0",
61
61
  "vite": "^8.2.2",
62
- "vitest": "^4.1.11",
62
+ "vitest": "^5.0.0",
63
63
  "ws": "^8.21.3"
64
64
  },
65
65
  "scripts": {