Files
hyperframes/packages
Miguel Ángel 718c67b387 fix: escape NUL bytes in HFMASK regex (Bun blank renders) + Windows junction for studio preview links (#2140)
* fix(core): escape NUL delimiters in HFMASK mask token and restore regex

Raw 0x00 bytes in the maskInertRegions token and restore regex made
timingCompiler.ts binary to git and shipped raw NULs into dist/cli.js.
Bun's transpiler (<= 1.3.11) corrupts raw NULs in regex literals into
literal backslash-uFFFD text, so restore never matched: every masked
<style>/<script> region was dropped, the player never initialized, and
bunx renders produced blank white frames showing HFMASK tokens.

Use \u0000 escapes instead, which survive any transpile layer, and add
a byte-level regression test (behavior is identical under Node, so only
a byte check catches this).

Fixes the first half of #2139.

* fix(cli): use NTFS junctions for studio project links on Windows

linkProjectIntoStudioData called symlinkSync(dir, path, "dir"), which
needs Developer Mode or elevation on Windows, so preview and dev in
local-studio mode died with EPERM for default-configured users.
Junctions need no privilege, work for directories, and keep the live
write-back the studio depends on (a copy fallback would decouple the
studio from the real project). Covers both preview and dev, which share
the helper.

Fixes the second half of #2139.
2026-07-10 16:22:50 -04:00
..
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00