Repository navigation
v0.8.2
The devtools Stream tab no longer mixes up generations when a new one interrupts the last.
In 0.8.1, starting a generation while another was still streaming (sending a new prompt, or a chat turn, before the previous one finished) confused the Stream tab of <json-render-devtools>: the interrupted generation stayed marked "live" forever, and the new one's patches landed in an extra, empty generation. The interrupted request only reports its end once its abort has gone through, which is after the new generation has started, so the panel closed the wrong one.
What changes for your app
injectUIStreamandinjectChatUInow end a generation the moment it is superseded or stopped, before the next one starts. Each generation in the Stream tab gets exactly one start and one end, in order.- Nothing else changes: rendering,
stop(),clear(),onCompleteandonErrorbehave as before. Apps that don't usengx-json-render/devtoolssee no difference.
Upgrading
npm i ngx-json-render@0.8.2 — no API changes, and ngx-json-render-material@^0.3.10 works with it unchanged.
Full Changelog: v0.8.1...v0.8.2