This release makes the engine move, load and measure more like a Roku device. Every change was checked against a real device with a probe app now committed under test/simulator/probes/. In the SceneGraph extension, built-in UI motion is now animated as on a device: PanelSet slides its panels, and lists, grids, RowList and ZoomRowList ease each focus move, while focusPercent, rowFocusPercent, currFocusRow/currFocusColumn and scrollingStatus change frame by frame. Transitions are on by default; turn them off with DeviceInfo.uiTransitions = false, the CLI --no-transitions flag or BRS_UI_TRANSITIONS=0. A Group's scale and rotation pivot now apply to its whole subtree, including its clippingRect, inheritParentTransform = false is implemented, and bounding rects of grids, RowList sub-parts and ancestors are reported in the device's coordinate spaces. RowList gains rowTitleComponentName, item index/rowIndex and device row layout, DynamicKeyboard gets device shift and caps lock behavior, and Video.trickPlayBar has the device's 12 internal children. In the core engine, roTextureManager and the roUrlTransfer Async* methods now run on a background worker so the app keeps running while images and transfers load, and cachefs: keeps its contents across app launches for the session. Numbers follow the device more closely: a Float keeps its exact float32 value, print, Str() and FormatJson() format numbers like the device, and ^ has the device's result types and binds tighter than unary minus (-2 ^ 2 is now -4). roRegex translates many more PCRE-only constructs. Read the full release notes below for more details.
Release Changes
Core Engine
- (brs)
roTextureManagerand theroUrlTransferAsync*methods now run on a background worker thread, so the app keeps running while images decode and transfers complete by @lvcabral in #1302 - (brs)
cachefs:now keeps its contents across app launches for the session, with device-like eviction when it gets full by @lvcabral in #1301 - (brs) A
Floatnow keeps its exact float32 value, andprint,Str()andFormatJson()formatFloat/Doublevalues like the device by @lvcabral in #1287 - (brs)
^now picks its result type like the device, binds tighter than unary minus and is right-associative by @lvcabral in #1285 - (brs) Upgraded to
@lvcabral/sprintf1.3.1:nan/inf/-0and rounding now match the device inToStr()andFormat(), and specifiers the device rejects raise its errors by @lvcabral in #1284 - (brs) Matched the device's
roArray/roByteArrayenumeration when the array changes during the loop, and array holes now enumerate asinvalidby @lvcabral in #1288 - (brs)
roRegexnow translates PCRE-only constructs JavaScript rejects or reads differently: inline options, possessive quantifiers, atomic groups, POSIX classes and more by @lvcabral in #1304 - (brs)
Integercoercion now follows the device rule: aFloat/Doubleis truncated (NaN becomes 0) and aLongIntegerkeeps its low 32 bits by @lvcabral in #1305 - (draw2d)
roScreen.GetByteArray()now returnsinvalid, as on real devices by @lvcabral in #1303 - (node) Fixed
brs-cliaborting with a nativenapi_throwerror when a Task was stopped while its worker was still loading by @slheavner in #1310
SceneGraph Extension (brs-scenegraph release v0.7.0)
- (rsg) Added device-faithful intrinsic UI transitions:
PanelSetslides, and animated focus moves in lists, grids,RowListandZoomRowListby @lvcabral in #1308 - (rsg) A
Group'sscaleand rotation pivot now apply to its descendants and theirclippingRectby @quan7794 in #1291 - (rsg) Implemented
Group.inheritParentTransform = falseand pinned rotatedGroupbounding rects by @lvcabral in #1314 - (rsg) Grid sub-rects are now reported in the device's coordinate spaces by @lvcabral in #1316
- (rsg) Device-faithful grid bounding rects,
RowListsub-parts and ancestor rects, andRowListhorizontal scrolling measured against the list's own width by @lvcabral in #1324 and #1325 - (rsg) List and grid items now get
index/rowIndex, addedRowList.rowTitleComponentName, andRowListrow layout and empty rows now match the device by @lvcabral in #1322 - (rsg) A focused list now republishes
itemFocusedafter an in-place content change, andsetFocus(false)notifies the focus chain from the leaf up by @lvcabral in #1323 - (rsg) Device-faithful
DynamicKeyboardshift and caps lock, Symbols/Accents layouts and key navigation by @lvcabral in #1312 - (rsg) Custom keyboard layouts now draw a key-cell background, and evenly split key sizes are rounded to whole pixels as on the device by @lvcabral in #1311
- (rsg)
Video.trickPlayBaris now built with the device's 12 internal children by @lvcabral in #1306 - (rsg) Interface field aliases and
findNode()now resolve to the scope's own node before another component's internals by @lvcabral in #1300 - (rsg) A
ComponentLibrarynow loads from itsurialone, without anidby @lvcabral in #1298 - (rsg) Fixed a crash when a
fontfield is set to a value that is not a Font: the node draws no text, as on the device by @lvcabral in #1296 - (rsg) Timers are now released when they stop, and
Timer.controlmatches the device by @mcaustin in #1293 - (rsg)
ChannelStoreresults are now delivered asynchronously, and the channel credential store is shared across threads and persisted by the hosts by @lvcabral in #1295
Chores, Build and Dependencies
- Documented the API's
deviceDataand its non-serializable fields by @lvcabral in #1315 - Moved the
dev-docsubmodule to GitLab and updated it to the latestv2.0by @lvcabral in #1297 - Gave the CLI Task fixture apps a longer time budget to stop CI flakes by @lvcabral in #1307
- Updated dependencies with security fixes (
vite,vitest, and overrides forminimatchandzod) by @lvcabral in #1326 - build(deps-dev): bump
fast-urifrom 3.1.7 to 3.1.9 by @dependabot in #1280 - build(deps): bump
serialize-javascriptfrom 7.0.5 to 7.1.4 by @dependabot in #1281
New Contributors
- @mcaustin made their first contribution in #1293 - welcome to the project!
- @slheavner made their first contribution in #1310 - welcome to the project!
Full Changelog: v2.6.2...v2.7.0