Extending the Jovo class with additional properties caused Maximum call stack size exceeded exceptions in the JovoDebugger if they contained a reference to the jovo object.
This PR proposes to change the approach to includedProperties instead of ignoring these properties via ignoredProperties.
ignoredProperties is still available to prevent a breaking change.
Best practice if you want to extend the includedProperties array
import { DEFAULT_INCLUDED_PROPERTIES, JovoDebugger } from '@jovotech/plugin-debugger';
...
new JovoDebugger({
includedProperties: [...DEFAULT_INCLUDED_PROPERTIES, '$foobar'],
}),
...
Types of Changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[ ] My code follows the code style of this project
[ ] My change requires a change to the documentation
Proposed Changes
Extending the
Jovo
class with additional properties causedMaximum call stack size exceeded
exceptions in the JovoDebugger if they contained a reference to the jovo object.This PR proposes to change the approach to
includedProperties
instead of ignoring these properties viaignoredProperties
.ignoredProperties
is still available to prevent a breaking change.Best practice if you want to extend the
includedProperties
arrayTypes of Changes
Checklist