ngx-json-render 0.9.7 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-json-render",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "Generative UI for Angular: a json-render renderer that streams AI-generated JSON specs into real Angular components with signals.",
5
5
  "keywords": [
6
6
  "angular",
@@ -12,14 +12,26 @@
12
12
  "signals",
13
13
  "server-driven-ui",
14
14
  "sdui",
15
- "dynamic-components"
15
+ "dynamic-components",
16
+ "angular-library",
17
+ "ngx",
18
+ "llm",
19
+ "ai-ui",
20
+ "streaming",
21
+ "json-patch",
22
+ "chat-ui",
23
+ "mcp",
24
+ "mcp-apps",
25
+ "zoneless",
26
+ "json-renderer",
27
+ "dynamic-ui"
16
28
  ],
17
29
  "license": "Apache-2.0",
18
30
  "repository": {
19
31
  "type": "git",
20
32
  "url": "git+https://github.com/shteynu/ngx-json-render.git"
21
33
  },
22
- "homepage": "https://github.com/shteynu/ngx-json-render",
34
+ "homepage": "https://shteynu.github.io/ngx-json-render/",
23
35
  "bugs": {
24
36
  "url": "https://github.com/shteynu/ngx-json-render/issues"
25
37
  },
@@ -12,6 +12,13 @@ const PEERS = [
12
12
  '@modelcontextprotocol/ext-apps',
13
13
  '@modelcontextprotocol/sdk',
14
14
  ];
15
+ /**
16
+ * Ranges to write that are narrower than the peer range. `@json-render/core`
17
+ * depends on zod ^4.3.6 itself; with a looser app range npm keeps whatever zod
18
+ * the Angular CLI hoisted (4.1.13 on Angular 20) and nests core's own copy,
19
+ * and the catalog's schemas then fail to type-check against core's.
20
+ */
21
+ const INSTALL_RANGES = { zod: '^4.3.6' };
15
22
  /** Origins the Material view loads its fonts from. */
16
23
  const MATERIAL_FONTS = [
17
24
  'https://fonts.googleapis.com',
@@ -66,7 +73,7 @@ function mcpApp(options) {
66
73
  for (const peer of PEERS) {
67
74
  if (declares(manifest, peer))
68
75
  continue;
69
- const range = self.peerDependencies?.[peer];
76
+ const range = INSTALL_RANGES[peer] ?? self.peerDependencies?.[peer];
70
77
  if (!range) {
71
78
  throw new schematics_1.SchematicsException(`ngx-json-render declares no peer range for ${peer}.`);
72
79
  }
@@ -6,6 +6,13 @@ const utility_1 = require("@schematics/angular/utility");
6
6
  const self = require('../../package.json');
7
7
  /** Peers a workspace has to declare itself; `@angular/*` is already there. */
8
8
  const PEERS = ['@json-render/core', 'zod'];
9
+ /**
10
+ * Ranges to write that are narrower than the peer range. `@json-render/core`
11
+ * depends on zod ^4.3.6 itself; with a looser app range npm keeps whatever zod
12
+ * the Angular CLI hoisted (4.1.13 on Angular 20) and nests core's own copy,
13
+ * and the catalog's schemas then fail to type-check against core's.
14
+ */
15
+ const INSTALL_RANGES = { zod: '^4.3.6' };
9
16
  const README = 'https://github.com/shteynu/ngx-json-render/tree/main/projects/ngx-json-render#readme';
10
17
  /**
11
18
  * `ng add ngx-json-render`: declares the peers the renderer needs, at the
@@ -21,7 +28,7 @@ function ngAdd() {
21
28
  for (const name of PEERS) {
22
29
  if (declares(workspace, name))
23
30
  continue;
24
- const range = self.peerDependencies?.[name];
31
+ const range = INSTALL_RANGES[name] ?? self.peerDependencies?.[name];
25
32
  if (!range)
26
33
  throw new schematics_1.SchematicsException(`ngx-json-render declares no peer range for ${name}.`);
27
34
  rules.push((0, utility_1.addDependency)(name, range));