@holtjs/stage 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/{game-Cu1G9xgW.js → game-B8UlnEB_.js} +110 -734
- package/dist/{game-GdPaQUqH.d.ts → game-DWELKTnB.d.ts} +29 -10
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/joystick.d.ts +1 -1
- package/dist/kernel.d.ts +1 -1
- package/dist/lighting.d.ts +1 -1
- package/dist/projection.d.ts +1 -1
- package/dist/{renderer-webgpu-BorAD6Kk.js → renderer-webgpu-Djk7FayG.js} +817 -1
- package/dist/renderer-webgpu.d.ts +1 -1
- package/dist/renderer-webgpu.js +1 -1
- package/dist/rig2d.d.ts +1 -1
- package/dist/tilemap.d.ts +1 -1
- package/dist/trace.d.ts +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/skills/stage/SKILL.md +5 -1
- package/skills/stage/references/subpaths.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,27 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.5.2] - 2026-12-04
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **WebGL `createRenderTarget()` & `renderToTarget()` Feedback Loop (`GL_INVALID_OPERATION`)**:
|
|
13
|
+
- Unbound newly allocated FBO textures from unit `0` (`this.bindTextureAt(0, this.dummyTex)`) inside `createRenderTarget()` and `uploadTextureSource()`, and added `evictTextureFromUnits()` before `gl.bindFramebuffer` in `renderToTarget()` (both on entry and when unwinding nested `prevFbo` targets) so drawing textured sprites or ping-pong blur passes into an offscreen `StageRenderTarget` never forms a sampler/FBO feedback loop without requiring a manual `restoreState()` call (reported by @Ivy).
|
|
14
|
+
- **Real DOM Keyboard `KeyboardPlugin.justPressed()` / `justReleased()` & `ActionMap` Off-by-One Frame Bug + `' '` Space Token**:
|
|
15
|
+
- Mapped inter-frame DOM `keydown`/`keyup`/`blur` and external `HeadlessStage.keyDown()` transitions (`!game.inStep`) to `clock.frameSeq + 1` while keeping intra-step `InputTimeline` / `InputReplay` `poll()` transitions on `clock.frameSeq`, and preserved `' '` literal space normalization before `.trim()` so real browser presses, sub-16ms taps, `blur` releases, and `HeadlessStage.keyDown() + step(1)` all fire `justPressed()` / `justReleased()` accurately (reported by @Ivy).
|
|
16
|
+
- **`RendererGl.restoreState()` Pipeline Completeness**:
|
|
17
|
+
- Reset `gl.disable(gl.DEPTH_TEST)`, `gl.disable(gl.STENCIL_TEST)`, `gl.disable(gl.CULL_FACE)`, `gl.depthMask(true)`, `gl.frontFace(gl.CCW)`, `gl.colorMask(true, true, true, true)`, and `gl.blendEquation(gl.FUNC_ADD)` in `restoreState()` alongside `pixelStorei`, `BLEND`, `viewport`, `scissor`, and `activeFbo` (reported by @Ivy).
|
|
18
|
+
- **Canvas2D `Renderer2D` `InstancedBatchObject` Per-Instance `cols.tint` & Telemetry Parity**:
|
|
19
|
+
- Added `cols.tint` multiplication in `Renderer2D.renderInstancedBatch()` (with consecutive frame/tint caching) and populated per-frame `drawCalls`, `flushes`, `quads`, `tris`, `sdfPanels`, and `msdfIcons` in `Renderer2D.stats()` (reported by @Ivy).
|
|
20
|
+
- **Agent Skill Reference Sync**:
|
|
21
|
+
- Fixed `createAudioTimeline().toStereoPcm16()` method name in `skills/stage/references/subpaths.md` and added `scene.tweens.to()` + offscreen `StageRenderTarget` dedicated `Camera` recipe in `skills/stage/SKILL.md` (reported by @Ivy).
|
|
22
|
+
|
|
23
|
+
## [0.5.1] - 2026-12-04
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- **WebGL `createRenderTarget()` & `Lighting2DSystem` Crash (`texImage2D` Overload Error)**:
|
|
27
|
+
- Marked offscreen FBO `TextureSource` instances with `isRenderTarget: true` so `TextureSource` construction skips eager 6-arg `gl.texImage2D(..., dummyStub)` upload on the `{ width, height }` stub object (and uses 9-arg `gl.texImage2D(..., w, h, 0, ..., null)` if re-allocated after context loss), plus preserved `this.activeFbo` across `createRenderTarget()` (reported by @Ivy).
|
|
28
|
+
- Added `createRenderTarget()` and `renderToTarget()` parity on `RendererWebGpu` so `Lighting2DSystem` runs seamlessly on WebGPU as well as WebGL2 and Canvas2D.
|
|
29
|
+
|
|
9
30
|
## [0.5.0] - 2026-12-04
|
|
10
31
|
|
|
11
32
|
### Added
|