Commit a01ab07
fix(device): restore me.device.{requestFullscreen,exitFullscreen} re-export
Reverts the unintended removal of the device-namespace aliases from
fd0fc67. Per the user clarification: implementations stay in
`lang/deprecated.js` (correct — that's where the engine's other
deprecation surface lives) but the names need to be reachable as
`me.device.requestFullscreen` / `me.device.exitFullscreen` for
backwards compatibility with consumers still calling through that
namespace.
Net structure:
- `lang/deprecated.js` — function bodies + `warning(...)` runtime
call + the four-variant vendor probe
- `system/device.ts` — one re-export line so the names appear on
`me.device.*`. eslint-disable on the re-export covers the
`no-deprecated` rule (which fires when re-exporting deprecated
symbols — intentional here, since the whole point is to surface
them under the deprecated alias)
- `system/fullscreen.ts` — `hasFullscreenSupport` / `isFullscreen`
(canonical, non-deprecated), imported by BOTH device.ts and
lang/deprecated.js. No circular dep.
Verified round-trip via Playwright keypress on the platformer
example — still req:1 / exit:1 end-to-end through the four-variant
probe, zero page errors.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fd0fc67 commit a01ab07
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
413 | 416 | | |
414 | 417 | | |
415 | 418 | | |
| |||
0 commit comments