Code quality and maintainability improvements for the Video.js Data SDK

Back to Changelog
JUN 30, 2026
ImprovementVideo Data

The Video.js Data SDK ships a round of code-quality fixes for safer global access and better maintainability, along with an updated Data Core dependency.

What’s new:

  • Safer global access: window references now use globalThis.window, and the global parseInt was replaced with Number.parseInt.

  • Reduced function nesting: nested request helpers were hoisted to the top level to lower nesting depth.

  • Stronger typing and clearer code: Function type usages were replaced with explicit function signatures, intentionally empty catch blocks now carry explanatory comments, and conditionals were simplified with optional chaining.

  • Updated Data Core dependency: @fastpix/video-data-core was upgraded to ^1.0.8.