Commit e34df67
v1.4.3: suppress pi changelog block + override deprecated node-domexception
Two cosmetic follow-ups to the v1.4.2 @earendil-works migration.
1. Pre-stamp pi's lastChangelogVersion so the "What's New" block stops
rendering inside little-coder's TUI on every pi bump. Pi reads
~/.pi/agent/settings.json#lastChangelogVersion and dumps every newer
CHANGELOG entry on startup; jumping pi from 0.68 to 0.75 in v1.4.2
made the entire upstream changelog appear underneath our banner. The
launcher now writes the bundled pi version into that key before pi
starts, so pi sees "already seen this." Non-destructive merge —
quietStartup and any other keys are preserved. /changelog inside the
TUI is still the unconditional path for users who want to read it.
2. Override the deprecated node-domexception@1.0.0 transitive via a
bundled local stub at vendor/node-domexception/. The upstream package
is a 16-line shim that ensures globalThis.DOMException is set; native
DOMException exists since Node 18, and we require >= 22.19, so the
shim is dead code. The stub exports globalThis.DOMException directly,
so fetch-blob's only call site (import DOMException from
'node-domexception') sees the same value it always would have. Wired
via package.json#overrides, which npm honors when little-coder is
the install root (i.e. `npm install -g little-coder`). vendor/ is
now in the `files` array so it ships in the tarball.
Result: `npm install -g little-coder` is now warning-free, and the TUI
no longer leaks pi's upstream changelog underneath little-coder's own
startup banner. All 152 vitest tests + tsc --noEmit clean. Smoke-tested
--list-models against the new install.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c7a073f commit e34df67
6 files changed
Lines changed: 606 additions & 1371 deletions
File tree
- bin
- vendor/node-domexception
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
5 | 20 | | |
6 | 21 | | |
7 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
143 | 158 | | |
144 | 159 | | |
145 | 160 | | |
| |||
164 | 179 | | |
165 | 180 | | |
166 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
167 | 199 | | |
168 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
169 | 208 | | |
170 | 209 | | |
171 | 210 | | |
| |||
0 commit comments