Commit 7c731a8
committed
chore: monorepo cleanup — correct override floors, healthchecks, hygiene
- pnpm-workspace.yaml override floors: previously over-applied
patches mass-bumped transitive consumers to unblessed branches.
Tighten to the minimum fixed version per advisory:
- lodash ">=4.18.0" → ">=4.17.21" (CVE-2019-10744 fixed in 4.17.12)
- tar ">=7.5.11" → ">=6.2.1" (CVE-2024-28863 fixed in 6.2.1; was
forcing every consumer through a tar 6→7 major)
- minimatch ">=5.0.0" → ">=3.0.5" (GHSA fixed in 3.0.5; was
forcing a two-major jump)
- brace-expansion ">=2.0.3" → ">=2.0.2" (GHSA fixed in 2.0.2)
Drop redundant pnpm 11 defaults (linkWorkspacePackages: deep,
preferWorkspacePackages, saveWorkspaceProtocol, dedupePeerDependents).
Relabel the esbuild pin as "regression workaround, not CVE" — it
was misleadingly grouped with vuln overrides.
- Root package.json: relocate misplaced deps to where they're used.
All @capacitor/* runtime deps + capacitor-plugin-safe-area moved
to standalone/webapp. @resvg/resvg-js moved to webapp devDeps
(only used by tests/helpers/resvgRender.ts). @emotion/* removed
from root (library already devDeps them; webapp now has them as
direct deps so MUI's styled-engine resolves). Removed `yaml`
(zero usages) and `iobuffer` (zero usages). @types/pdfmake at
root (v0.3.2) removed — server uses the correct pinned v0.2.x.
vite at root removed — each workspace has its own pin.
- Library theatre tests cut: textUtils.test.ts deleted (tested the
jsdom mock equal to itself); storeUtils.test.ts engine-dependent
"may be true or false" assertion removed. 772 → 772 useful tests.
- Library: trim long getBBox comment block in conversion-service.ts
(now in extracted jsdom-shims.ts), kill file-wide eslint-disable.
Pre-call patches hoisted to one-time worker init.
- Library: narrow esbuild `drop` to `["debugger"]`. `console`-drop
was silently stripping React/MUI runtime warnings from the
formerly-inlined standalone bundle.
- Library: ditch 5-line JSDoc bloat in lib/utils/textUtils.ts that
duplicated the function signature.
- Library description trimmed from keyword-stuffed paragraph to one
factual sentence.
- Library engines.node stays at >=22 (public package supports Node
22 LTS through 2027); rest of monorepo pinned at >=24.15.0.
- Server, webapp Dockerfiles: HEALTHCHECK directives added so
orchestrators get liveness signals from the image directly, not
only from compose.
- .dockerignore tightened — excludes **/tests, **/__tests__,
**/*.test.ts, vscode-extension/{src,*/src,*/dist,dist}, scripts/,
.husky/, .changeset/. Saves cache layer hits.
- Webapp eslint warning: remove unused-disable-directive in
LegalPage.tsx (no-console rule no longer fires here).
- release-library.yml: replace brittle `pnpm pack | tail -n 1`
(pnpm/pnpm#10200 — pnpm warnings on stdout) with
`pnpm pack --json | jq -r '.filename // .[0].filename'`.
- commitlint: add scope-enum (library | server | webapp | vscode |
vscode-extension | deps | ci | docker | docs | release).
- Add .gitattributes: pnpm-lock.yaml as linguist-generated + binary
merge, LF normalization, common binary types.
- Add lint-staged "ts/tsx prettier only" + json/md/yml prettier
rules to root package.json (ESLint stays out of pre-commit; runs
in CI).
- VS Code extension pre-existing lint errors fixed:
- menu-provider.ts: drop unused `context`/`token` params from
resolveWebviewView signature; drop unused `error` catch binding.
- extension.ts: drop unused `error` catch binding.1 parent bad222b commit 7c731a8
10 files changed
Lines changed: 172 additions & 1087 deletions
File tree
- .github/workflows
- standalone/webapp
- src/pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
20 | 31 | | |
21 | | - | |
22 | | - | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
26 | | - | |
27 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | | - | |
30 | | - | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
81 | 68 | | |
82 | 69 | | |
0 commit comments