Commit 6db7a63
committed
switch from pnpm patches to juspay/xterm.js fork (upstream #5818)
Replaces the minified-mjs pnpm patches from the previous commit with
a git-URL override pointing at the juspay/xterm.js fork. The fork's
`fix/dispose-leaks-built` branch commits both:
1. The source-level .ts fix (upstream-ready; PR at xtermjs/xterm.js#5817,
tracking issue xtermjs/xterm.js#5818).
2. Pre-built .mjs bundles so pnpm can consume the fork directly
without running xterm's build toolchain at install time.
Changes:
- package.json: drop the two xterm patches from `patchedDependencies`;
add `overrides` for `@xterm/xterm` and `@xterm/addon-webgl`
pointing at `github:juspay/xterm.js#fix/dispose-leaks-built` (the
addon-webgl entry uses `&path:/addons/addon-webgl` to select the
monorepo subdirectory).
- patches/: delete both @xterm patch files.
- default.nix: bump the `fetchPnpmDeps` hash.
- pnpm-lock.yaml: regenerated — pins the fork via its tarball URL
+ commit SHA, so the build is reproducible across machines.
Verified: `nix build .#default` succeeds end-to-end; dev-server heap
reproduction still shows `aliveDetached: 0, gced: 7/8` after 6 mode
toggles. Previous commit (the .mjs-patch approach) is preserved in
git history for record of the interim fix.
Once xtermjs/xterm.js#5817 merges + an xterm release ships, this
override can be dropped in favor of a plain version bump.1 parent d804679 commit 6db7a63
5 files changed
Lines changed: 21 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments