ExtraErrorData "depth" option ignored

I’m just upgraded @sentry/browser from version 5.3.0 to version 5.18.1 and now the depth option of Integrations.ExtraErrorData is not respected. I double checked the documentation and didn’t see anything obviously changed.

import * as Sentry from '@sentry/browser';
import * as Integrations from '@sentry/integrations';

Sentry.init({
  release: process.env.SENTRY_RELEASE,
  environment: process.env.SENTRY_ENVIRONMENT,
  dsn: process.env.SENTRY_DSN,
  integrations: [
    new Integrations.ExtraErrorData({ depth: 10 })
  ]
});

Sentry.configureScope(scope =>
  scope.setExtra('something', {
    a: {
      b: [1, 2, 3],
      c: {
        d: 1,
        e: 2,
        f: 3
      }
    }
  })
);

Sentry.captureException(new Error('Something happened'));

Sentry UI shows the value of something in Additional Data to be:

{"a":{"c":"[Object]","b":"[Array]"}}

Does anybody have some insight or is this a bug? If so, where do I report this?

Thanks.

Ok, so I’ve tried a bunch of different versions and it looks like this behavior started and continues to occur with v5.12.0 and onward.

does work:
5.4.0
5.10.0
5.11.0
5.11.1

doesn’t work:
5.12.0
5.13.0
5.16.0

Looks like there is an undocumented initialization option called “normalizeDepth” that needs to be set in order for the depth to work correctly.