Repository navigation
v0.9.12
A lighter view.html from the ngx-json-render:mcp-app builder, and an MCP App schematic that works on Angular 19.
zod 4 re-exports every one of its translations as z.locales, and a plain import { z } from 'zod' keeps all of them in the bundle. In an MCP App view that is about 250 kB of error messages in languages the view never shows, sent to the host with every resources/read.
What changes for your app
- The builder now leaves zod's translations other than English out of
view.html. English, which zod loads on its own, stays, and so doesz.locales.en. The repository's Material example went from 1604 to 1358 kB. - To get this, the builder runs the view's application build in-process when
buildTargetis an@angular/build:application(or@angular-devkit/build-angular:application) target in the same project, which is whatng generate ngx-json-render:mcp-appsets up. Any other target is scheduled as before, with the translations left in. - If your view switches zod to another language (
z.config(z.locales.de())), set"keepZodLocales": truein the target's options. ng generate ngx-json-render:mcp-appnow generates a view that builds on Angular 19: the template no longer usesason an@else if, andmain.tsusesprovideExperimentalZonelessChangeDetectionthere. On Angular 20 and later the generated files are unchanged.ng add ngx-json-renderno longer warns that Angular 19 is too old; it supports 19, as the README says.
Hosting a view yourself? Most of what a host downloads is that one resources/read, and a one-event SSE stream is not compressed on the way out. The repository's hosted endpoint now answers with enableJsonResponse: true and gzips the JSON, which took a read from 1.7 MB to 337 kB on the wire (see projects/mcp-app/server/app.ts).
Upgrading
npm i ngx-json-render@0.9.12. Nothing changes for existing code. The Material catalog's ^0.8.0 || ^0.9.0 peer covers this release, so no catalog update is needed.
Full Changelog: v0.9.11...v0.9.12