In v10, BigNumber.DEBUG was removed and the library now always throws on invalid input. Previously, with DEBUG = false (the default), invalid values like undefined or non-numeric strings would return NaN — which many codebases rely on for safe fallthrough behavior.
Would you consider adding a config option (e.g. STRICT: false) to restore the old behavior? I'd be happy to submit a PR for this if you're open to it.
In v10, BigNumber.DEBUG was removed and the library now always throws on invalid input. Previously, with DEBUG = false (the default), invalid values like undefined or non-numeric strings would return NaN — which many codebases rely on for safe fallthrough behavior.
Would you consider adding a config option (e.g. STRICT: false) to restore the old behavior? I'd be happy to submit a PR for this if you're open to it.