Commit Graph
8 Commits
Author SHA1 Message Date
Alex Waygood 29c3a12911 Update Monaco and its DOMPurify dependency (#29527)
The playgrounds declared Monaco 0.56.0, which pins DOMPurify 3.4.8. That
version is affected by
[GHSA-55q2-fjhq-7xh7](https://github.com/advisories/GHSA-55q2-fjhq-7xh7).
Update Monaco to 0.57.0, which pins DOMPurify 3.4.15 and is outside the
advisory's affected range.

This security update is only partial: DOMPurify 3.4.15 is affected by
[GHSA-p98j-92pf-mc4p](https://github.com/advisories/GHSA-p98j-92pf-mc4p)
and
[GHSA-6688-9rhm-gjv2](https://github.com/advisories/GHSA-6688-9rhm-gjv2),
which list 3.4.16 as a patched version. It is also affected by
[GHSA-c6gr-qvv4-5v3f](https://github.com/cure53/DOMPurify/security/advisories/GHSA-c6gr-qvv4-5v3f),
[GHSA-mrv2-3pqr-j5jr](https://github.com/cure53/DOMPurify/security/advisories/GHSA-mrv2-3pqr-j5jr),
and
[GHSA-cg2g-xh64-v4q7](https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7),
which list 3.4.17 as a patched version. Monaco 0.57.0 is the latest
release and still pins DOMPurify 3.4.15.

The `@monaco-editor/react` loader defaults to a CDN build of Monaco
0.52.2, which bundles DOMPurify 3.1.7. Bundle the installed Monaco
package and its editor and JSON workers, so the browser uses the
installed version instead of the CDN build.

Codex's analysis is that Renovate's missing [support for targeted
updates of transitive dependencies in
`package-lock.json`](https://github.com/renovatebot/renovate/issues/46379)
may explain why it did not open a security update for the vulnerable
DOMPurify version.

Split from #29518.
2026-10-20 14:55:35 -07:00
renovate[bot] c1e3133523 Update dependency monaco-editor to ^0.56.0 (#27290) 2026-07-29 08:44:37 +02:00
Alex WaygoodandMicha Reiser 26777f3c63 Render primary-diagnostic secondary annotations in the Ruff and ty playgrounds (#25875)
## Summary

This is a followup PR to https://github.com/astral-sh/ruff/pull/25490.
That PR added support for rendering subdiagnostics in the ty playground,
but omitted support for rendering secondary annotations attached
directly to a primary diagnostic.

This change:

- exposes primary-diagnostic secondary annotations through `ty_wasm`
- renders them in the diagnostics panel and Monaco hover information
- makes annotation locations navigable, including cross-file jumps

## Test plan

Both videos use [this playground
gist](https://play.ty.dev/1789f663-d4d1-46df-9c58-a965b9bf88c0).

### Before (`main`)


https://github.com/user-attachments/assets/e9b53694-fe8d-40cf-8784-f5f5e8a947a3

### After


https://github.com/user-attachments/assets/9b352c1d-57cc-4cb4-ab7a-38d738e30f07

### Ruff playground screenshot

<img width="1280" height="720" alt="image"
src="https://github.com/user-attachments/assets/c86bc532-4272-40fb-8bc4-f7aafac6a63f"
/>

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
2026-06-15 14:55:38 +01:00
Rob HandandMicha Reiser 08a3a224b2 [ty] Add Download button to ty playground which creates a zip export (#23478)
Co-authored-by: Micha Reiser <micha@reiser.io>
2026-03-13 12:18:10 +00:00
Rob HandandMicha Reiser 2e70459fd6 [ty] Add a Copy Markdown button to playground (#23002)
Co-authored-by: Micha Reiser <micha@reiser.io>
2026-03-13 10:52:23 +00:00
renovate[bot]andMicha Reiser f8f4ca8fbc Update dependency react-resizable-panels to v4 (#22279)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-12-30 11:04:25 +01:00
renovate[bot] 405544cc8f Update dependency react-resizable-panels to v3 (#18185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-19 06:29:31 +00:00
Micha Reiser ded9c69888 [playground] Extract shared components (#16819)
## Summary
Extract components that can be shared with the Red Knot playground.

## Test Plan

`npm start`
2025-03-18 08:43:47 +01:00