You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hub): restore json-render pre-0.7 exports as deprecated aliases
PR #116 removed `defineJsonRenderSpec`, `JsonRenderSpec`,
`JsonRenderElement`, `JsonRenderer`, and `DevframeViewJsonRender` from
`@devframes/hub` outright when json-render moved to the opt-in
`@devframes/json-render` integration, breaking any consumer still
importing them (unlike the `cac` adapter rename, which kept a deprecated
`createCli` alias).
Restore all five as deprecated compatibility shims — `defineJsonRenderSpec`
stays an identity function, and `DevframeViewJsonRender" is kept as a
standalone type without rejoining `DevframeDockUserEntry`, so it can't
clash with `@devframes/json-render/hub`'s declaration-merged `'json-render'`
registry entry.
Document the migration in the 0.7 guide alongside the cac adapter section.
Copy file name to clipboardExpand all lines: docs/guide/migration-0.7.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ outline: deep
4
4
5
5
# Migrating to 0.7
6
6
7
-
0.7's one breaking change moves the `cac` CLI framework out of `devframe`'s bundled dependencies and renames the adapter that wraps it. This page covers the change between 0.6.x and 0.7.
7
+
0.7moves the `cac` CLI framework out of `devframe`'s bundled dependencies (renaming the adapter that wraps it) and moves json-render out of `@devframes/hub` into its own opt-in integration. This page covers the changes between 0.6.x and 0.7.
`devframe/adapters/cli` still exports `createCli` as a deprecated alias of `createCac` (same for `CreateCliOptions` and `CliHandle`), so existing imports keep compiling — but the underlying `cac` peer dependency still needs installing per above, and the alias will be removed in a future major release. Move call sites over now rather than waiting for that removal.
44
44
45
45
See [CLI (cac)](/adapters/cac) for the full adapter reference.
46
+
47
+
## json-render moves out of `@devframes/hub`
48
+
49
+
The hub is now json-render-agnostic — `defineJsonRenderSpec`, `ctx.createJsonRenderer`, and the `JsonRenderSpec` / `JsonRenderElement` / `JsonRenderer` types move to the opt-in [`@devframes/json-render`](./json-render) integration, which contributes its own `json-render` dock type to the hub's open dock union instead of the hub shipping one.
`@devframes/hub` still exports `defineJsonRenderSpec` as a deprecated identity function (same for the `JsonRenderSpec` / `JsonRenderElement` / `JsonRenderer` types), so existing imports keep compiling — but it no longer registers anything with the hub on its own. Move call sites over to `createJsonRenderView` now rather than waiting for the alias's removal in a future major release.
76
+
77
+
See [JSON-Render](./json-render) for the full integration reference.
0 commit comments