@forgecharts/sdk 1.5.48 → 1.5.50

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.
@@ -10288,6 +10288,7 @@ function toOHLCV(bar) {
10288
10288
  function _historyWindow(tf) {
10289
10289
  return 500 * (parseTfSeconds(tf) ?? 3600);
10290
10290
  }
10291
+ var BATCH_SUPPRESSION_MS = 1e4;
10291
10292
  function _pageSize(tf) {
10292
10293
  return 500 * (parseTfSeconds(tf) ?? 3600);
10293
10294
  }
@@ -10323,7 +10324,8 @@ var DatafeedConnector = class {
10323
10324
  */
10324
10325
  _emptyPageStreak = 0;
10325
10326
  /**
10326
- * Safety timer: clears `batchPending` if bar_batch never arrives within 60 s.
10327
+ * Safety timer: clears `batchPending` if bar_batch never arrives, so live
10328
+ * ticks resume. It no longer gates the chart reveal.
10327
10329
  * Prevents the chart from staying blank when a provider doesn't fire onHistoricalReady.
10328
10330
  */
10329
10331
  _batchSafetyTimer = null;
@@ -10398,9 +10400,7 @@ var DatafeedConnector = class {
10398
10400
  loadedFired = true;
10399
10401
  this._cb.onLoaded(symbol, timeframe, engine.getBars().length);
10400
10402
  };
10401
- if (lastBarTime == null) {
10402
- fireLoaded();
10403
- }
10403
+ fireLoaded();
10404
10404
  const prefetchTo = from;
10405
10405
  const prefetchFrom = from - _pageSize(timeframe);
10406
10406
  void this._datafeed.getHistoricalBars(symbol, timeframe, prefetchFrom, prefetchTo - 1).then(({ bars: prefetchedBars }) => {
@@ -10414,8 +10414,7 @@ var DatafeedConnector = class {
10414
10414
  this._batchSafetyTimer = setTimeout(() => {
10415
10415
  batchPending = false;
10416
10416
  this._batchSafetyTimer = null;
10417
- fireLoaded();
10418
- }, 6e4);
10417
+ }, BATCH_SUPPRESSION_MS);
10419
10418
  }
10420
10419
  this._datafeed.subscribeBars(symbol, timeframe, (bar) => {
10421
10420
  if (this._activeUID === uid2) {
@@ -18254,7 +18253,7 @@ var DEMONSTRATION_STROKE = "rgba(255, 200, 50, 0.7)";
18254
18253
  var DEMONSTRATION_COLOR = "var(--crosshair-overlay, rgba(255,255,255,0.75))";
18255
18254
 
18256
18255
  // src/version.ts
18257
- var FORGECHARTS_VERSION = "1.5.48" ;
18256
+ var FORGECHARTS_VERSION = "1.5.50" ;
18258
18257
  function applyRuntimeConfig(caps, config) {
18259
18258
  if (!config) return caps;
18260
18259
  const orderEntry = config.enableOrderEntry === false ? false : caps.orderEntry;