Commit 5960cca
* fix: resolve 12 open bug issues (#66–#84)
- #66: Make template literal interpolation loop string-aware (skip quoted
strings and nested backtick templates)
- #67: Use consistent hook values in Computed macro instead of mixing
getState() with hook-derived values
- #68: Add useEffect cleanup to clear SaveManager status timeout on unmount
- #69: Refactor ForIteration to derive localState from props each render
(WidgetBody pattern), fixing stale parent locals
- #70: Disable CommonMark codeIndented via micromark extension and remove
the regex that collapsed 4+ space indentation
- #71: Replace unsafe (err as Error).message with instanceof guard in
Passage.tsx and PassageDialog.tsx
- #74: Keep StoryInit mounted in hidden container so async effects fire
- #75: Use visibleCharsRef in Type macro to prevent stale closure in guard
- #76: Propagate NobrContext into detached renders in Button and MacroLink
- #77: Add proper dependencies to Widget registration useLayoutEffect
- #83: Tag Date/RegExp in serialize with __Date__/__RegExp__ markers and
reconstitute in deserialize for proper round-tripping
- #84: Reject empty history arrays in isSavePayload/isSaveExport validators
and add guard in loadFromPayload
release-npm
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: two-pass widget registration to resolve parse-order dependency (#87)
Block widgets used inside other widget definitions failed to parse if
their defining passage hadn't been processed yet. Pre-scan all widget
passages with regex to register block macros before any AST parsing.
release-npm
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: clem <clem@envy-new>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4990b1d commit 5960cca
2 files changed
+50
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
112 | 132 | | |
113 | 133 | | |
114 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
189 | 218 | | |
190 | 219 | | |
191 | 220 | | |
| |||
0 commit comments