Commit c520d1d
committed
deps: move js-yaml 4 to 5, with a parse test on the real data
js-yaml 5 drops the safe* helpers (we never used them) and parses numbers
per YAML 1.2. We only call yaml.load() in two spots, the bundled-env spec
in buildutil.js and the auto-updater's latest.yml in app.ts, both reading
strings, so neither leans on the 1.1 number quirks. v5 is still dual
CJS/ESM, so the CommonJS main keeps loading it.
Added a test that loads the actual env_installer/jlab_server.yaml and a
latest.yml-shaped manifest and asserts what those two call sites read.
You can sanity-check it yourself: yarn test runs the new parse test green
and a yarn build still finds the bundled jupyterlab pin. The 1.2 vs 1.1
number-parsing question is the part I dug into before bumping.1 parent 661c576 commit c520d1d
3 files changed
Lines changed: 41 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3020 | 3020 | | |
3021 | 3021 | | |
3022 | 3022 | | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
3027 | 3027 | | |
3028 | 3028 | | |
3029 | 3029 | | |
| |||
0 commit comments