Skip to content

Update @studiometa/playground to 0.3.1#500

Open
titouanmathis wants to merge 6 commits intodevelopfrom
feature/update-playground-0.3.0
Open

Update @studiometa/playground to 0.3.1#500
titouanmathis wants to merge 6 commits intodevelopfrom
feature/update-playground-0.3.0

Conversation

@titouanmathis
Copy link
Contributor

@titouanmathis titouanmathis commented Mar 10, 2026

Update @studiometa/playground dependency from 0.2.1 to 0.3.1 in both packages/playground and packages/docs.

Changes

0.3.0

  • Replace monaco-editor with modern-monaco (built-in LSP, auto .d.ts fetching, Shiki syntax highlighting)
  • Replace eslint with oxlint
  • Add htmlLanguage preset option for HTML-superset template languages (Twig, Liquid, etc.)
  • Generate .d.ts files for @studiometa/ui with tsgo for TypeScript editor support
  • Resolve relative import map URLs to absolute for TypeScript LSP type loading

0.3.1

  • Add declarative dependencies option for managing script editor packages (esm.sh, self-hosted via tsdown)
  • Add _headers file generation for x-typescript-types (Cloudflare Pages / Netlify)
  • Fix relative import map URLs not resolving to absolute URLs for TypeScript LSP

Simplifications in this PR

  • Replace manual CopyPlugin + esbuild + tsgo pipeline with declarative dependencies option
  • Remove copy-webpack-plugin and @typescript/native-preview dependencies (replaced by tsdown)
  • Remove static shim files (deepmerge.js, morphdom.js, motionone-easing.js)
  • Simplify index.twig (import map URL resolution now handled internally)
  • Remove obsolete patches for @studiometa/playground@0.2.1 and monaco-editor

@titouanmathis titouanmathis force-pushed the feature/update-playground-0.3.0 branch from 96f1a04 to 3b70c0d Compare March 10, 2026 13:24
@titouanmathis titouanmathis force-pushed the feature/update-playground-0.3.0 branch from ac70e61 to 0b20201 Compare March 10, 2026 13:30
@titouanmathis titouanmathis force-pushed the feature/update-playground-0.3.0 branch from 5e17f41 to d0b8d37 Compare March 10, 2026 13:45
Replace manual CopyPlugin + esbuild + tsgo pipeline with the new
`dependencies` option from playground 0.3.1. This simplifies the
meta.config.js significantly:

- esm.sh: @motionone/easing, deepmerge
- Self-hosted (bundled via tsdown): morphdom, @studiometa/js-toolkit
- Self-hosted (local TypeScript): @studiometa/ui

Also removes obsolete patches for @studiometa/playground@0.2.1 and
monaco-editor (replaced by modern-monaco in 0.3.0).

Co-authored-by: Claude <claude@anthropic.com>
@titouanmathis titouanmathis changed the title Update @studiometa/playground to 0.3.0 Update @studiometa/playground to 0.3.1 Mar 10, 2026
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.32%. Comparing base (52f37b3) to head (a6a978c).

❗ There is a different number of reports uploaded between BASE (52f37b3) and HEAD (a6a978c). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (52f37b3) HEAD (a6a978c)
unittests 5 4
Additional details and impacted files
@@              Coverage Diff               @@
##             develop     #500       +/-   ##
==============================================
- Coverage      67.96%   52.32%   -15.65%     
  Complexity        20       20               
==============================================
  Files             77        4       -73     
  Lines           1998       86     -1912     
  Branches         357        0      -357     
==============================================
- Hits            1358       45     -1313     
+ Misses           558       41      -517     
+ Partials          82        0       -82     
Flag Coverage Δ
unittests 52.32% <ø> (-15.65%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 73 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The dependencies option generates /static/deps/... paths but the
playground is served under /play/, so override with importMap to
add the /play/ prefix.

Co-authored-by: Claude <claude@anthropic.com>
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