@devframes/nuxt 0.9.8 → 0.9.9
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/hub-client.d.mts +1 -1
- package/dist/hub-client.mjs +1 -1
- package/dist/hub.d.mts +2 -2
- package/dist/hub.mjs +3 -3
- package/dist/index.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/single.d.mts +6 -6
- package/package.json +6 -6
package/dist/hub-client.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ interface UseDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Boot the devframes-hub **client runtime** inside a Nuxt (Vue) client
|
|
15
|
-
* component
|
|
15
|
+
* component: the browser half of `@devframes/nuxt/hub`. Connects RPC to the
|
|
16
16
|
* hub (defaulting `base` to `/__devframes/`), assembles the shared
|
|
17
17
|
* `DevframeClientContext`, imports each dock's client script into the page,
|
|
18
18
|
* and disposes when the current effect scope is torn down. Returns a ref that
|
package/dist/hub-client.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { onScopeDispose, shallowRef } from "vue";
|
|
|
4
4
|
//#region src/hub-client.ts
|
|
5
5
|
/**
|
|
6
6
|
* Boot the devframes-hub **client runtime** inside a Nuxt (Vue) client
|
|
7
|
-
* component
|
|
7
|
+
* component: the browser half of `@devframes/nuxt/hub`. Connects RPC to the
|
|
8
8
|
* hub (defaulting `base` to `/__devframes/`), assembles the shared
|
|
9
9
|
* `DevframeClientContext`, imports each dock's client script into the page,
|
|
10
10
|
* and disposes when the current effect scope is torn down. Returns a ref that
|
package/dist/hub.d.mts
CHANGED
|
@@ -16,8 +16,8 @@ interface DevframeNuxtHubOptions extends Omit<ViteDevframeHubOptions, 'quiet'> {
|
|
|
16
16
|
}
|
|
17
17
|
type ModuleOptions = DevframeNuxtHubOptions;
|
|
18
18
|
/**
|
|
19
|
-
* Nuxt module that mounts a whole **devframes-hub** alongside `nuxt dev
|
|
20
|
-
* many integrations under one namespace, one merged RPC registry
|
|
19
|
+
* Nuxt module that mounts a whole **devframes-hub** alongside `nuxt dev`,
|
|
20
|
+
* many integrations under one namespace, one merged RPC registry, by wiring
|
|
21
21
|
* `@devframes/vite`'s hub plugin into Nuxt's underlying Vite dev server and
|
|
22
22
|
* injecting `@devframes/hub-ui`'s floating dock into the app. The UI defaults
|
|
23
23
|
* to `@devframes/hub-ui`; pass `ui` to swap it or `ui: false` for a headless
|
package/dist/hub.mjs
CHANGED
|
@@ -6,11 +6,11 @@ let recommendedNuxtDevtools = false;
|
|
|
6
6
|
function recommendNuxtDevtools() {
|
|
7
7
|
if (recommendedNuxtDevtools) return;
|
|
8
8
|
recommendedNuxtDevtools = true;
|
|
9
|
-
console.warn("[@devframes/nuxt/hub] Serving a devframes-hub directly inside Nuxt works, but Nuxt DevTools (`@nuxt/devtools`) integrates the hub protocol natively
|
|
9
|
+
console.warn("[@devframes/nuxt/hub] Serving a devframes-hub directly inside Nuxt works, but Nuxt DevTools (`@nuxt/devtools`) integrates the hub protocol natively so prefer it for a first-class, multi-integration experience. Pass `{ quiet: true }` to silence this notice.");
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Nuxt module that mounts a whole **devframes-hub** alongside `nuxt dev
|
|
13
|
-
* many integrations under one namespace, one merged RPC registry
|
|
12
|
+
* Nuxt module that mounts a whole **devframes-hub** alongside `nuxt dev`,
|
|
13
|
+
* many integrations under one namespace, one merged RPC registry, by wiring
|
|
14
14
|
* `@devframes/vite`'s hub plugin into Nuxt's underlying Vite dev server and
|
|
15
15
|
* injecting `@devframes/hub-ui`'s floating dock into the app. The UI defaults
|
|
16
16
|
* to `@devframes/hub-ui`; pass `ui` to swap it or `ui: false` for a headless
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/index.ts
|
|
2
|
-
throw new Error("[@devframes/nuxt] has no root export. Use a scoped subpath instead:\n • modules: [\"@devframes/nuxt/single\"]
|
|
2
|
+
throw new Error("[@devframes/nuxt] has no root export. Use a scoped subpath instead:\n • modules: [\"@devframes/nuxt/single\"]: Nuxt app as one devframe client\n • modules: [\"@devframes/nuxt/hub\"]: mount a devframes-hub with nuxt dev\n");
|
|
3
3
|
//#endregion
|
|
4
4
|
export {};
|
package/dist/module.json
CHANGED
package/dist/single.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ interface DevframeNuxtModuleOptions {
|
|
|
4
4
|
/**
|
|
5
5
|
* Base URL, relative to the deployed page, where the devframe
|
|
6
6
|
* connection meta (`__connection.json`) and dump shards live.
|
|
7
|
-
* Defaults to `'./'`
|
|
7
|
+
* Defaults to `'./'` (the SPA root) so a single build works at any
|
|
8
8
|
* deployment base (the browser resolves relative fetches against
|
|
9
9
|
* `document.baseURI`).
|
|
10
10
|
*/
|
|
@@ -12,7 +12,7 @@ interface DevframeNuxtModuleOptions {
|
|
|
12
12
|
/**
|
|
13
13
|
* Disable the opinionated Nuxt app defaults (`app.baseURL: './'`,
|
|
14
14
|
* `vite.base: './'`). Set to `true` if you need to own these yourself.
|
|
15
|
-
* Defaults to `false
|
|
15
|
+
* Defaults to `false`; devframe sets sensible base-agnostic defaults.
|
|
16
16
|
*/
|
|
17
17
|
skipAppDefaults?: boolean;
|
|
18
18
|
/**
|
|
@@ -24,14 +24,14 @@ interface DevframeNuxtModuleOptions {
|
|
|
24
24
|
*/
|
|
25
25
|
devframe?: DevframeDefinition;
|
|
26
26
|
/**
|
|
27
|
-
* Dev-time middleware mode
|
|
27
|
+
* Dev-time middleware mode: whether to start `@devframes/vite`'s
|
|
28
28
|
* RPC bridge (`devframeViteBridge`) alongside `nuxt dev`.
|
|
29
29
|
*
|
|
30
|
-
* - `true` (default)
|
|
30
|
+
* - `true` (default): when `devframe` is set and Nuxt is in dev
|
|
31
31
|
* mode, start the RPC bridge with all defaults.
|
|
32
|
-
* - `false
|
|
32
|
+
* - `false`: skip the bridge entirely. The module remains
|
|
33
33
|
* client-only.
|
|
34
|
-
* - object
|
|
34
|
+
* - object: enable with explicit overrides.
|
|
35
35
|
*/
|
|
36
36
|
devMiddleware?: boolean | {
|
|
37
37
|
/** Override the bridge port. Default: resolved via `get-port-please`. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.9",
|
|
5
5
|
"description": "Nuxt module that exposes a Nuxt app as a devframe client.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@devframes/hub": "0.9.
|
|
45
|
+
"@devframes/hub": "0.9.9",
|
|
46
46
|
"@nuxt/kit": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
|
|
47
|
-
"devframe": "0.9.
|
|
47
|
+
"devframe": "0.9.9",
|
|
48
48
|
"vue": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@devframes/vite": "0.9.
|
|
59
|
+
"@devframes/vite": "0.9.9"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@devframes/hub": "0.9.
|
|
62
|
+
"@devframes/hub": "0.9.9",
|
|
63
63
|
"@nuxt/kit": "^4.5.2",
|
|
64
64
|
"@types/node": "^26.4.0",
|
|
65
|
-
"devframe": "0.9.
|
|
65
|
+
"devframe": "0.9.9",
|
|
66
66
|
"nuxt": "^4.5.2",
|
|
67
67
|
"tsdown": "^0.22.14",
|
|
68
68
|
"vue": "^3.5.42"
|