This repository was archived by the owner on Oct 4, 2022. It is now read-only.
[Snyk] Upgrade chart.js from 2.8.0 to 2.9.3 #14
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade chart.js from 2.8.0 to 2.9.3.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.Release notes
Package name: chart.js
-
2.9.3 - 2019-11-14
- #6698 Fix undefined variable
- #6719 Don't make legend empty when fill is false
-
2.9.2 - 2019-11-02
- #6641 IE11 & Edge compatible style injection
- #6655 Backwards compatible default fill for radar charts
- #6660 Improve clipping of line charts when border widths are large
- #6661 When a legend item is clicked, make sure the correct item is hidden
- #6663 Refresh package-lock file to pick up new dependency
- #6671 Stop unnecessary line calculations
- #6643 Combine performance documentation sections
-
2.9.1 - 2019-10-27
- #6603 Fix deprecation warnings for horizontal bar charts
- #6608 Fix zoom plugin by no longer clipping
- #6617 Non numeric Y axes did not work
- #6613 Add link to performance documentation
- #6609 - Tests no longer use deprecated options
-
2.9.0 - 2019-10-26
- #6131
- #6527 Hover styling for dataset in 'dataset' mode
- #6268 Implement
- #6509 Make
- #6460 Implemented RTL support for legends and tooltips
- #6490 HTML DOM building
- #6326 Draw the rightmost grid line when
- #6343 Handle reverse support in core.scale
- #6289 Support
- #6323 Support object values for bar charts
- #6287 Support rotation for
- #6257 Allow specifying labels in time scale options
- #6281 Support boundary filling modes in radialLinear scale
- #6056 Add support for floating bar chart (
- #6241 Implement layers (z-index) for layout items
- #5621 Make legend appearance consistent with chart elements
- #5999 Implement per-dataset type (default and per-chart) options
- #6097 Specify time scale
- #6141 Legend align option. Thanks @dkichler
- #6128 Make line options scriptable. Thanks @janelledement
- #6594 Remove a couple calls to
- #6247 Remove duplicate scale building
- #6579 Cache resolved data element options
- #6575 Simplify line drawing
- #6508 Add
- #6354 Perf improvement for
- #6301 Replace
- #6304 Refactor
- #6307 Faster major tick calculation
- #6250 Cache
- #6148 Replace
- #6249 Bar options should be defined on dataset instead of scale
- #6556 Inject styles into Shadow DOM when inside Shadow DOM
- #6583 Fix unit determination when
- #6581 Return correct index/value id in radar/polarArea
- #6580 Fix logarithmic test to use correct scale
- #6528 Make sure
- #6523 Fix right side scale ticks
- #6423 Clamp argument of
- #6328 Fix
- #6292 Adjust vertical alignment of tooltip items
- #6321 Update dataset metadata when axisID changes
- #6291 Assign unique scale IDs
- #6288 Fix regression in
- #6282 Treat null as NaN in radialLinear scale
- #6285 Keep lines on the left and right edges from being cut
- #6269 Apply lineJoin style at the first point in radar charts
- #6280 Fix point label counting in radialLinear scale
- #6279 Treat 0 as a valid point label
- #6265 Utilize
- #6264 Apply offset regardless of min/max setting
- #6258 Fix ticks generation for vertical time scale
- #6259 Fix
- #6115 Fix overlapping auto-generated ticks on time scale
- #6238 Fix tooltip title in radar charts
- #6224 Fix arc size calculation when circumference is under 2*PI
- #6215 Fix arc border with circumference over 2*PI
- #5961 Fix tick label rotation and layout issues
- #6182 Use the appropriate time format for auto tick generation
- #6208 Fill before drawing lines
- #6209 Fix missing tooltip value in radar charts
- #6177 Normalize angle for index in radialLinear scale
- #6102 Fix
- #6129 Fix hover animation
- #6120 Improved
- #6585 Add a note to the perf documentation about rotation
- #6554 Add link to linear radial axis for radar chart doc
- #6491 Add
- #6466 Fixed incorrect spelling in pie dataset options. Thanks @SeppPenner
- #6435 Add link back to home page from docs
- #6393 Add radar chart config options
- #6293 Correct descriptions on
- #6263 Add sample for radar scriptable options
- #6244 Fix data in timeseries sample
- #6186 Typo in doughnut documentation. Thanks @joshuamcewen
- #6132 Make docs consistent for
- #6119 Demonstrate multiple units on timeseries example
- #6139 Documented tooltip alignment options
- #6134 Documented date adapter
- #6507 Improved minimization when calling helpers
- #6497 Reduce indentation
- #6355 Do
- #6493 Upgrade rollup and plugins
- #6362 Improved code minimization
- #6360 Create
- #6351 Lazily compute label sizes
- #6347 Render charts only once in time scale tests
- #6246 Avoid time related deprecation warnings in tests
-
2.8.0 - 2019-03-14
- #5868 Deprecate
- #6022 Deprecate
- #5741 Add
- #5780 Bar options are now scriptable
- #5841 Draw inner border for arc elements
- #5850 Add support for gridLines/angleLines borderDash for polar area and radar charts
- #5855 Moved drawing of radial lines before drawing the tick labels. Thanks @fhp
- #5885 Add support for hiding axis when all datasets are hidden. Thanks @davesalomon
- #5905 Add support for typed arrays
- #5908 Add midpoint interpolation to stepped line. Thanks @veggiesaurus
- #5927 Add
- #5938 Improve tick generation for linear scales
- #5951 New weight option for pie and doughnut charts
- #5960 Implement adapter to abstract date/time features
- #5966 Doughnut options are now scriptable
- #5973 Line options are now scriptable
- #5976 Polar area options are now scriptable
- #5978 Make moment optional from our UMD builds
- #5982 Remove date auto type conversions
- #6019 Improve time scale performances
- #6041 Radar options are now scriptable
- #6048 Move CSS in a separate file to be CSP-compliant
- #6059 Add
- #6077 Allow configuration of borderWidth as object
- #6105 Optimize the npm package by removing useless files
- #5331 Make animation duration consistent across browsers. Thanks @serhii-yakymuk
- #5609 Fix
- #5750 Ensure that the time scale safely accesses
- #5751 Handle axis
- #5752 Ensure that
- #5776 Fix legend layout padding at the start of columns. Thanks @jtagscherer
- #5786 Support decimal
- #5790 Add error margin for detecting if a point or line is in the chart area
- #5816 Fix legend item layout issue
- #5828 Improve shadow root detection. Thanks @karaxuna
- #5846 Correct calculation of padding in percent. Thanks @chtheis
- #5848 Fix radial scale topmost tick label and the bottom of the chart area that were cut off
- #5857 Fix nearest interaction mode
- #5858 Adjust the size of rectRounded/rectRot points to fit the circle with pointRadius
- #5865 Support CanvasGradient for hover colors
- #5869 Tooltip support for CanvasPattern and CanvasGradient
- #5880 Fix the rounding issue of floating point numbers in category scale
- #5884 Remove gaps on the left and right when the axis offset is set to true
- #5891 Remove autoSkip logic to always display last tick. Thanks @sgray
- #5909 Remove
- #5913 Re-allow modifying ticks in
- #5914 Add
- #5920 Return correct label for value type axis
- #5922 Properly calculate space needed by tick label when
- #5925 Align title, body and footer inside tooltip
- #5933 Fix time scale
- #5936 Fix "RangeError" exception when labels are big (>125000). Thanks @ckyycc
- #5937 Prevent Bezier points from being capped when a data point is off the chart
- #5947 Cast
- #5948 Fix ticks generation when working with tiny numbers
- #5963 Fix
- #5996 Replace tooltip item
- #6006 Enhance legend label color point when
- #6007 Prevent drawing radial linear scale twice
- #6008 Supply correct start parameter to
- #6011 Prevent infinite resize when vertical scrollbar appears
- #6021 Fix padding of horizontal axes when labels are rotated
- #6027 Provide a rectangle
- #6046 Rename
- #6058 Ignore invalid log scale min and max
- #6060 Handle frozen
- #6063 Fix responsive resize on RTL page
- #5756 Add documentation the
- #5769 Use
- #5795 Document tick
- #5796 Consistent use of punctuation. Thanks @bartdeslagmulder
- #5813 Add a link to
- #5831 Correct a spelling mistake. Thanks @bakert
- #5854 Add docs for
- #5876 Fix descriptions in bar chart doc
- #5877 Replace repeated function call with compact function, generateData. Thanks @generic-github-user
- #5912 Add
- #5915 Use HTTPS in documentation links where possible
- #5958 Use
- #5962 Update contributors guide and issue templates
- #5968 Fix contribution docs. Thanks @mojoaxel
- #5974 Add a note about
- #5975 Fix typo / grammar in docs
- #5979 Fix labelOffset description
- #6013 Set
- #6020 Fix typos and minor doc issues
- #6026 Omit inconsistent note. Thanks @janelledement
- #6030 Update doc on label types for TooltipItem
- #6038 Fix duplicate anchor
- #6042 Add examples of scriptable charts. Thanks @janelledement
- #6053 Fix typo in broken url. Thanks @janelledement
- #6054 Simple spelling error fix. Thanks @JABedford
- #6070 Add a link to
- #6073 Add instructions for image-based tests to the contributors guide
- #6079 Improve autoSkip documentation
- #6081 Add a link to
- #6089 Improve financial sample tooltips and interactions
- #6096 Revamp the README.md and add link to the awesome list
- #6099 Fix document errors related to ticks
- #6107 Add a note about how to include an example against master
- #5624 Radar code cleanup
- #5777 Support
- #5794 Remove dead code from the gulpfile. Thanks @HendrikRoehm
- #5827 Change
- #5833 Use the pixel comparer for logarithmic tests. Thanks @jtagscherer
- #5840 Upgrade dev dependencies to reduce vulnerabilities
- #5842 Use short labels for the legend tests so as not to be affected by the font width
- #5871 Make
- #5872 Fix test failures on Windows
- #5875 Remove
- #5904 Migrate from Browserify to rollup
- #5953 Cleanup scales export for better import strategy
- #5965 Refactoring using
- #5967 Update controller.scatter.test.js to test default tooltip callbacks. Thanks @MadRussian
- #5969 Make the main controller importable
- #5970 Remove unused parameter when calling
- #5991 Trigger mouse events at the center of arc
- #5994 _resolveElementPoint utility for triggerMouseEvent
- #6005 Common logic for resolving element options
- #6017 Fix typo in comment
- #6032 Replace deprecated gulp-util and remove unused watchify
- #6033 Use lowercase for primitives in jsdocs
- #6040 Remove unused ESLint directive
- #6043 Autoskip cleanup
- #6061 Fix randomly failing tooltip test
from chart.js GitHub release notesBug Fixes
Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@kurkle, @benmccann, and @etimberg).
Bug Fixes
Performance
Documentation
Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
Bug Fixes
scale.getDecimalForPixelto the chart areaDocumentation
Development
Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
Breaking changes
helpers._decimalPlacesis now privateEnhancements
dataset.orderautoSkipaware of major ticksoffsetGridLinesis truespanGapsin radar chartspointStyleimage[start, end])minandmaxin standard mannerPerformance
helpers.eachticks.sampleSizeoptionticks.source:'labels'helpers.eachwith for-loopscore.layoutgetScaleForId()calls in the line controllerhelpers.extendBug Fixes
autoSkipis enabledzeroLineIndexis definedtoExponentialbetween 0 and 20. Thanks @veggiesaurusgetValueForPixelin time scalelineTensiontick.majorintickFormatFunctiondetermineUnitForFormattingfloating point errorticks.minorandticks.majorissueshelpers.almostWholeDocumentation
elements.arc.anglein documentationticks.displayand addpointLabels.displaycubicInterpolationModeandfill. Thanks @stockiNailDevelopment
autoSkipinupdatehelpers.math._factorizeThanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
Documentation: http://www.chartjs.org/docs/2.8.0/
Deprecations
Chart.{Type}classesconfigMergeandscaleMergehelpersEnhancements
minBarLengthoption for bar chart. Thanks @adubereversesupport to time scaleonLeavecallback to legend. Thanks @jonrimmerIssues Fixed
offsetGridLinebehavior with a single data pointdata.labelslineWidthas an arraynew Number()is correctly handledstepSizeinnerHTMLusage from our DOM platformafterBuildTicksscale.pointLabels.lineHeightandscale.ticks.lineHeightoptionsautoSkipistrueticks.reverseissuegetRightValueto number in bar chartfitWithPointLabelscalculation in radial linear scalexLabelandyLabelwithlabelandvalueusePointStyleistrue. Thanks @alfiehdinsertElementsgetAreaimplementation for horizontal barsaddEventListenerandremoveEventListenerdataset.dataarraysDocumentation
aspectRatioproperty. Thanks @danielcb29parserinstead of the deprecatedformatoption. Thanks @Niladri24duttapaddingoption. Thanks @JEphronchartjs-plugin-colorschemesbarThickness. Thanks @jedrekdomanskiomi-chartto the doc. Thanks @dntzhangChart.min.jsin samplesmaintainAspectRatio. Thanks @janelledementpointBackgroundColorin radar samplechartjs-plugin-crosshair. Thanks @AbelHeinsbroekchartjs-plugin-roughDevelopment
*.jstest fixture configs.editorconfigfile to include newlines at EOF. Thanks @jtagschererChart.controllers.*importablegulp-connectand add jsdelivr/unpkg pathshelpers.options.resolveremoveResizeListener. Thanks @DanielRufThanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
More details in the release PR: #6092
Commit messages
Package name: chart.js
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs