Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicated messages about deprecated options usage (#882)
The commit fixes an issue related to the doubled or tripled printed deprecated warning messages. After the changes once the Hyperformula is initialized the warn messages are logged only once. The messages are logged again only if the `engine.updateConfig()` method is called and only when the deprecated options are passed. Do prints deprecated warn messages: * `HyperFormula.buildEmpty({ binarySearchThreshold: 10 })` * `engine.updateConfig({ binarySearchThreshold: 10 })` Do not print deprecated warn messages: * `engine.updateConfig({ precisionRounding: 10 })` * `engine.rebuildAndRecalculate()` I had a problem with tests in the browser. It turned out that there is a problem with unregistering Jasmine spies that interfere with other tests. To fix it up the commit upgrades the Jasmine to the latest version. The change solves the problem with Handsontable integration where its Formulas plugin calls the HF rebuildAndRecalculate method. The method internally merges the Config object with default values (e.g. `binarySearchThreshold: 20`) that once passed in the constructor logs again warning messages about the usage of deprecated options. See handsontable/handsontable#8771.
- Loading branch information
Showing
6 changed files
with
11,291 additions
and
10,844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.