feat!: limit usage of the `eval` function by tbouffard · Pull Request #736 · maxGraph/maxGraph
`StylesheetCodec` no longer call the function by default. The eslint configuration now includes a new rule that prevents new calls to the function. Introduce an internal function for indirection of the `eval` function. This change generates fewer warnings when using bundlers such as Rollup. Be aware that this is a temporary workaround, not a final solution. BREAKING CHANGES: `StylesheetCodec.allowEval` is now set to `false` by default to prevent unwanted use of the eval function, as it carries a possible security risk.
tbouffard
marked this pull request as ready for review
This file contains hidden or 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