@devframes/next 0.9.3 → 0.9.5

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { DevframeHubUi, HubInstance, InitHubOptions } from "@devframes/hub/initiate";
2
1
  import { ConnectionMeta, DevframeHost, DevframeNodeContext, DevframeStorageScope } from "devframe";
2
+ import { DevframeHubUi, HubInstance, InitHubOptions } from "@devframes/hub/initiate";
3
3
  //#region src/host.d.ts
4
4
  interface CreateDevframeNextHostOptions {
5
5
  /**
package/dist/single.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { InitDevframeOptions } from "devframe/initiate";
2
1
  import { DevframeDefinition, DevframeStorageScope } from "devframe";
2
+ import { InitDevframeOptions } from "devframe/initiate";
3
3
  //#region src/config.d.ts
4
4
  /**
5
5
  * Minimal shape of the bits of `next.config` this helper reads/writes, so the
package/dist/single.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { homedir } from "node:os";
2
2
  import { join } from "node:path";
3
3
  import process from "node:process";
4
+ import { resolveClientAssets } from "devframe";
4
5
  import { initDevframe } from "devframe/initiate";
5
6
  //#region src/config.ts
6
7
  /**
@@ -72,8 +73,8 @@ function defaultGetStorageDir(scope) {
72
73
  * directly with `@devframes/hub`.
73
74
  */
74
75
  function createDevframeNextHandler(def, options = {}) {
75
- const distDir = def.cli?.distDir;
76
- if (!distDir) throw new Error(`[@devframes/next] createDevframeNextHandler("${def.id}") needs a built SPA to serve, but "cli.distDir" is not set on the devframe definition.`);
76
+ const distDir = resolveClientAssets(def);
77
+ if (!distDir) throw new Error(`[@devframes/next] createDevframeNextHandler("${def.id}") needs a built SPA to serve, but "clientAssets" is not set on the devframe definition.`);
77
78
  const base = normalizeBase(options.base ?? def.basePath ?? `/__${def.id}/`);
78
79
  const key = options.key ?? `@devframes/next:${def.id}:${base}`;
79
80
  const registry = handlerRegistry();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/next",
3
3
  "type": "module",
4
- "version": "0.9.3",
4
+ "version": "0.9.5",
5
5
  "description": "Next.js host integration that serves mounted devframes from an App Router route.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -49,9 +49,9 @@
49
49
  "peerDependencies": {
50
50
  "next": "^14.0.0 || ^15.0.0 || ^16.0.0",
51
51
  "react": "^18.0.0 || ^19.0.0",
52
- "@devframes/hub": "0.9.3",
53
- "devframe": "0.9.3",
54
- "@devframes/hub-ui": "0.9.3"
52
+ "@devframes/hub-ui": "0.9.5",
53
+ "@devframes/hub": "0.9.5",
54
+ "devframe": "0.9.5"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@devframes/hub": {
@@ -75,9 +75,9 @@
75
75
  "@types/react": "^19.2.18",
76
76
  "react": "^19.2.8",
77
77
  "tsdown": "^0.22.14",
78
- "@devframes/hub": "0.9.3",
79
- "@devframes/hub-ui": "0.9.3",
80
- "devframe": "0.9.3"
78
+ "@devframes/hub-ui": "0.9.5",
79
+ "devframe": "0.9.5",
80
+ "@devframes/hub": "0.9.5"
81
81
  },
82
82
  "scripts": {
83
83
  "build": "tsdown",