npm brs-node 2.5.2
v2.5.2 - Text Baseline, Packaging and Stability Fixes

3 hours ago

This patch release fixes single-line text sitting too close to the top of its box across every SceneGraph Label, grid caption, keyboard and PIN pad — text now draws against the alphabetic baseline using a font-metric constant instead of an approximation of the font's max ascent, and a related regression that clipped descenders under that constant is also fixed. Also fixes a crash on encrypted .bpk startup and missing pkg:/source/*.brs component-library scripts once decrypted, a stack overflow printing a self- or mutually-referencing associative array, and SceneGraph apps driving their main loop with sleep()+getMessage()/peekMessage() instead of wait() never rendering a frame. Read the full release notes below for more details.

Release Changes

Core Engine

  • fix(brs): prevent stack overflow printing a self-referencing associative array by @lvcabral in #1201
  • fix(draw2d): center single-line text on its real ink instead of the font's max ascent by @lvcabral in #1202

Node.js Library and CLI

  • fix(cli): repair encrypted-package startup crash and component script resolution by @lvcabral in #1199

SceneGraph Extension (brs-scenegraph release v0.5.2)

  • fix(rsg): service SceneGraph via sleep()+getMessage() poll loops by @lvcabral in #1200

Full Changelog: v2.5.1...v2.5.2

Don't miss a new brs-node release

NewReleases is sending notifications on new releases.