Skip to content

chore(deps): bump lightweight-charts from 4.2.3 to 5.1.0 in /frontend - #12

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/lightweight-charts-5.1.0
Open

chore(deps): bump lightweight-charts from 4.2.3 to 5.1.0 in /frontend#12
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/lightweight-charts-5.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jan 26, 2026

Copy link
Copy Markdown

Bumps lightweight-charts from 4.2.3 to 5.1.0.

Release notes

Sourced from lightweight-charts's releases.

v5.1.0

Version 5.1.0 introduces data conflation, a powerful performance optimization feature designed for charts with very large datasets. For most use cases with typical dataset sizes, this feature will operate transparently in the background. However, if you're working with datasets containing tens of thousands of data points or more, conflation can dramatically improve rendering performance when users zoom out.

Major Updates in 5.1

Data Conflation

Data conflation is an automatic performance optimization that merges data points when zoomed out, significantly improving rendering performance for large datasets. When bar spacing falls below a threshold where multiple data points would be rendered in less than 0.5 pixels of screen space, the library intelligently combines them into single points.

Key features:

  • Opt-in activation: Conflation is disabled by default and can be enabled via the enableConflation option.
  • Configurable options: Control conflation behavior through new time scale and series options:
    • enableConflation - Enable or disable the feature (default: false).
    • conflationThresholdFactor - Adjust the zoom level threshold for activation and create smoothing effects. Higher values (2.0, 4.0, 8.0+) result in smoother-looking charts, particularly useful for sparklines and small charts where smooth appearance is prioritized over showing every data point.
    • precomputeConflationOnInit - Pre-calculate conflated data on initialization for improved zoom performance at the cost of initial load time and memory usage (default: false).
    • precomputeConflationPriority - Control background computation priority when using the Prioritized Task Scheduling API (default: 'background').
  • Custom series support: Plugin developers can implement custom aggregation logic through the new CustomConflationReducer interface.

This feature is particularly beneficial for applications displaying historical data spanning years or real-time feeds that accumulate large amounts of data over time. For typical use cases with moderate dataset sizes, conflation can remain disabled without any impact.

(PR #1945)

Enhancements

  • Added doNotSnapToHiddenSeriesIndices option to CrosshairOptions. When enabled, the crosshair will snap to the nearest visible series data point instead of snapping to hidden series indices. (PR #1995)

Bug Fixes

  • Fixed price axis label positioning when using plugin views that don't implement the optional fixedCoordinate() method. Previously, labels were incorrectly treated as positioned at coordinate 0, causing false overlap detection. (PR #1993), fixes #1986), contributed by @​tpunt)

  • Fixed time scale fitContent method to properly respect the rightOffset option when rightOffsetPixels is not set. This addresses a regression introduced in version 5.0.9. (PR #1989, fixes #1988)

Contributors

We'd like to thank our external contributors for their valuable contributions to this release:

Changes since the last published version.

v5.0.9

Enhancements

  • Added rightOffsetPixels option to HorzScaleOptions, allowing margin space from the right side of the chart to be set in pixels. This option takes precedence over rightOffset and ensures consistent pixel offset when using fitContent on charts with different amounts of data. The pixel-based offset remains consistent during zoom operations. (PR #1957)
  • Added pop method to series API that removes a specified number of data points from the end of the series and returns the removed data. (PR #1949, fixes #1518, contributed by @​tpunt)
  • Enhanced takeScreenshot method with two new optional parameters:
    • addTopLayer - includes top layer primitives in the screenshot (default: false)
    • includeCrosshair - includes the crosshair when addTopLayer is enabled (default: false) (PR #1977)

... (truncated)

Commits
  • b1570d9 version 5.1
  • 001dd19 Update minimal supported NodeJS version to 22
  • e11ae50 Merge pull request #2025 from tradingview/data-conflation-part2
  • 4d5dda7 Fix conflation logic and update tests for data handling
  • 91169a1 Merge pull request #1993 from tpunt/fix-issue-1986
  • 91aa145 Merge pull request #1989 from tradingview/fix-rightOffset-fitContent-bug
  • 53d437f fix website deploy action
  • e879632 Merge branch 'master' into pr/1993
  • de601d2 Merge branch 'master' into fix-rightOffset-fitContent-bug
  • c23623d Merge pull request #1995 from tradingview/do_not_snap_to_hidden_series_indices
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [lightweight-charts](https://github.com/tradingview/lightweight-charts) from 4.2.3 to 5.1.0.
- [Release notes](https://github.com/tradingview/lightweight-charts/releases)
- [Commits](tradingview/lightweight-charts@v4.2.3...v5.1.0)

---
updated-dependencies:
- dependency-name: lightweight-charts
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jan 26, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: dependencies, javascript. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants