Skip to content

chore(deps): clear the dependency audit and accept React 19.3 - #336

Open
thejustinwalsh wants to merge 3 commits into
mainfrom
chore/deps-audit-0.2.0
Open

thejustinwalsh wants to merge 3 commits into
mainfrom
chore/deps-audit-0.2.0

Conversation

@thejustinwalsh

Copy link
Copy Markdown
Collaborator

Clears the dependency audit and widens the optional react peer range so a bare npm install works. No runtime code in @pmndrs/glyph changes; the only change to the published package is one line of peerDependencies and the changelog.

React peer range

  • react: >=19.0.0 <19.3 → >=19.0.0 <20. Fixes npm install @pmndrs/glyph three failing with ERESOLVE under npm 11 (suspend-react's react peer installs the newest React, 19.3.1, which the old range excluded). Published 0.1.0 fails the same way.
  • @react-three/fiber range unchanged (>=9.7.0 <10 || >=10.0.0-alpha.4 <11). React 19.0.0 and Fiber 9.7.0 stay the minimums.
  • The workspace stays on React 19.2.8: Fiber 9.7.0 and the published 0.1.0 Labs baseline both require React below 19.3.
  • CI's Check job gains two glyph:peer-check steps at React 19.3.1 (Fiber 9.8.2 and 10.0.0-alpha.6).
Fiber React glyph:peer-check
9.7.0 19.0.0 pass
9.8.2 19.3.1 pass
10.0.0-alpha.6 19.0.0 pass
10.0.0-alpha.6 19.3.1 pass

The packed build installs with npm@11 install <tarball> three and no React pin (resolves React 19.3.1, Three 0.187.0) and imports.

Security audit

pnpm audit on main: 67 advisories (4 critical, 18 high, 37 moderate, 8 low), all in development tooling; none in the package's runtime dependencies. After this PR: none, and pnpm peers check is clean.

  • Direct: Vite 8.1.5 → 8.4.0, happy-dom 20.14.0 → 21.0.4 (20.x has no complete fix), Vitest 4.1.11 → 4.1.12, shadcn 4.16.0 → 4.23.1, Tailwind 4.2.1 → 4.3.5 (also fixes its Vite 8 peer warning).
  • Transitive, by overrides: cross-spawn, fast-uri, ip-address, minimatch (10 → 11, under ts-morph and an eslint plugin), source-map-js, systeminformation, tinypool, undici, ws.
  • Moved with them: Vue 3.5.46, Tres 5.12.0; the Labs adapter consumer pins follow the workspace.

Tried and left out

  • Three 0.187.0: 38 package tests fail (fix(three): storage release and shader tests fail on Three 0.187 #335). The peer range has no ceiling, so a bare install resolves 0.187 today.
  • TypeGPU 0.12.12 / unplugin-typegpu 0.12.9: the plugin requires TypeGPU 0.12.11, above the declared 0.12.5 floor.
  • Not attempted before the release: binaryen and the Unicode data packages (they change Wasm bytes and generated tables), tsdown, oxfmt, oxc-parser, other major versions.

Verification

pnpm build, pnpm test (1,537 package tests, 0 fail) and pnpm check pass locally at 53b657aef.

🤖 Generated with Claude Code

thejustinwalsh and others added 3 commits December 2, 2026 09:25
pnpm audit reported 67 advisories (4 critical, 18 high), all in development
tooling. Vite 8.4.0, happy-dom 21.0.4, Vitest 4.1.12, shadcn 4.23.1 and
Tailwind 4.3.5 clear the direct ones and nine overrides clear the transitive
ones; Vue 3.5.46 and Tres 5.12.0 move with them, and the Labs adapter
consumer pins follow the workspace. The audit now reports none.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
npm install @pmndrs/glyph three failed with ERESOLVE under npm 11: the
suspend-react dependency's react peer installs the newest React, outside the
optional peer range >=19.0.0 <19.3. The range is now >=19.0.0 <20; the
renderer owns the ceiling. CI checks React 19.3.1 under Fiber 9.8.2 and
10.0.0-alpha.6 beside the existing floors.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@thejustinwalsh thejustinwalsh added this to the 0.2.0 milestone Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Docs report 📚

Advisory only — this never blocks merging. Anything left open is tracked in the Sync agent docs issue and verified after merge.

Package Concept Attestation Status
@pmndrs/glyph-examples packages/examples.md · not edited none ❌
@pmndrs/glyph-tres-playground packages/tres-playground.md · not edited none ❌
@pmndrs/glyph-typegpu-hello-world packages/typegpu-hello-world.md · not edited none ❌
@pmndrs/glyph-benchmarks packages/benchmarks.md · edited Labs adapter consumer pins follow the workspace (Vue 3.5.46, Tres 5.12.0, happy-dom 21.0.4); Vite, Vitest, shadcn and T… ✅
@pmndrs/glyph packages/glyph.md · edited React peer range widened to >=19.0.0 <20 and dev dependency security bumps; build, 1,537 package tests, check and glyph… ✅
@pmndrs/glyph-example-raster packages/glyph-example-raster.md · not edited none ❌
@pmndrs/glyph-example-renderer packages/glyph-example-renderer.md · not edited none ❌

✅ attested · ⚠️ stale · ❌ missing

After your last source change, update each concept if it is now wrong, then record what you changed and checked:

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

size-limit report 📦

Surface gzip Surface gzip
Core JS 101.0 kB (-0.15% Size decrease) Inter font · Bitmap 542.8 kB (0%)
Shaper Wasm 531.5 kB (0%) Inter font · MTSDF 8.05 MB (0%)
Three.js adapter JS 164.3 kB (-0.05% Size decrease) Inter font · Slug 598.0 kB (0%)
React adapter JS 164.2 kB (-0.09% Size decrease) Font Awesome icons · Bitmap 449.1 kB (0%)
Vue adapter JS 164.0 kB (-0.09% Size decrease) Font Awesome icons · MTSDF 8.76 MB (0%)
R3F hello-world app JS 612.7 kB (-0.23% Size decrease) Font Awesome icons · Slug 654.7 kB (0%)
Tres playground app JS 573.2 kB (-3.79% Size decrease) Bitmap baker JS 4.8 kB (-0.66% Size decrease)
Font validator JS 140.2 kB (-0.07% Size decrease) Bitmap baker Wasm 231.2 kB (0%)
Runtime bake host JS 6.5 kB (-0.37% Size decrease) MTSDF baker JS 5.5 kB (-0.66% Size decrease)
Runtime bake Worker JS 14.4 kB (-0.06% Size decrease) MTSDF baker Wasm 215.7 kB (0%)
Font baker JS 2.7 kB (-1.23% Size decrease) Slug baker JS 4.5 kB (-0.95% Size decrease)
Font baker Wasm 462.6 kB (0%) Slug baker Wasm 183.9 kB (0%)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Package performance: smoke suite

0 faster · 0 slower · 5 neutral · 1 skipped

Baseline 0.2.0-canary-0ea9451e-20261202 → candidate 0.2.0 (40416364)

Latency distribution across 5 comparable workload p50s. Each workload counts once; these are not frame times.

statistic baseline candidate
Median workload p50 2.260ms 2.330ms
Workloads ≤1 ms 0 0
Workloads ≤2 ms 2 2
Workloads ≤3 ms 3 3
Workloads >3 ms 2 2

Largest candidate workloads (including neutral results):

workload baseline candidate Δ time
relayout after font-size change 3.66ms 3.69ms +0.030ms
publish after text change 3.12ms 3.24ms +0.120ms
publish after color change 2.26ms 2.33ms +0.070ms
measure after text change 1.59ms 1.81ms +0.220ms
reflow after width change 1.09ms 1.19ms +0.100ms
                                   faster ◀       ┊       ▶ slower    Δ p50      p  baseline   candidate
  measure after text change                      ├┼───────●──┤       +13.4%   .057  ▄██▆▃▅▃▁▃▁ ▁▂▆█▆▃▃▄▁▂
  reflow after width change                 ├─────┼─────●──────┤      +9.3%   .200  ▅█▇▅▃▂▄▄▁▁ ▁▄█▅▃▂▃▄▂▁
  publish after text change                       ├─●──────┤          +4.0%   .057  ▁▇█▆▄▃▂▃▃▁ ▁▁██▆▄▁▃▃▂
  publish after color change             ├────────┼─●────┤            +3.2%   .686  ▂▆▆█▅▅▅▄▁▂ ▁▂▇█▆▆▅▅▂▁
  relayout after font-size change          ├──────┼●───┤              +1.0%   .686  ▅█▄▄▂▁▁▁▁▁ ▄█▃▃▁▁▁▁▁▁
                                   └──────────────┴──────────────┘
                                   -25%           0           +25%

All 5 compared benches are neutral.

5 neutral, 1 skipped
status bench baseline candidate Δ time Δ p50 p 95% CI
neutral measure after text change 1.59ms 1.81ms +0.220ms +13.4% .057 -1.1..+19.1%
neutral publish after text change 3.12ms 3.24ms +0.120ms +4.0% .057 -0.1..+14.6%
neutral reflow after width change 1.09ms 1.19ms +0.100ms +9.3% .200 -9.3..+22.2%
neutral publish after color change 2.26ms 2.33ms +0.070ms +3.2% .686 -14.4..+11.1%
neutral relayout after font-size change 3.66ms 3.69ms +0.030ms +1.0% .686 -12.3..+9.0%
skipped: timing-mode mismatch measure 100 unchanged labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant