diff --git a/README.md b/README.md index 2edabc1..0ffa387 100644 --- a/README.md +++ b/README.md @@ -257,4 +257,4 @@ Amit Haridas (amit.wh@gmail.com) ## Version -v4.9.7 +v4.9.8 diff --git a/UPDATES.md b/UPDATES.md index c7d5b46..7c54bf3 100644 --- a/UPDATES.md +++ b/UPDATES.md @@ -1,5 +1,14 @@ # PanConverter - Updates & Changelog +## Version 4.9.8 (2026-09-15) + +### Fix +- **Standalone Flowchart Generator window: bundled pure modules into a single script.** Even after the v4.9.7 `window.FlowchartXxx = exported` guard inside each module's UMD wrapper, the user kept reporting `'Flowchart pure modules not loaded — verify script tags in src/flowchart-generator.html'` in the standalone window's status bar. Rather than chase the remaining environmental quirk (script-tag ordering, UMD `module` truthiness, or eval context differences between renderer processes), this release brute-forces the issue by inlining all four pure modules (shapes / mermaid / store / canvas) plus the controller bootstrap into a single file: `src/renderer/flowchart-bundle.js`. + - New `src/renderer/flowchart-bundle.js` — one IIFE, ~720 lines. Sets `window.FlowchartShapes`, `window.FlowchartMermaid`, `window.FlowchartStore`, `window.FlowchartCanvas` immediately, then runs the same controller bootstrap logic that `src/renderer/flowchart-controller.js` exposes. + - `src/flowchart-generator.html` now loads exactly one script tag (``) instead of five. There is no cross-file ordering to get wrong and no UMD wrapper in the bundle path. + - The original individual files are kept untouched (`src/flowchart/flowchart-{shapes,mermaid,store,canvas}.js` and `src/renderer/flowchart-controller.js`). The legacy sidebar panel in `src/renderer.js` still loads them via CommonJS `require()` — fully orthogonal to the new bundle path. + - Internal name changes inside the bundle (e.g. `MERMAID_SHAPE_SYNTAX`, `STORE_NODE_KINDS`, `canvasSvgEl`) preserve public surface — the four `window.FlowchartXxx` exports match the v4.9.6 / v4.9.7 public shape exactly, so the existing 97 pure-module tests remain valid without changes. + ## Version 4.9.7 (2026-09-14) ### Fix diff --git a/package.json b/package.json index 8808cf3..d32199f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "markdown-converter", - "version": "4.9.7", + "version": "4.9.8", "description": "Professional Markdown editor and universal file converter with PDF editing, batch processing, and syntax highlighting", "main": "src/main.js", "scripts": { diff --git a/src/flowchart-generator.html b/src/flowchart-generator.html index 4981e55..2d752f2 100644 --- a/src/flowchart-generator.html +++ b/src/flowchart-generator.html @@ -197,14 +197,12 @@ - - - - - + diff --git a/src/renderer/flowchart-bundle.js b/src/renderer/flowchart-bundle.js new file mode 100644 index 0000000..f185fc9 --- /dev/null +++ b/src/renderer/flowchart-bundle.js @@ -0,0 +1,953 @@ +/** + * v4.9.8 — Bundled single-file Flowchart Generator loader. + * + * Inlines the four pure modules (flowchart-shapes / flowchart-mermaid / + * flowchart-store / flowchart-canvas) plus the renderer controller + * (src/renderer/flowchart-controller.js) into one script. Loads as a single + * `